Downloads
Download multiple files from a GCS bucket.
type: "io.kestra.plugin.gcp.gcs.Downloads"
Examples
Download a list of files and move it to an archive folders
id: gcp_gcs_downloads
namespace: company.team
tasks:
- id: downloads
type: io.kestra.plugin.gcp.gcs.Downloads
from: gs://my-bucket/kestra/files/
action: MOVE
moveDirectory: gs://my-bucket/kestra/archive/
Properties
action *Requiredstring
MOVE
DELETE
NONE
The action to perform on the retrieved files. If using 'NONE' make sure to handle the files inside your flow to avoid infinite triggering.
from *Requiredstring
The directory to list
allVersions booleanstring
If set to true
, lists all versions of a blob. The default is false
.
impersonatedServiceAccount string
The GCP service account to impersonate.
listingType string
DIRECTORY
RECURSIVE
DIRECTORY
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
moveDirectory string
The destination directory for MOVE
action.
projectId string
The GCP project ID.
regExp string
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
scopes array
["https://www.googleapis.com/auth/cloud-platform"]
The GCP scopes to be used.
serviceAccount string
The GCP service account.
Outputs
Definitions
io.kestra.plugin.gcp.gcs.models.Blob
bucket string
cacheControl string
componentCount integer
contentDisposition string
contentEncoding string
contentLanguage string
contentType string
crc32c string
createTime string
date-time
customTime string
date-time
deleteTime string
date-time
etag string
eventBasedHold boolean
generatedId string
isDirectory boolean
kmsKeyName string
md5 string
mediaLink string
metaGeneration integer
metadata object
name string
retentionExpirationTime integer
selfLink string
size integer
temporaryHold boolean
timeStorageClassUpdated string
date-time
updateTime string
date-time
uri string
uri