R2 - S3
HI everybody! Could somebody send me a simple curl example to list R2 buckets thriough S3 API. I've never used S3 and I have no idea how to to do it.
4 Replies
Could somebody send me a simple curl example to list R2 buckets thriough S3 API. I've never used S3 and I have no idea how to to do it.
If you're just looking for a way to do this from your terminal, have you looked into the AWS CLI? https://developers.cloudflare.com/r2/examples/aws/aws-cli/
aws CLI · Cloudflare R2 docs
You must generate an Access Key before getting started. All examples will utilize access_key_id and access_key_secret variables which represent the …
Doing this via cURL is of course possible, but it'll be a little painful because you'll have to type in the XML request bodies that the S3 API expects
Thank you!!!