Method: enterprises.migrationTokens.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการโทเค็นการย้ายข้อมูล
คำขอ HTTP
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ องค์กรที่เป็นเจ้าของโทเค็นการย้ายข้อมูล รูปแบบ: enterprises/{enterprise}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
จํานวนโทเค็นการย้ายข้อมูลสูงสุดที่จะแสดง ระบบอาจแสดงโทเค็นการย้ายข้อมูลน้อยลง หากไม่ระบุ ระบบจะแสดงผลโทเค็นการย้ายข้อมูลไม่เกิน 100 รายการ ค่าสูงสุดคือ 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
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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)."]]