drive.files.listLabels
Lists the labels attached to a Google Drive file by file ID, with pagination support to retrieve all labels.
Instructions
Lists the labels on a file. For more information, see List labels on a file [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: copy, create, delete, download, emptyTrash, export, generateCseToken, generateIds, get, list, modifyLabels, update, watch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | Yes | [URL path segment] The ID for the file. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| pageToken | No | [query parameter] The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response. | |
| maxResults | No | [query parameter] The maximum number of labels to return per page. When not set, defaults to 100. | 100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| labels | No | ||
| nextPageToken | No |