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