Method: labels.revisions.permissions.list
Liệt kê các quyền của Nhãn.
Yêu cầu HTTP
GET https://drivelabels.googleapis.com/v2beta/{parent=labels/*/revisions/*}/permissions
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. Tên tài nguyên nhãn gốc được liệt kê trên đó. Định dạng: labels/{label}
|
Tham số truy vấn
Thông số |
useAdminAccess |
boolean
Đặt thành true để sử dụng thông tin đăng nhập của quản trị viên của người dùng. Máy chủ sẽ xác minh người dùng là quản trị viên của Nhãn trước khi cho phép truy cập.
|
pageSize |
integer
Số lượng quyền tối đa được trả lại trên mỗi trang. Mặc định: 50. Tối đa: 200.
|
pageToken |
string
Mã thông báo của trang cần 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
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của ListLabelPermissionsResponse
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau đây:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.labels.readonly
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/drive.admin.labels.readonly
Để biết thêm thông tin, hãy xem bài viết Hướng dẫn uỷ quyền.
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: 2024-09-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-03 UTC."],[[["This document outlines how to list a Label's permissions using the Drive Labels API."],["The API request uses an HTTP GET method with the specific URL provided, including path and query parameters for customization."],["Authorization is required, and users need one of the specified OAuth scopes to access the API."],["Successful requests return a ListLabelPermissionsResponse containing details about the Label's permissions."],["An empty request body is necessary when making the API call."]]],["This outlines how to list a Label's permissions using an HTTP GET request to `https://drivelabels.googleapis.com/v2beta/{parent}/permissions`. The `parent` path parameter specifies the Label. Query parameters include `useAdminAccess`, `pageSize`, and `pageToken`. The request body must be empty. Successful requests return a `ListLabelPermissionsResponse`. Access requires one of the specified OAuth scopes. The maximum number of permissions to return per page is 200.\n"]]