Method: nodes.devices.createSigned
Żądanie HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*}/devices:createSigned
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagany. Nazwa zasobu nadrzędnego.
|
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 . Pole userId musi być ustawione. 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/sasportal
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-11-02 UTC.
[null,null,["Ostatnia aktualizacja: 2022-11-02 UTC."],[[["Creates a signed device under a node or customer using a POST request."],["Requires a JSON Web Token in the request body with the device details and installer ID."],["Returns the created device details in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/sasportal` scope."],["Uses gRPC Transcoding for the URL structure."]]],["This describes how to create a signed device under a node or customer using a POST request. The URL structure, defined using gRPC Transcoding, includes a required `parent` path parameter. The request body, in JSON format, must contain `encodedDevice` (a base64-encoded, signed JSON Web Token representing the device) and a unique `installerId`. A successful operation returns a device object in the response body. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]