Method: enterprises.enrollmentTokens.get Stay organized with collections Save and categorize content based on your preferences.
Page Summary
This method gets an active, unexpired enrollment token and returns a partial view of its fields.
For security, it is recommended to delete active enrollment tokens when no longer needed.
The request uses a GET HTTP method with a specific URL format including the enrollment token name.
The request body must be empty, and the response body contains an instance of EnrollmentToken.
This method requires the
https://www.googleapis.com/auth/androidmanagementauthorization scope.
Gets an active, unexpired enrollment token. A partial view of the enrollment token is returned. Only the following fields are populated:,name,expirationTimestamp,allowPersonalUsage,value. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended toqrCodedelete active enrollment tokens as soon as they're not intended to be used anymore.
HTTP request
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/enrollmentTokens/*}
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the enrollment token in the form |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofEnrollmentToken.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidmanagement
For more information, see theOAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-09 UTC.
