AI-generated Key Takeaways
-
This method lists active credentials (ID and key type only) for an enterprise's associated service account, but is deprecated and will be inaccessible after September 30, 2025.
-
To use this method, the calling service account must be retrieved and set as the enterprise service account using specific API calls.
-
New integrations should refer to the recommended alternatives provided in the documentation instead of using this deprecated method.
-
Authorization with the
https://www.googleapis.com/auth/androidenterprise
scope is required to use this API method.
Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
Request
HTTP request
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
enterpriseId |
string |
The ID of the enterprise. |
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/androidenterprise |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "serviceAccountKey": [ serviceaccountkeys Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
serviceAccountKey[] |
list |
The service account credentials. |