Method: enterprises.devices.list
HTTP 要求
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/devices
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
企業名稱,格式為 enterprises/{enterpriseId} 。
|
查詢參數
參數 |
pageSize |
integer
所要求的頁面大小。實際頁面大小可能會固定為最小值或最大值。
|
pageToken |
string
用於識別伺服器傳回的結果頁面。
|
回應主體
回應要求,列出特定企業的裝置。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"devices": [
{
object (Device )
}
],
"nextPageToken": string
} |
欄位 |
devices[] |
object (Device )
裝置清單。
|
nextPageToken |
string
如果有更多結果,則是用來擷取下一頁結果的符記。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidmanagement
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-19 (世界標準時間)。
[null,null,["上次更新時間:2025-02-19 (世界標準時間)。"],[[["Lists all devices for a given enterprise, excluding deleted ones."],["Requires `GET` request to the specified URL with `enterpriseId` as a path parameter."],["Supports pagination using `pageSize` and `pageToken` for retrieving results."],["Response includes a list of devices and a token for the next page if available."],["Needs `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization."]]],["This document details how to list devices for an enterprise using a `GET` request to the specified URL. The request uses path parameter `parent` (enterprise name) and optional query parameters `pageSize` and `pageToken` for pagination. The request body should be empty. The successful response body contains a list of `devices` and a `nextPageToken` for retrieving subsequent pages. This process requires `https://www.googleapis.com/auth/androidmanagement` authorization scope.\n"]]