Method: customers.devices.list
HTTP 请求
GET https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。父级资源的名称。
|
查询参数
参数 |
pageSize |
integer
响应中要返回的设备数量上限。如果为空或零,系统会列出所有设备。必须在 [0, 1000] 范围内。
|
pageToken |
string
从上一次调用 devices.list 返回的分页令牌,指示此列表应从什么位置继续。
|
filter |
string
过滤条件表达式。过滤条件应采用以下格式之一:"sn=123454" 或 "displayName=MyDevice"。sn. 与设备的序列号相对应。过滤条件不区分大小写。
|
响应正文
如果成功,响应正文将包含一个 ListDevicesResponse
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/sasportal
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-11-02。
[null,null,["最后更新时间 (UTC):2022-11-02。"],[[["Lists devices under a node or customer with customizable filtering, paging, and response size."],["Uses a GET HTTP request with the parent resource specified as a path parameter."],["Requires authorization with the `https://www.googleapis.com/auth/sasportal` scope."],["The request body should be empty, and a successful response contains a ListDevicesResponse object."]]],["This outlines the process of listing devices under a specified parent (customer or node) via an API call. The key actions involve sending a `GET` request to a specific URL, using the `parent` path parameter to identify the customer or node. Optional query parameters include `pageSize`, `pageToken`, and `filter` for controlling the number of devices, pagination, and filtering by serial number or display name respectively. The request body must be empty, and the successful response is a `ListDevicesResponse`. An authorization scope is required.\n"]]