Liệt kê các mã thông báo đăng ký đang hoạt động và chưa hết hạn cho một doanh nghiệp nhất định. Các mục trong danh sách chỉ chứa một phần chế độ xem của đối tượng EnrollmentToken. Chỉ điền các trường sau: name, expirationTimestamp, allowPersonalUsage, value, qrCode. Phương thức này dùng để quản lý vòng đời của mã đăng ký đang hoạt động. Vì lý do bảo mật, bạn nên delete mã thông báo đăng ký đang hoạt động ngay khi không còn sử dụng nữa.
Yêu cầu HTTP
GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/enrollmentTokens
Bắt buộc. Tên của doanh nghiệp ở dạng enterprises/{enterpriseId}.
Tham số truy vấn
Thông số
pageSize
integer
Kích thước trang được yêu cầu. Dịch vụ có thể trả về ít hơn giá trị này. Nếu không xác định, hệ thống sẽ trả về tối đa 10 mục. Giá trị tối đa là 100; các giá trị trên 100 sẽ được chuyển đổi thành 100.
pageToken
string
Mã thông báo xác định trang kết quả do máy chủ trả về.
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Phản hồi yêu cầu liệt kê mã thông báo đăng ký cho một doanh nghiệp nhất định.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["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"]]