Method: customers.devices.updateSigned
Aktualisiert ein signiertes device
.
HTTP-Anfrage
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/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 API updates a signed device in the Spectrum Access System."],["The request must include an encoded device and installer ID."],["The device payload must be JSON Web Token signed with a CPI private key and contain the userId field."],["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: `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The `name` path parameter is required, representing the device's name. The request body must include a JSON object containing the `encodedDevice` (a base64-encoded JSON Web Token of the device) and the `installerId` (CPI ID). Successful requests return a Device instance and requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]