Requires authorization
Lists the user's Team Drives. Try it now.
This method accepts the q
parameter, which is a search query combining one or more search terms. For more information, see the Search for Files and Team Drives guide.
Request
HTTP request
GET https://www.googleapis.com/drive/v2/teamdrives
Parameters
Parameter name | Value | Description |
---|---|---|
Optional query parameters | ||
maxResults |
integer |
Maximum number of Team Drives to return.
Acceptable values are 1 to 100 , inclusive.
(Default: 10 )
|
pageToken |
string |
Page token for Team Drives. |
q |
string |
Query string for searching Team Drives. See the "Search for Files and Team Drives" guide for supported syntax. |
useDomainAdminAccess |
boolean |
Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.
(Default: false )
|
Authorization
This request requires authorization with at least one of the following scopes (read more about authentication and authorization).
Scope |
---|
https://www.googleapis.com/auth/drive |
https://www.googleapis.com/auth/drive.readonly |
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "drive#teamDriveList", "nextPageToken": string, "items": [ teamdrives Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
kind |
string |
This is always drive#teamDriveList | |
nextPageToken |
string |
The page token for the next page of Team Drives. | |
items[] |
list |
The list of Team Drives. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.