Method: enterprises.enrollmentTokens.create
為特定企業建立註冊權杖。呼叫端有責任管理新建立的權杖生命週期,並在權杖不再使用時將其 deleting
。
HTTP 要求
POST https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
企業名稱,格式為 enterprises/{enterpriseId} 。
|
要求主體
要求主體包含 EnrollmentToken
的例項。
回應主體
如果成功,回應主體會包含新建立的 EnrollmentToken
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidmanagement
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-30 (世界標準時間)。
[null,null,["上次更新時間:2025-01-30 (世界標準時間)。"],[[["Creates enrollment tokens for enterprises, allowing the caller to manage their lifecycle, including deletion when no longer needed."],["Uses an HTTP POST request to `https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens` with the enterprise name specified in the path parameter."],["Requires an `EnrollmentToken` object in the request body and returns a newly created `EnrollmentToken` object in the response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/androidmanagement` scope for access."]]],[]]