Method: customers.nodes.devices.createSigned
Richiesta HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*/nodes/*}/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."],[[["This API creates a signed device under a node or customer within the Spectrum Access System."],["The request requires an HTTP POST to a specific URL with path parameters specifying the parent resource."],["The request body must contain a JSON Web Token representing the encoded device and a unique installer ID."],["Upon successful execution, the response returns details about the created device."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This content outlines the process of creating a signed device under a node or customer via an HTTP POST request. The request is sent to a specific URL, utilizing gRPC Transcoding syntax. The required path parameter is `parent`, indicating the parent resource name. The request body, in JSON format, contains an `encodedDevice` (a JWT-signed device) and an `installerId` (CPI ID). Successful requests return a `Device` instance. This action requires the `sasportal` OAuth scope for authorization.\n"]]