Method: customers.devices.list
HTTP-запрос
GET https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL-адрес использует синтаксис транскодирования 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
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2022-11-02 UTC.
[null,null,["Последнее обновление: 2022-11-02 UTC."],[[["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"]]