
Google Workspace List
CertifiedList Drive files with a query
Google Workspace List
Certified
List Drive files with a query
Runs Drive files.list with an optional search query and corpora scope using a service account. Fetches all pages and reports count via metrics.
yaml
type: io.kestra.plugin.googleworkspace.drive.ListExamples
List subfolder in a Drive folder
yaml
id: googleworkspace_drive_list
namespace: company.team
tasks:
- id: list
type: io.kestra.plugin.googleworkspace.drive.List
query: |
mimeType = 'application/vnd.google-apps.folder'
and '1z2GZgLEX12BN9zbVE6TodrCHyTRMj_ka' in parents
Properties
corpora array
SubTypestring
Possible Values
userdomainteamDriveallTeamDrivesCorpora scope
'allTeamDrives' must be combined with 'user'; prefer 'user' or 'teamDrive' for performance
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
query string
Drive search query
Drive v3 search string; if empty, lists all files accessible to the service account. See Search Files API.
readTimeout integerstring
Default
120The read timeout for the request (in seconds)
scopes array
SubTypestring
Default
["https://www.googleapis.com/auth/drive"]The GCP scopes to used
serviceAccount string
The GCP service account key
Outputs
files array
Files returned
Definitions
io.kestra.plugin.googleworkspace.drive.models.File
createdTimestring
Format
date-timeidstring
mimeTypestring
namestring
parentsarray
SubTypestring
sizeinteger
trashedboolean
versioninteger
Metrics
size counter
Unit
countNumber of files returned by the list query