Method: customers.deployments.devices.createSigned
คำขอ HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*/deployments/*}/devices:createSigned
URL ใช้ไวยากรณ์ gRPC Transcoding
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อของทรัพยากรระดับบนสุด
|
เนื้อหาของคำขอ
เนื้อหาของคําขอมีข้อมูลที่มีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"encodedDevice": string,
"installerId": string
} |
ช่อง |
encodedDevice |
string (bytes format)
ต้องระบุ โทเค็นเว็บ JSON ที่รับรองโดยใช้คีย์ส่วนตัว CPI เพย์โหลดต้องเป็นการเข้ารหัส JSON ของ device ต้องตั้งค่าช่อง userId สตริงที่เข้ารหัสฐาน 64
|
installerId |
string
ต้องระบุ รหัสโปรแกรมติดตั้งที่ไม่ซ้ํา (รหัส CPI) จากฐานข้อมูลโปรแกรมติดตั้งที่ได้รับการรับรอง
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ 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 signed device under a node or customer using an HTTP POST request."],["Requires a JSON Web Token in the request body signed with a CPI private key containing device details."],["The request must include a unique installer ID from the Certified Professional Installers database."],["Upon successful creation, the response returns the details of the newly created device."],["Requires authorization with the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details how to create a signed device under a specified node or customer. It uses an HTTP POST request to the provided URL, including a `parent` path parameter indicating the resource name. The request body requires a JSON object with `encodedDevice` (a signed JSON Web Token representing the device) and `installerId` (CPI ID). Successful requests return a `Device` instance in the response body, and requests must be authorized with the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]