Method: enterprises.migrationTokens.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างโทเค็นการย้ายข้อมูลเพื่อย้ายข้อมูลอุปกรณ์ที่มีอยู่จากเครื่องมือควบคุมนโยบายด้านอุปกรณ์ (DPC) ของ EMM ไปให้ Android Management API จัดการ ดูรายละเอียดเพิ่มเติมได้ที่คู่มือ
คำขอ HTTP
POST https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ องค์กรที่สร้างโทเค็นการย้ายข้อมูลนี้ องค์กรนี้ต้องเป็นองค์กรเดียวกับที่จัดการอุปกรณ์ใน Play EMM API อยู่แล้ว รูปแบบ: enterprises/{enterprise}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ MigrationToken
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ MigrationToken
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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\u003eCreates a migration token to transition device management from EMM's Device Policy Controller (DPC) to the Android Management API.\u003c/p\u003e\n"],["\u003cp\u003eThe request must specify the enterprise that currently manages the device in the Play EMM API.\u003c/p\u003e\n"],["\u003cp\u003eA successful response includes a newly created MigrationToken object containing the necessary information for migration.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This describes creating a migration token for transitioning device management from an existing Device Policy Controller (DPC) to the Android Management API. A `POST` request is sent to `https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens`, specifying the managing enterprise in the `parent` path parameter. The request and response bodies are instances of `MigrationToken`. Successful execution requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. This token facilitates migration of devices.\n"],null,["# Method: enterprises.migrationTokens.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates 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. See [the guide](https://developers.google.com/android/management/dpc-migration) for more details.\n\n### HTTP request\n\n`POST 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 in which this migration token is created. This must be the same enterprise which already manages the device in the Play EMM API. Format: `enterprises/{enterprise}` |\n\n### Request body\n\nThe request body contains an instance of [MigrationToken](/android/management/reference/rest/v1/enterprises.migrationTokens#MigrationToken).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [MigrationToken](/android/management/reference/rest/v1/enterprises.migrationTokens#MigrationToken).\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)."]]