customers

POST /v1/customers/{customersId}/enrollmentTokens

Creates a new enrollment token for a browser device. Creation fails if there is already an active token for this customer under the same org unit.

Request

  • Base URL
    https://chromemanagement.googleapis.com
  • URL
    https://chromemanagement.googleapis.com/v1/customers/{customersId}/enrollmentTokens
  • Auth
    none declared

Path parameters

customersIdstring required

Query parameters

enrollmentTokenIdstring

Optional. The ID to use for the enrollment token, which will become the final component of the enrollment token's resource name. This value must be local-unique under the customer and is optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long and match the regular expression [a-zA-Z0-9._-]+.

Request body

createTimestring google-datetime

Output only. The creation time of the token.

creatorIdstring

Output only. The id of the user who created the token.

customerIdstring

Output only. The obfuscated ID of the customer to whom this token is associated.

namestring

Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}

orgUnitIdstring

Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.

revokeTimestring google-datetime

Output only. The revocation time of the token, null if the token is not revoked.

revokerIdstring

Output only. The id of the user who revoked the token, null if the token is not revoked.

state'ENROLLMENT_TOKEN_STATE_UNSPECIFIED' | 'ENROLLMENT_TOKEN_STATE_ACTIVE' | 'ENROLLMENT_TOKEN_STATE_EXPIRED' | 'ENROLLMENT_TOKEN_STATE_REVOKED'

Output only. The state of the token.

tokenstring

Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.

tokenPermanentIdstring

Output only. Unique identifier of the enrollment token used to access information on tokens.

tokenType'ENROLLMENT_TOKEN_TYPE_UNSPECIFIED' | 'ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER'

Optional. The device type this token is used for. If not set, defaults to ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER.

Response

Successful response

createTimestring google-datetime

Output only. The creation time of the token.

creatorIdstring

Output only. The id of the user who created the token.

customerIdstring

Output only. The obfuscated ID of the customer to whom this token is associated.

namestring

Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}

orgUnitIdstring

Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.

revokeTimestring google-datetime

Output only. The revocation time of the token, null if the token is not revoked.

revokerIdstring

Output only. The id of the user who revoked the token, null if the token is not revoked.

state'ENROLLMENT_TOKEN_STATE_UNSPECIFIED' | 'ENROLLMENT_TOKEN_STATE_ACTIVE' | 'ENROLLMENT_TOKEN_STATE_EXPIRED' | 'ENROLLMENT_TOKEN_STATE_REVOKED'

Output only. The state of the token.

tokenstring

Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.

tokenPermanentIdstring

Output only. Unique identifier of the enrollment token used to access information on tokens.

tokenType'ENROLLMENT_TOKEN_TYPE_UNSPECIFIED' | 'ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER'

Optional. The device type this token is used for. If not set, defaults to ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER.

Changes

No recorded changes to this operation across all 8 revisions of this API.