s3ListBuckets

Lists all buckets accessible with the resolved credentials. Returns an array of structs with bucketName and creationDate.

s3ListBuckets([accessKeyId, secretKey, host]) → returns array

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

accessKeyId string

Inline AWS access key id. Overrides credentials from Application.cfc and environment variables.

secretKey string

Inline AWS secret access key.

host string

Inline endpoint URL for S3-compatible providers (e.g. Cloudflare R2, MinIO).

Examples
Sample code invoking the s3ListBuckets function

Returns an array of bucket structs.

buckets = s3ListBuckets();

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub