Method: customers.devices.list
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Liệt kê các thiết bị của khách hàng.
Yêu cầu HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
parent |
string
Bắt buộc. Khách hàng quản lý các thiết bị. Tên tài nguyên API ở định dạng customers/[CUSTOMER_ID] .
|
Tham số truy vấn
Tham số |
pageSize |
string (int64 format)
Bắt buộc. Số lượng thiết bị tối đa sẽ hiển thị trong một trang kết quả. Phải nằm trong khoảng từ 1 đến 100.
|
pageToken |
string
Mã thông báo chỉ định trang kết quả cần trả về.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Tin nhắn phản hồi về thiết bị chiếu sáng của khách hàng.
Biểu diễn dưới dạng JSON |
{
"devices": [
{
object (Device )
}
],
"nextPageToken": string
} |
Trường |
devices[] |
object (Device )
Thiết bị của khách hàng.
|
nextPageToken |
string
Mã thông báo dùng để truy cập vào trang kết quả tiếp theo. Bỏ qua nếu không có kết quả nào khác.
|
Phạm vi cấp phép
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidworkzerotouchemm
Để biết thêm thông tin, hãy xem bài viết Tổng quan về OAuth 2.0.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThis webpage details how to list a customer's devices using the Android Device Provisioning API.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003eGET\u003c/code\u003e method to retrieve devices via a URL formatted with gRPC Transcoding, specifying the customer ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eIt requires the inclusion of \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters to manage result pagination, with \u003ccode\u003epageSize\u003c/code\u003e determining the maximum number of devices per page.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty and the response body contains a list of devices and a \u003ccode\u003enextPageToken\u003c/code\u003e to obtain additional pages of results if available.\u003c/p\u003e\n"],["\u003cp\u003eAccess to this API endpoint requires authorization using the \u003ccode\u003ehttps://www.googleapis.com/auth/androidworkzerotouchemm\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["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"],null,["# Method: customers.devices.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListDevicesResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nLists a customer's devices.\n\n### HTTP request\n\n`GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The customer managing the devices. An API resource name in the format `customers/[CUSTOMER_ID]`. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. |\n| `pageToken` | `string` A token specifying which result page to return. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message of customer's liting devices.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"devices\": [ { object (/zero-touch/reference/customer/rest/v1/customers.devices#Device) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------|\n| `devices[]` | `object (`[Device](/zero-touch/reference/customer/rest/v1/customers.devices#Device)`)` The customer's devices. |\n| `nextPageToken` | `string` A token used to access the next page of results. Omitted if no further results are available. |\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidworkzerotouchemm`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]