Method: nodes.devices.updateSigned
HTTP リクエスト
PATCH https://sasportal.googleapis.com/v1alpha1/{name=nodes/*/devices/*}:updateSigned
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
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。"],[[["Updates a signed device using a PATCH request to a specific endpoint."],["Requires providing the device name as a path parameter and device details in the request body."],["The request body must include a JSON Web Token with the device details and the installer ID."],["A successful request returns the updated device details."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details the process of updating a signed device via a PATCH request to the specified URL, `/v1alpha1/{name=nodes/*/devices/*}:updateSigned`. The request requires a `name` path parameter (the device's name), and a JSON request body. This body includes `encodedDevice` (a base64-encoded JSON Web Token of the device) and `installerId` (a unique CPI ID). Successful requests return an instance of the updated device, and the process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization.\n"]]