Method: nodes.nodes.devices.createSigned
HTTP リクエスト
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*/nodes/*}/devices:createSigned
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。親リソースの名前。
|
リクエスト本文
リクエストの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"encodedDevice": string,
"installerId": string
} |
フィールド |
encodedDevice |
string (bytes format)
必須。CPI 秘密鍵を使用して署名された JSON Web Token。ペイロードは、device の JSON エンコードにする必要があります。userId フィールドを設定する必要があります。 Base64 でエンコードされた文字列。
|
installerId |
string
必須。認定プロフェッショナル インストーラ データベースに登録されている一意のインストーラ ID(CPI ID)。
|
レスポンスの本文
成功した場合、レスポンスの本文には Device
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/sasportal
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-11-02 UTC。
[null,null,["最終更新日 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 for access."]]],["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 base64-encoded JSON Web Token (`encodedDevice`) and a unique installer ID (`installerId`). The `encodedDevice` must be signed with a CPI private key and the userId must be specified. A successful request returns a `Device` instance. OAuth scope `https://www.googleapis.com/auth/sasportal` is needed.\n"]]