Alibaba Cloud List

Alibaba Cloud List

Certified

List objects in an OSS bucket

Lists the objects of a bucket, optionally filtered by prefix and regular expression. Folder placeholder objects (keys ending with /) are skipped. Results are capped by maxFiles.

yaml
type: io.kestra.plugin.alibaba.oss.List

List the CSV files under a prefix

yaml
id: oss_list
namespace: company.team

tasks:
  - id: list
    type: io.kestra.plugin.alibaba.oss.List
    accessKeyId: "{{ secret('ALIBABA_ACCESS_KEY_ID') }}"
    accessKeySecret: "{{ secret('ALIBABA_ACCESS_KEY_SECRET') }}"
    region: cn-hangzhou
    bucket: my-bucket
    prefix: landing/
    regexp: ".*\\.csv"
Properties

AccessKey ID

The AccessKey ID used to authenticate against Alibaba Cloud.

AccessKey secret

The AccessKey secret paired with the AccessKey ID.

Bucket

The name of the OSS bucket.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Delimiter

Groups keys that share the prefix up to the next delimiter, for example / to list a single folder level. Grouped keys are not returned.

Endpoint override

Custom http or https endpoint URL. When set, it takes precedence over the endpoint derived from region.

Default25

Maximum number of files

Maximum number of objects returned, between 1 and 1000 (default 25). A warning is logged when more objects match.

Defaultfalse

Path-style access

Address buckets as <endpoint>/<bucket> instead of <bucket>.<endpoint>. Useful with custom endpoints such as a local emulator.

Prefix

Only objects whose key starts with this prefix are listed.

Regular expression

Only objects whose full key matches this Java regular expression are returned. It is limited to 256 characters and evaluation is time-boxed to guard against catastrophic backtracking.

Region

The Alibaba Cloud region ID, for example cn-hangzhou. The service endpoint is derived from it unless endpointOverride is set.

Security token

Optional Security Token Service (STS) token, required when using temporary credentials.

The matching objects

Definitions
etagstring

ETag

keystring

Object key

lastModifiedstring
Formatdate-time

Last modified time

sizeinteger

Size in bytes

storageClassstring

Storage class