Page Summary
-
New integrations should not use this method and should refer to the new recommendations instead.
-
This method will no longer be accessible by anyone after September 30, 2025.
-
The resource representation describes credentials for authenticating as a service account.
-
The resource includes properties for
data,id,kind,publicData, andtype. -
Methods for this resource include
delete,insert, andlist, all of which are deprecated.
For a list of methods for this resource, see the end of this page.
Resource representations
Credentials that can be used to authenticate as a service account.
{ "kind" : "androidenterprise#serviceAccountKey" , "id" : string , "type" : string , "data" : string , "publicData" : string }
data
string
type
is " pkcs12
", the contents of the data
field is base64 encoded and has the password " notasecret
".id
string
kind
string
publicData
string
googleCredentials
key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.type
string
Acceptable values are:
- "
googleCredentials" - "
pkcs12"
Methods
- delete
- Removes and invalidates the specified credentials for the service account associated with this enterprise. 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.
- insert
-
Generates new credentials for the service account associated with this
enterprise. 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.
Only the type of the key should be populated in the resource to be inserted. - list
- 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.

