Method: customers.devices.list
HTTP リクエスト
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。デバイスを管理しているお客様。customers/[CUSTOMER_ID] 形式の API リソース名。
|
クエリ パラメータ
パラメータ |
pageSize |
string (int64 format)
必須。結果のページに表示するデバイスの最大数。1~100 にする必要があります(両端を含む)。
|
pageToken |
string
返される結果ページを指定するトークン。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
お客様の照明デバイスに関するレスポンス メッセージ。
JSON 表現 |
{
"devices": [
{
object (Device )
}
],
"nextPageToken": string
} |
フィールド |
devices[] |
object (Device )
お客様のデバイス。
|
nextPageToken |
string
結果の次のページにアクセスするために使用されるトークン。検索結果がこれ以上ない場合は省略されます。
|
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidworkzerotouchemm
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["This webpage details how to list a customer's devices using the Android Device Provisioning API."],["The HTTP request uses a `GET` method to retrieve devices via a URL formatted with gRPC Transcoding, specifying the customer ID in the path."],["It requires the inclusion of `pageSize` and `pageToken` query parameters to manage result pagination, with `pageSize` determining the maximum number of devices per page."],["The request body must be empty and the response body contains a list of devices and a `nextPageToken` to obtain additional pages of results if available."],["Access to this API endpoint requires authorization using the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope."]]],["This API endpoint retrieves a list of a customer's devices using a `GET` request. The URL specifies the customer via the `parent` path parameter (`customers/[CUSTOMER_ID]`). Results are paginated using `pageSize` (1-100) and `pageToken` query parameters. The request body is empty. The successful response contains a list of `devices` and, if more exist, a `nextPageToken` for subsequent pages. Authentication requires the `androidworkzerotouchemm` OAuth scope.\n"]]