Method: customers.deployments.devices.createSigned
Richiesta HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*/deployments/*}/devices:createSigned
L'URL utilizza la sintassi gRPC Transcoding.
Parametri del percorso
Parametri |
parent |
string
Obbligatorio. Il nome della risorsa padre.
|
Corpo della richiesta
Il corpo della richiesta contiene i dati con la seguente struttura:
Rappresentazione JSON |
{
"encodedDevice": string,
"installerId": string
} |
Campi |
encodedDevice |
string (bytes format)
Obbligatorio. JSON Web Token firmato utilizzando una chiave privata CPI. Il payload deve essere la codifica JSON di device . Il campo userId deve essere impostato. Una stringa con codifica Base64.
|
installerId |
string
Obbligatorio. ID di installazione univoco (ID CPI) dal database dei programmi di installazione certificati certificati.
|
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Device
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/sasportal
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2022-11-02 UTC.
[null,null,["Ultimo aggiornamento 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"]]