Method: enterprises.enrollmentTokens.list
HTTP 要求
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。企業名稱,格式為 enterprises/{enterpriseId} 。
|
查詢參數
參數 |
pageSize |
integer
所要求的頁面大小。服務傳回的產品數量可能會少於這個值。如未指定,最多將傳回 10 個項目。許可的最大值為 100;超出的數值將一律指定為 100。
|
pageToken |
string
用於識別伺服器傳回的結果頁面。
|
回應主體
回應要求,列出特定企業的註冊權杖。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"enrollmentTokens": [
{
object (EnrollmentToken )
}
],
"nextPageToken": string
} |
欄位 |
enrollmentTokens[] |
object (EnrollmentToken )
註冊權杖清單。
|
nextPageToken |
string
如果有更多結果,則是用來擷取下一頁結果的符記。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidmanagement
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-19 (世界標準時間)。
[null,null,["上次更新時間:2025-02-19 (世界標準時間)。"],[[["This operation lists active, unexpired enrollment tokens for a given enterprise, providing a partial view of the EnrollmentToken object with specific fields populated."],["The request requires the enterprise ID as a path parameter and allows for pagination using query parameters `pageSize` and `pageToken`."],["The response includes a list of enrollment tokens and a token for retrieving the next page of results if available."],["For security, it is recommended to delete active enrollment tokens when they are no longer needed."],["Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This document outlines the process of listing active enrollment tokens for an enterprise using a `GET` request. The request targets `enterprises/{enterpriseId}/enrollmentTokens` and requires a `parent` path parameter specifying the enterprise ID. Optional query parameters, `pageSize` and `pageToken`, manage result pagination. The request body must be empty. A successful response includes a list of `enrollmentTokens`, containing fields like name, expiration, usage allowance, value and qr code, and an optional `nextPageToken` for subsequent pages. This action requires the `androidmanagement` OAuth scope.\n"]]