Method: customers.devices.createSigned
คำขอ HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices:createSigned
URL ใช้ไวยากรณ์ gRPC Transcoding
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อของทรัพยากรระดับบนสุด
|
เนื้อหาของคำขอ
เนื้อหาของคําขอมีข้อมูลที่มีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"encodedDevice": string,
"installerId": string
} |
ช่อง |
encodedDevice |
string (bytes format)
ต้องระบุ โทเค็นเว็บ JSON ที่รับรองโดยใช้คีย์ส่วนตัว CPI เพย์โหลดต้องเป็นการเข้ารหัส JSON ของ [อุปกรณ์] สตริงที่เข้ารหัสฐาน 64
|
installerId |
string
ต้องระบุ รหัสโปรแกรมติดตั้งที่ไม่ซ้ํา (cpiId) จากฐานข้อมูลโปรแกรมติดตั้งที่ได้รับการรับรอง
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Device
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/userinfo.email
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-09-26 UTC
[null,null,["อัปเดตล่าสุด 2022-09-26 UTC"],[[["Creates a signed device under a node or customer using a POST request."],["Requires a JSON Web Token signed with a CPI private key and a unique installer ID in the request body."],["Returns the created device details upon successful completion."],["Needs authorization with the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This documentation details how to create a signed device under a node or customer. A `POST` request is sent to a specific URL, including a required `parent` path parameter. The request body must contain a `encodedDevice` string (a JWT signed with a CPI private key) and a `installerId` string. The successful response will include a `Device` instance. This operation requires OAuth scope: `https://www.googleapis.com/auth/userinfo.email`.\n"]]