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/userinfo.email
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-09-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2022-09-26 UTC."],[[["Creates a device under a node or customer using an HTTP POST request."],["Requires specifying the parent resource (node or customer) in the URL path."],["The request body must contain a Device object, as defined in the provided documentation."],["A successful response returns the newly created Device object."],["Requires authorization with the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This outlines the process for creating a device within a customer or node hierarchy. A `POST` request is sent to a specific URL, defined using gRPC Transcoding syntax, including a required `parent` path parameter indicating the resource. The request body contains the device details, and a successful response returns the newly created device. Authorization requires the `userinfo.email` OAuth scope.\n"]]