Google Workspace List

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.List

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
SubTypestring
Possible Values
userdomainteamDriveallTeamDrives

Corpora scope

'allTeamDrives' must be combined with 'user'; prefer 'user' or 'teamDrive' for performance

Reference (ref) of the pluginDefaults to apply to this task.

Drive search query

Drive v3 search string; if empty, lists all files accessible to the service account. See Search Files API.

Default120

The read timeout for the request (in seconds)

SubTypestring
Default["https://www.googleapis.com/auth/drive"]

The GCP scopes to used

The GCP service account key

Files returned

Definitions
createdTimestring
Formatdate-time
idstring
mimeTypestring
namestring
parentsarray
SubTypestring
sizeinteger
trashedboolean
versioninteger
Unitcount

Number of files returned by the list query