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。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-19。
[null,null,["最后更新时间 (UTC):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"]]