Method: enterprises.enrollmentTokens.get

Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expirationTimestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete 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 uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of EnrollmentToken.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidmanagement

For more information, see the OAuth 2.0 Overview.