v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1320176217.8 KB
enterprises

Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https://developers.google.com/android/management/dpc-migration) for more details.

post/v1/{+parent}/migrationTokens

Path parameters

parentstring required

Required. The enterprise in which this migration token is created. This must be the same enterprise which already manages the device in the Play EMM API. Format: enterprises/{enterprise}

Request body

policystring

Required. Immutable. The name of the policy initially applied to the enrolled device, in the form enterprises/{enterprise}/policies/{policy}.

devicestring

Output only. Once this migration token is used to migrate a device, the name of the resulting Device resource will be populated here, in the form enterprises/{enterprise}/devices/{device}.

ttlstring google-duration

Input only. The time that this migration token is valid for. This is input-only, and for returning a migration token the server will populate the expireTime field. This can be at most seven days. The default is seven days.

additionalDatastring

Immutable. Optional EMM-specified additional data. Once the device is migrated this will be populated in the migrationAdditionalData field of the Device resource. This must be at most 1024 characters.

valuestring

Output only. The value of the migration token.

createTimestring google-datetime

Output only. Time when this migration token was created.

deviceIdstring

Required. Immutable. The id of the device, as in the Play EMM API. This corresponds to the deviceId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call.

userIdstring

Required. Immutable. The user id of the Managed Google Play account on the device, as in the Play EMM API. This corresponds to the userId parameter in Play EMM API's Devices.get (https://developers.google.com/android/work/play/emm-api/v1/devices/get#parameters) call.

namestring

Output only. The name of the migration token, which is generated by the server during creation, in the form enterprises/{enterprise}/migrationTokens/{migration_token}.

managementMode'MANAGEMENT_MODE_UNSPECIFIED' | 'WORK_PROFILE_PERSONALLY_OWNED' | 'WORK_PROFILE_COMPANY_OWNED' | 'FULLY_MANAGED'

Required. Immutable. The management mode of the device or profile being migrated.

expireTimestring google-datetime

Immutable. The time when this migration token expires. This can be at most seven days from the time of creation. The migration token is deleted seven days after it expires.

Response

Successful response