Serviceaccountkeys Stay organized with collections Save and categorize content based on your preferences.
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 ofmethods for this resource, see the end of this page.
Resource representations
Deprecated: New integrations cannot use this method and can refer to our new recommendations
This method will no longer be accessible by anyone after September 30, 2025. Credentials that can be used to authenticate as a service account.
{"kind":"androidenterprise#serviceAccountKey","id":string,"type":string,"data":string,"publicData":string}| Property name | Value | Description | Notes |
|---|---|---|---|
data | string | The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google. | |
id | string | An opaque, unique identifier for this ServiceAccountKey. Assigned by the server. | |
kind | string | ||
publicData | string | Public key data for the credentials file. This is an X.509 cert. If you are using thegoogleCredentials 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 | The file format of the generated key data. Acceptable values are:
|
Methods
- delete
- Deprecated: New integrations cannot use this method and can refer toour newrecommendations.
This method will no longer be accessible byanyone after September 30, 2025.Removes and invalidates the specified credentials for the service accountassociated with this enterprise. The calling service account must have beenretrieved by calling Enterprises.GetServiceAccount and must have been setas the enterprise service account by calling Enterprises.SetAccount. - insert
- Deprecated: New integrations cannot use this method and can refer toour newrecommendations.
This method will no longer be accessible byanyone after September 30, 2025.Generates new credentials for the service account associated with thisenterprise. The calling service account must have been retrieved by callingEnterprises.GetServiceAccount and must have been set as the enterpriseservice account by calling Enterprises.SetAccount.
Only the type of the key should be populated in the resource to beinserted. - list
- Deprecated: New integrations cannot use this method and can refer toour newrecommendations.
This method will no longer be accessible byanyone after September 30, 2025.Lists all active credentials for the service account associated with thisenterprise. Only the ID and key type are returned. The calling serviceaccount must have been retrieved by calling Enterprises.GetServiceAccountand must have been set as the enterprise service account by callingEnterprises.SetAccount.
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 2024-10-31 UTC.