Actions17
- Bucket Actions
- Object Actions
- Batch Operations Actions
Bucket → Create
AI-generatedSummary
Create a new R2 bucket
Inputs
- bucketName (required) — The name of the R2 bucket. Must be unique across all of Cloudflare R2.
- location — Optional location hint for the bucket (e.g., Automatic, ENAM, WNAM, EEUR, APAC).
Output shape
bucket object returned by Cloudflare R2
The response contains the created bucket details; success is indicated by a non‑error result.
Examples
Example 1: Create a bucket with an explicit location
bucketName: my-r2-bucket, location: Europe (EEUR)
Example 2: Create a bucket with automatic location
bucketName: my-r2-bucket, location: Automatic