Method: customers.devices.list
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
GET https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The name of the parent resource.
|
Query parameters
Parameters |
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].
|
pageToken |
string
A pagination token returned from a previous call to devices.list that indicates where this listing should continue from.
|
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.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListDevicesResponse
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/sasportal
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-12-05 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"]]