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