Method: deployments.devices.updateSigned
Aktualisiert ein signiertes device
.
HTTP-Anfrage
PATCH https://sasportal.googleapis.com/v1alpha1/{name=deployments/*/devices/*}:updateSigned
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
name |
string
Erforderlich. Der Name des Geräts, das aktualisiert werden soll.
|
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
JSON-Darstellung |
{
"encodedDevice": string,
"installerId": string
} |
Felder |
encodedDevice |
string (bytes format)
Erforderlich. Das JSON Web Token, das mit einem privaten CPI-Schlüssel signiert wird. 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)."],[[["This operation updates a signed device using a PATCH request to a specific endpoint."],["The request body must contain the encoded device as a JSON Web Token and the installer ID."],["A successful response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details updating a signed device via a PATCH request to the specified URL, using gRPC Transcoding. The request requires a `name` path parameter, indicating the device to update. The request body, in JSON, contains a base64-encoded `encodedDevice` JWT and the `installerId`. The `encodedDevice` must be signed with a CPI private key and the userId must be provided. Successful responses return a Device instance. The process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]