Method: customers.devices.create
คำขอ HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL ใช้ไวยากรณ์ gRPC Transcoding
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อของทรัพยากรระดับบนสุด
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Device
เนื้อหาการตอบกลับ
หากทําสําเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Device
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/sasportal
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-11-02 UTC
[null,null,["อัปเดตล่าสุด 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"]]