Method: customers.devices.applyConfiguration
デバイスに設定を適用し、デバイスをゼロタッチ登録に登録します。デバイスに設定を適用すると、初回起動時または次回の出荷時設定へのリセット時に、デバイスが自動的にプロビジョニングされます。
HTTP リクエスト
POST https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices:applyConfiguration
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。デバイスを管理しているお客様。customers/[CUSTOMER_ID] 形式の API リソース名。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"device": {
object (DeviceReference )
},
"configuration": string
} |
フィールド |
device |
object (DeviceReference )
必須。設定が適用されるデバイス。
|
configuration |
string
必須。デバイスに適用される構成(customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID] の形式)。
|
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidworkzerotouchemm
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[null,null,["最終更新日 2024-08-21 UTC。"],[[["This webpage details how to apply a configuration to a device for zero-touch enrollment, allowing automatic provisioning upon the first boot or after a factory reset."],["The process involves sending a POST request to a specific URL endpoint that includes the customer ID as a path parameter, `customers/[CUSTOMER_ID]`."],["The request body must include both the device details and the configuration to be applied, which must be in the provided format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`."],["A successful request results in an empty response body, indicating that the configuration has been applied."],["Utilizing this functionality requires authorization using the OAuth scope: `https://www.googleapis.com/auth/androidworkzerotouchemm`."]]],[]]