Method: enterprises.migrationTokens.list
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Lista tokens de migração.
Solicitação HTTP
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
O URL usa a sintaxe de transcodificação gRPC.
Parâmetros de caminho
Parâmetros |
parent |
string
Obrigatório. A empresa a que os tokens de migração pertencem. Formato: enterprises/{enterprise}
|
Parâmetros de consulta
Parâmetros |
pageSize |
integer
O número máximo de tokens de migração a serem retornados. Menos tokens de migração podem ser retornados. Se não for especificado, no máximo 100 tokens de migração serão retornados. O valor máximo é 100. Valores acima disso vão ser convertidos para 100.
|
pageToken |
string
Um token de página recebido de uma chamada migrationTokens.list anterior. Forneça isso para recuperar a página subsequente. Ao paginar, todos os outros parâmetros fornecidos para migrationTokens.list precisam corresponder à chamada que forneceu o token da página.
|
Corpo da solicitação
O corpo da solicitação precisa estar vazio.
Corpo da resposta
Resposta a uma solicitação para listar tokens de migração de uma determinada empresa.
Se bem-sucedido, o corpo da resposta incluirá dados com a estrutura a seguir:
Representação JSON |
{
"migrationTokens": [
{
object (MigrationToken )
}
],
"nextPageToken": string
} |
Campos |
migrationTokens[] |
object (MigrationToken )
Os tokens de migração da empresa especificada.
|
nextPageToken |
string
Um token, que pode ser enviado como pageToken para recuperar a próxima página. Se esse campo for omitido, não haverá páginas subsequentes.
|
Escopos de autorização
Requer o seguinte escopo OAuth:
https://www.googleapis.com/auth/androidmanagement
Para mais informações, consulte OAuth 2.0 Overview.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 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)."]]