Method: customers.devices.createSigned
Żądanie HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/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 urządzenia [Device]. Ciąg zakodowany w formacie base64.
|
installerId |
string
Wymagany. Unikalny identyfikator instalatora (cpiId) 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."],[[["Creates a signed device under a node or customer using a POST request."],["Requires a JSON Web Token signed with a CPI private key and a unique installer ID in the request body."],["Returns the created device details upon successful completion."],["Needs authorization with the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This documentation details how to create a signed device under a node or customer. A `POST` request is sent to a specific URL, including a required `parent` path parameter. The request body must contain a `encodedDevice` string (a JWT signed with a CPI private key) and a `installerId` string. The successful response will include a `Device` instance. This operation requires OAuth scope: `https://www.googleapis.com/auth/userinfo.email`.\n"]]