Lista aktywnych, niewygasłych tokenów rejestracji dla danego przedsiębiorstwa. Elementy listy zawierają tylko częściowy widok obiektu EnrollmentToken. Wypełniane są tylko te pola: name, expirationTimestamp, allowPersonalUsage, value, qrCode. Ta metoda ma ułatwiać zarządzanie cyklem życia aktywnych tokenów rejestracji. Ze względów bezpieczeństwa zalecamy delete aktywne tokeny rejestracji, gdy tylko nie będą już używane.
Żądanie HTTP
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens
Wymagany. Nazwa przedsiębiorstwa w formie enterprises/{enterpriseId}.
Parametry zapytania
Parametry
pageSize
integer
Żądany rozmiar strony. Usługa może zwrócić mniej niż ta wartość. Jeśli nie zostanie podany, zwróci się maksymalnie 10 elementów. Maksymalna wartość to 100. Wartości powyżej 100 zostaną sformatowane na 100.
pageToken
string
Token identyfikujący stronę wyników zwróconych przez serwer.
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Odpowiedź na żądanie wyświetlenia tokenów rejestracji dla danego przedsiębiorstwa.
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
[[["Ł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: 2025-02-19 UTC."],[[["This operation lists active, unexpired enrollment tokens for a given enterprise, providing a partial view of the EnrollmentToken object with specific fields populated."],["The request requires the enterprise ID as a path parameter and allows for pagination using query parameters `pageSize` and `pageToken`."],["The response includes a list of enrollment tokens and a token for retrieving the next page of results if available."],["For security, it is recommended to delete active enrollment tokens when they are no longer needed."],["Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This document outlines the process of listing active enrollment tokens for an enterprise using a `GET` request. The request targets `enterprises/{enterpriseId}/enrollmentTokens` and requires a `parent` path parameter specifying the enterprise ID. Optional query parameters, `pageSize` and `pageToken`, manage result pagination. The request body must be empty. A successful response includes a list of `enrollmentTokens`, containing fields like name, expiration, usage allowance, value and qr code, and an optional `nextPageToken` for subsequent pages. This action requires the `androidmanagement` OAuth scope.\n"]]