Method: enterprises.migrationTokens.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。遷移符記所屬的企業。格式:enterprises/{enterprise}
|
查詢參數
參數 |
pageSize |
integer
要傳回的遷移符記數量上限。可能會傳回較少的遷移符記。如未指定,最多將傳回 100 個遷移符記。許可的最大值為 100;超出的數值將一律指定為 100。
|
pageToken |
string
屬於接收自前一個 migrationTokens.list 呼叫的網頁權杖。提供此項目即可擷取後續網頁。 進行分頁時,提供至 migrationTokens.list 的所有其他參數須與提供網頁權杖的呼叫相符。
|
回應主體
回應要求,列出特定企業的遷移符記。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"migrationTokens": [
{
object (MigrationToken )
}
],
"nextPageToken": string
} |
欄位 |
migrationTokens[] |
object (MigrationToken )
指定企業的遷移符記。
|
nextPageToken |
string
可做為 pageToken 傳送的權杖,用於擷取後續網頁。如果省略這個欄位,就不會有後續頁面。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidmanagement
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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)."]]