AI-generated Key Takeaways
- 
          This page lists active, unexpired enrollment tokens for a given enterprise, providing a partial view of the EnrollmentToken object. 
- 
          The HTTP request to list enrollment tokens uses a GET method with a specific URL structure including the enterprise identifier. 
- 
          You can specify the number of results per page and a token for pagination using query parameters. 
- 
          The request body for this operation must be empty, and the response body contains a list of enrollment tokens and a next page token if applicable. 
- 
          Accessing this functionality requires the https://www.googleapis.com/auth/androidmanagementauthorization scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken object. Only the following fields are populated: nameexpirationTimestampallowPersonalUsagevalueqrCodedelete active enrollment tokens as soon as they're not intended to be used anymore.
HTTP request
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The name of the enterprise in the form  | 
Query parameters
| Parameters | |
|---|---|
| pageSize | 
 The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be coerced to 100. | 
| pageToken | 
 A token identifying a page of results returned by the server. | 
Request body
The request body must be empty.
Response body
Response to a request to list enrollment tokens for a given enterprise.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "enrollmentTokens": [
    {
      object ( | 
| Fields | |
|---|---|
| enrollmentTokens[] | 
 The list of enrollment tokens. | 
| nextPageToken | 
 If there are more results, a token to retrieve next page of results. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/androidmanagement
For more information, see the OAuth 2.0 Overview.
