Method: labels.permissions.list
Liệt kê các quyền của Nhãn.
Yêu cầu HTTP
GET https://drivelabels.googleapis.com/v2/{parent=labels/*}/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-04 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-04 UTC."],[[["This document details how to list a Label's permissions using the Drive Labels API's `ListLabelPermissions` method."],["The method uses an HTTP GET request with required path and optional query parameters."],["The request body should be empty, and a successful response will contain a `ListLabelPermissionsResponse` object."],["Proper authorization with specific OAuth scopes like `https://www.googleapis.com/auth/drive.labels` is required to access this functionality."]]],["This outlines how to list a Label's permissions using an HTTP GET request to `https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions`. The `parent` path parameter is mandatory, defining the Label's resource name. Optional query parameters include `useAdminAccess`, `pageSize` (default 50, max 200), and `pageToken` for pagination. The request body must be empty. A successful response provides a `ListLabelPermissionsResponse`. Authorization requires specific OAuth scopes related to Drive labels.\n"]]