R2
r2
Buckets
r2.buckets
Methods
Creates a new R2 bucket.
Deletes an existing R2 bucket.
Gets metadata for an existing R2 bucket.
Lists all R2 buckets on your account
Domain types
Methods
Delete the CORS policy for a bucket
Get the CORS policy for a bucket
Set the CORS policy for a bucket
Methods
Register a new custom domain for an existing R2 bucket.
Remove custom domain registration from an existing R2 bucket
Get the configuration for a custom domain on an existing R2 bucket.
Gets a list of all custom domains registered with an existing R2 bucket.
Edit the configuration for a custom domain on an existing R2 bucket.
Methods
Gets state of public access over the bucket's R2-managed (r2.dev) domain.
Updates state of public access over the bucket's R2-managed (r2.dev) domain.
r2.buckets.event_notifications.configuration
Methods
List all event notification rules for a bucket.
r2.buckets.event_notifications.configuration.queues
Methods
Delete an event notification rule. If no body is provided, all rules for specified queue will be deleted.
Create event notification rule.
Methods
Get object lifecycle rules for a bucket
Set the object lifecycle rules for a bucket
Methods
Disables Sippy on this bucket
Gets configuration for Sippy for an existing R2 bucket.
Sets configuration for Sippy for an existing R2 bucket.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Account ID
Name of the bucket
The bucket jurisdiction
Whether the API call was successful
Domain types
Temporary Credentials
r2.temporary_credentials
Methods
Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.
Domain types