Method: customers.devices.updateSigned
Żądanie HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Wymagany. Nazwa urządzenia, które chcesz zaktualizować.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"encodedDevice": string,
"installerId": string
} |
Pola |
encodedDevice |
string (bytes format)
Wymagany. Token internetowy JSON podpisany kluczem prywatnym CPI. Ładunek musi być kodowaniem JSON właściwości device . Ciąg zakodowany w formacie base64.
|
installerId |
string
Wymagany. Unikalny identyfikator instalatora (identyfikator CPI) pochodzący z bazy danych Certyfikowanych instalatorów.
|
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Device
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/userinfo.email
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-09-26 UTC.
[null,null,["Ostatnia aktualizacja: 2022-09-26 UTC."],[[["This documentation outlines the process for updating a signed device using a `PATCH` request to the specified endpoint."],["The request requires path and body parameters, including device name, encoded device data, and installer ID."],["If successful, the response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This document details updating a signed device via a PATCH request to `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The request requires a `name` path parameter identifying the device. The request body, in JSON, includes `encodedDevice`, a base64-encoded, signed JSON Web Token representing the device, and `installerId`, a unique CPI ID. A successful response returns an instance of the updated `Device`. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"]]