Resource: MigrationToken
A token to initiate the migration of a device from being managed by a third-party DPC to being managed by Android Management API. A migration token is valid only for a single device. See the guide for more details.
JSON representation |
---|
{ "name": string, "value": string, "createTime": string, "userId": string, "deviceId": string, "managementMode": enum ( |
Fields | |
---|---|
name |
Output only. The name of the migration token, which is generated by the server during creation, in the form |
value |
Output only. The value of the migration token. |
createTime |
Output only. Time when this migration token was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
userId |
Required. Immutable. The user id of the Managed Google Play account on the device, as in the Play EMM API. This corresponds to the |
deviceId |
Required. Immutable. The id of the device, as in the Play EMM API. This corresponds to the |
managementMode |
Required. Immutable. The management mode of the device or profile being migrated. |
policy |
Required. Immutable. The name of the policy initially applied to the enrolled device, in the form |
additionalData |
Immutable. Optional EMM-specified additional data. Once the device is migrated this will be populated in the |
device |
Output only. Once this migration token is used to migrate a device, the name of the resulting |
Union field
|
|
expireTime |
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. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ttl |
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 A duration in seconds with up to nine fractional digits, ending with ' |
ManagementMode
The management mode of the device or profile being migrated.
Enums | |
---|---|
MANAGEMENT_MODE_UNSPECIFIED |
This value must not be used. |
WORK_PROFILE_PERSONALLY_OWNED |
A work profile on a personally owned device. Supported only on devices running Android 9 and above. |
WORK_PROFILE_COMPANY_OWNED |
A work profile on a company-owned device. Supported only on devices running Android 11 and above. |
FULLY_MANAGED |
A fully-managed device. Supported only on devices running Android 9 and above. |
Methods |
|
---|---|
|
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. |
|
Gets a migration token. |
|
Lists migration tokens. |