Method: customers.devices.list
HTTP 要求
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。管理裝置的客戶。API 資源名稱,格式為 customers/[CUSTOMER_ID] 。
|
查詢參數
參數 |
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 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["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"]]