Method: nodes.deployments.devices.createSigned
Żądanie HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*/deployments/*}/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 an HTTP POST request."],["The request body requires a JSON Web Token and a unique installer ID."],["A successful response returns the device details."],["Requires `https://www.googleapis.com/auth/sasportal` authorization scope."]]],["This document details how to create a signed device under a node or customer using a `POST` request to the specified URL. The request requires a parent resource name in the URL path, and a request body containing a signed JSON Web Token (`encodedDevice`) representing the device and a unique installer ID (`installerId`). The `encodedDevice` is a base64-encoded string. Successful requests return a Device instance, and the operation requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]