Insert

Generates new credentials for the service account associated with this enterprise

6 variables
5 variables

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

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • Manage corporate Android devices

Input

This building block consumes 6 input parameters

  = Parameter name
  = Format

enterpriseId STRING Required

The ID of the enterprise

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

Identifies what kind of resource this is. Value: the fixed string "androidenterprise#serviceAccountKey"

publicData STRING

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

type STRING

The file format of the generated key data

Output

This building block provides 5 output parameters

  = Parameter name
  = Format

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

Identifies what kind of resource this is. Value: the fixed string "androidenterprise#serviceAccountKey"

publicData STRING

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

type STRING

The file format of the generated key data