Method: labels.locks.list
HTTP 请求
GET https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/locks
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。已应用锁定的标签。格式:labels/{label}
|
查询参数
参数 |
pageSize |
integer
每页可返回的锁定次数上限。默认值:100。最大值:200。
|
pageToken |
string
要返回的页面的令牌。
|
响应正文
如果成功,则响应正文包含一个 ListLabelLocksResponse
实例。
授权范围
需要以下 OAuth 范围之一:
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
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-04。
[null,null,["最后更新时间 (UTC):2024-09-04。"],[[["This endpoint allows you to retrieve a list of LabelLocks applied to a specific Label using an HTTP GET request."],["You need to specify the parent Label in the path parameter using the format `labels/{label}`."],["Optional query parameters `pageSize` and `pageToken` can be used for pagination to control the number of results and navigate through pages."],["Authorization is required with specific OAuth scopes related to Drive Labels, such as `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels`."],["A successful response will provide a `ListLabelLocksResponse` object containing the LabelLocks information."]]],["This document outlines the process for listing LabelLocks on a Label using a `GET` HTTP request to `https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/locks`. The request requires a `parent` path parameter specifying the label. Optional query parameters include `pageSize` (default 100, max 200) and `pageToken` for pagination. The request body must be empty. The response body returns a `ListLabelLocksResponse` and requires specific authorization scopes.\n"]]