Method: nodes.devices.updateSigned
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Consente di aggiornare un elemento device
firmato.
Richiesta HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=nodes/*/devices/*}:updateSigned
L'URL utilizza la sintassi gRPC Transcoding.
Parametri del percorso
Parametri |
name |
string
Obbligatorio. Il nome del dispositivo da aggiornare.
|
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. Il token web JSON 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 univoco del programma di installazione (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.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2022-11-02 UTC."],[[["Updates a signed device using a PATCH request to a specific endpoint."],["Requires providing the device name as a path parameter and device details in the request body."],["The request body must include a JSON Web Token with the device details and the installer ID."],["A successful request returns the updated device details."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details the process of updating a signed device via a PATCH request to the specified URL, `/v1alpha1/{name=nodes/*/devices/*}:updateSigned`. The request requires a `name` path parameter (the device's name), and a JSON request body. This body includes `encodedDevice` (a base64-encoded JSON Web Token of the device) and `installerId` (a unique CPI ID). Successful requests return an instance of the updated device, and the process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization.\n"]]