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 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 created device details."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details how to create a signed device under a specified node or customer using a `POST` request to the provided URL. The request requires the `parent` resource name as a path parameter. The request body, in JSON format, must include `encodedDevice`, a base64-encoded JWT containing device details, and `installerId`, a unique CPI ID. A successful request returns a device instance, and the `https://www.googleapis.com/auth/sasportal` OAuth scope is needed for authorization.\n"]]