v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-137790167.2 KB
serviceaccountkeys

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.

post/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys

Path parameters

enterpriseIdstring required

The ID of the enterprise.

Request body

idstring

An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.

datastring

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. When type is "pkcs12", the contents of the data field is base64 encoded and has the password "notasecret".

type'googleCredentials' | 'pkcs12'

The file format of the generated key data.

publicDatastring

Public key data for the credentials file. This is an X.509 cert. If you are using the 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.

Response

Successful response