Method: enterprises.migrationTokens.create
Tạo mã thông báo di chuyển để di chuyển một thiết bị hiện có từ việc do Trình kiểm soát chính sách thiết bị (DPC) của EMM quản lý sang do Android Management API quản lý. Hãy xem hướng dẫn để biết thêm thông tin chi tiết.
Yêu cầu HTTP
POST https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/migrationTokens
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Doanh nghiệp tạo mã thông báo di chuyển này. Đây phải là cùng một doanh nghiệp đã quản lý thiết bị trong API Play EMM. Định dạng enterprises/{enterprise}
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của MigrationToken
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể MigrationToken
mới tạo.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidmanagement
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-29 UTC."],[[["Creates a migration token to transition device management from EMM's Device Policy Controller (DPC) to the Android Management API."],["The request must specify the enterprise that currently manages the device in the Play EMM API."],["A successful response includes a newly created MigrationToken object containing the necessary information for migration."],["This functionality requires authorization with the `https://www.googleapis.com/auth/androidmanagement` scope."]]],["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"]]