Endpoint Lists shared drives
Name
list_shared_drives
Description
Lists the user's shared drives (i.e. formally known as team drive) with optional search criteria [API reference]
Related Tables
Parameters
Parameter | Required | Options | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name:
Label: PageSize |
||||||||||||||||
Name:
Label: Search Criteria (Keep blank to get all) File list filter |
|
|||||||||||||||
Name:
Label: UseDomainAdminAccess Some operations such as searching for shared drives with specific attributes might need Admin access (set this to true) |
|
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(500)
|
500 | |
Name |
DT_WSTR
|
nvarchar(50)
|
50 | |
ColorRgb |
DT_WSTR
|
nvarchar(100)
|
100 | |
Kind |
DT_WSTR
|
nvarchar(500)
|
500 | |
BackgroundImageLink |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
CanAddChildren |
DT_BOOL
|
bit
|
||
CanComment |
DT_BOOL
|
bit
|
||
CanCopy |
DT_BOOL
|
bit
|
||
CanDeleteDrive |
DT_BOOL
|
bit
|
||
CanDownload |
DT_BOOL
|
bit
|
||
CanEdit |
DT_BOOL
|
bit
|
||
CanListChildren |
DT_BOOL
|
bit
|
||
CanManageMembers |
DT_BOOL
|
bit
|
||
CanReadRevisions |
DT_BOOL
|
bit
|
||
CanRename |
DT_BOOL
|
bit
|
||
CanRenameDrive |
DT_BOOL
|
bit
|
||
CanChangeDriveBackground |
DT_BOOL
|
bit
|
||
CanShare |
DT_BOOL
|
bit
|
||
CanChangeCopyRequiresWriterPermissionRestriction |
DT_BOOL
|
bit
|
||
CanChangeDomainUsersOnlyRestriction |
DT_BOOL
|
bit
|
||
CanChangeDriveMembersOnlyRestriction |
DT_BOOL
|
bit
|
||
CanChangeSharingFoldersRequiresOrganizerPermissionRestriction |
DT_BOOL
|
bit
|
||
CanResetDriveRestrictions |
DT_BOOL
|
bit
|
||
CanDeleteChildren |
DT_BOOL
|
bit
|
||
CanTrashChildren |
DT_BOOL
|
bit
|
||
CreatedTime |
DT_DBTIMESTAMP
|
datetime
|
||
Hidden |
DT_BOOL
|
bit
|
||
CopyRequiresWriterPermission |
DT_BOOL
|
bit
|
||
DomainUsersOnly |
DT_BOOL
|
bit
|
||
DriveMembersOnly |
DT_BOOL
|
bit
|
||
AdminManagedRestrictions |
DT_BOOL
|
bit
|
||
SharingFoldersRequiresOrganizerPermission |
DT_BOOL
|
bit
|
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Google Drive Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
This Endpoint belongs to the SharedDrives table, therefore it is better to use it, instead of accessing the endpoint directly:
There are no parameters to configure. |

API Destination
This Endpoint belongs to the SharedDrives table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to lists shared drives:
There are no parameters to configure. |

ODBC application
Use these SQL queries in your ODBC application data source:
List all shared drives
List all shared drives
SELECT * FROM SharedDrives --WITH(Query='name = "HR"')
Get information about shared drive
Get information about shared drive
SELECT * FROM SharedDrives WITH(Query='name = "HR"')
list_shared_drives
endpoint belongs to
SharedDrives
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List all shared drives
List all shared drives
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SharedDrives --WITH(Query=''name = "HR"'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Get information about shared drive
Get information about shared drive
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SharedDrives WITH(Query=''name = "HR"'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
list_shared_drives
endpoint belongs to
SharedDrives
table(s), and can therefore be used via those table(s).