Method: customers.deployments.devices.createSigned
HTTP-Anfrage
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*/deployments/*}/devices:createSigned
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Der Name der übergeordneten Ressource.
|
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"encodedDevice": string,
"installerId": string
} |
Felder |
encodedDevice |
string (bytes format)
Erforderlich. JSON Web Token mit einem privaten CPI-Schlüssel signiert. Nutzlast muss die JSON-Codierung des device sein. Das Feld userId muss festgelegt werden. Ein base64-codierter String.
|
installerId |
string
Erforderlich. Eindeutige Installations-ID (CPI-ID) aus der Datenbank der zertifizierten Installateure.
|
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Device
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/sasportal
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2022-11-02 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]