Method: labels.locks.list
Lists the LabelLocks on a Label.
HTTP request
GET https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/locks
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. Label on which Locks are applied. Format: labels/{label}
|
Query parameters
Parameters |
pageSize |
integer
Maximum number of Locks to return per page. Default: 100. Max: 200.
|
pageToken |
string
The token of the page to return.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListLabelLocksResponse
.
Authorization scopes
Requires one of the following OAuth scopes:
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
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["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"]]