Method: enterprises.migrationTokens.list
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The enterprise which the migration tokens belong to. Format: enterprises/{enterprise}
|
Query parameters
Parameters |
pageSize |
integer
The maximum number of migration tokens to return. Fewer migration tokens may be returned. If unspecified, at most 100 migration tokens will be returned. The maximum value is 100; values above 100 will be coerced to 100.
|
pageToken |
string
A page token, received from a previous migrationTokens.list call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to migrationTokens.list must match the call that provided the page token.
|
Request body
The request body must be empty.
Response body
Response to a request to list migration tokens for a given enterprise.
If successful, the response body contains data with the following structure:
JSON representation |
{
"migrationTokens": [
{
object (MigrationToken )
}
],
"nextPageToken": string
} |
Fields |
migrationTokens[] |
object (MigrationToken )
The migration tokens from the specified enterprise.
|
nextPageToken |
string
A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidmanagement
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-19 UTC.
[null,null,["Last updated 2025-02-19 UTC."],[[["\u003cp\u003eLists all migration tokens for a given enterprise, allowing for pagination to retrieve large sets of tokens.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe API request uses a \u003ccode\u003eGET\u003c/code\u003e method and specifies the enterprise with a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes a list of migration tokens and a token for retrieving subsequent pages if available.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should be empty, and query parameters can control pagination.\u003c/p\u003e\n"]]],["This document details how to list migration tokens for an enterprise using a `GET` request to a specific URL (`https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens`). The request requires specifying the `parent` enterprise in the URL path. Optional query parameters `pageSize` (max 100) and `pageToken` enable pagination. The request body should be empty. The response contains a list of `migrationTokens` and optionally a `nextPageToken` for subsequent pages. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope.\n"],null,["# Method: enterprises.migrationTokens.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListMigrationTokensResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists migration tokens.\n\n### HTTP request\n\n`GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The enterprise which the migration tokens belong to. Format: `enterprises/{enterprise}` |\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of migration tokens to return. Fewer migration tokens may be returned. If unspecified, at most 100 migration tokens will be returned. The maximum value is 100; values above 100 will be coerced to 100. |\n| `pageToken` | `string` A page token, received from a previous [`migrationTokens.list`](/android/management/reference/rest/v1/enterprises.migrationTokens/list#google.android.devicemanagement.v1.DeviceManagementService.ListMigrationTokens) call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `migrationTokens.list` must match the call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse to a request to list migration tokens for a given enterprise.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"migrationTokens\": [ { object (/android/management/reference/rest/v1/enterprises.migrationTokens#MigrationToken) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `migrationTokens[]` | `object (`[MigrationToken](/android/management/reference/rest/v1/enterprises.migrationTokens#MigrationToken)`)` The migration tokens from the specified enterprise. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]