List files from a GCS bucket.

yaml
type: "io.kestra.plugin.gcp.gcs.list"

List files in a GCS bucket

yaml
id: gcp_gcs_list
namespace: company.team

tasks:
  - id: list
    type: io.kestra.plugin.gcp.gcs.List
    from: "gs://my_bucket/dir/"
Properties

The directory to list

If set to true, lists all versions of a blob. The default is false.

DefaultBOTH
Possible Values
FILESDIRECTORYBOTH

The filter for files or a directory

The GCP service account to impersonate.

DefaultDIRECTORY
Possible Values
RECURSIVEDIRECTORY

The listing type you want (like directory or recursive)

if DIRECTORY, will only list objects in the specified directory if RECURSIVE, will list objects in the specified directory recursively Default value is DIRECTORY When using RECURSIVE value, be careful to move your files to a location not in the from scope

The GCP project ID.

A regexp to filter on full path

ex: regExp: .* to match all files regExp: .*2020-01-0.\\.csv to match files between 01 and 09 of january ending with .csv

SubTypestring
Default["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used.

The GCP service account.

The list of blobs

Definitions
bucketstring
cacheControlstring
componentCountinteger
contentDispositionstring
contentEncodingstring
contentLanguagestring
contentTypestring
crc32cstring
createTimestring
Formatdate-time
customTimestring
Formatdate-time
deleteTimestring
Formatdate-time
etagstring
eventBasedHoldboolean
generatedIdstring
isDirectoryboolean
kmsKeyNamestring
md5string
mediaLinkstring
metaGenerationinteger
metadataobject
SubTypestring
namestring
retentionExpirationTimeinteger
selfLinkstring
sizeinteger
temporaryHoldboolean
timeStorageClassUpdatedstring
Formatdate-time
updateTimestring
Formatdate-time
uristring
Formaturi
Unitfiles

Number of blobs listed.