Method: deployments.devices.updateSigned
HTTP リクエスト
PATCH https://sasportal.googleapis.com/v1alpha1/{name=deployments/*/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。"],[[["This operation updates a signed device using a PATCH request to a specific endpoint."],["The request body must contain the encoded device as a JSON Web Token and the installer ID."],["A successful response returns the updated device information."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details updating a signed device via a PATCH request to the specified URL, using gRPC Transcoding. The request requires a `name` path parameter, indicating the device to update. The request body, in JSON, contains a base64-encoded `encodedDevice` JWT and the `installerId`. The `encodedDevice` must be signed with a CPI private key and the userId must be provided. Successful responses return a Device instance. The process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]