drive.drives.list
Lists a user's shared drives and supports query-based searching, pagination, and domain admin access so you can find and review available shared drives.
Instructions
Lists the user's shared drives. This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide [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: create, delete, get, hide, unhide, update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | [query parameter] Query string for searching shared drives. | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| pageSize | No | [query parameter] The maximum number of shared drives to return. The service may return fewer than this value. If unspecified, at most 10 shared drives will be returned. The maxi | 10 |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| pageToken | No | [query parameter] Page token for shared drives. | |
| useDomainAdminAccess | No | [query parameter] Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned. | false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| drives | No | ||
| nextPageToken | No |