Method: customers.devices.create
Yêu cầu HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
parent |
string
Bắt buộc. Tên của tài nguyên mẹ.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Device
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới được tạo của Device
.
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/sasportal
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2022-11-02 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2022-11-02 UTC."],[[["Creates a device under a node or customer."],["Uses `POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices` with gRPC Transcoding syntax for the request."],["Requires the `parent` path parameter specifying the name of the parent resource (node or customer)."],["Request body should contain a `Device` instance and a successful response returns the created `Device` instance."],["Needs `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["A `POST` request is made to `https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices` to create a device. The `parent` path parameter, a string specifying the parent resource, is required. The request body must include a `Device` instance. Upon success, the response contains the newly created `Device`. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]