Method: customers.devices.list
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Żądanie HTTP
GET https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagany. Nazwa zasobu nadrzędnego.
|
Parametry zapytania
Parametry |
pageSize |
integer
Maksymalna liczba urządzeń, które zostaną zwrócone w odpowiedzi. Jeśli nic nie ma lub nie ma żadnej wartości, wyświetlane są wszystkie urządzenia. Musi się mieścić w zakresie [0, 1000].
|
pageToken |
string
Token podziału na strony zwrócony z poprzedniego wywołania do devices.list , który wskazuje, gdzie powinien zaczynać się ten wpis.
|
filter |
string
Wyrażenie filtra. Filtr powinien mieć jeden z tych formatów: "sn=123454" lub "displayName=MyDevice". sn oznacza numer seryjny urządzenia. Filtr nie uwzględnia wielkości liter.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu ListDevicesResponse
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/sasportal
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-11-02 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]