Method: nodes.nodes.devices.list
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
HTTP-запрос
GET https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*/nodes/*}/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 и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eLists devices under a node or customer with filtering, pagination, and sorting options.\u003c/p\u003e\n"],["\u003cp\u003eRequires an HTTP GET request to the specified URL with path and optional query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and the response contains a ListDevicesResponse object upon success.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/sasportal\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details how to list devices under a specified node or customer using an HTTP GET request. The request URL uses gRPC Transcoding syntax and includes a required `parent` path parameter. Optional query parameters include `pageSize` to limit results, `pageToken` for pagination, and `filter` for specific device searches by serial number or display name. The request body must be empty, and a successful response will return a `ListDevicesResponse`. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"],null,["# Method: nodes.nodes.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- [Authorization Scopes](#body.aspect)\n\nLists [devices](/spectrum-access-system/reference/rest/v1alpha1/customers.deployments.devices#Device) under a [node](/spectrum-access-system/reference/rest/v1alpha1/customers.nodes#Node) or [customer](/spectrum-access-system/reference/rest/v1alpha1/customers#Customer).\n\n### HTTP request\n\n`GET https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*/nodes/*}/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 name of the parent resource. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of devices to return in the response. If empty or zero, all devices will be listed. Must be in the range \\[0, 1000\\]. |\n| `pageToken` | `string` A pagination token returned from a previous call to [devices.list](/spectrum-access-system/reference/rest/v1alpha1/nodes.devices/list#spectrum.sas.portal.v1alpha1.DeviceManager.ListDevices) that indicates where this listing should continue from. |\n| `filter` | `string` The filter expression. The filter should have one of the following formats: \"sn=123454\" or \"displayName=MyDevice\". sn corresponds to serial number of the device. The filter is case insensitive. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ListDevicesResponse](/spectrum-access-system/reference/rest/v1alpha1/ListDevicesResponse).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sasportal`"]]