R2
R2
Buckets
R2.Buckets
Methods
Lists all R2 buckets on your account.
Gets properties of an existing R2 bucket.
Creates a new R2 bucket.
Updates properties of an existing R2 bucket.
Deletes an existing R2 bucket.
Domain types
A single R2 bucket.
Methods
Get the CORS policy for a bucket.
Set the CORS policy for a bucket.
Delete the CORS policy for a bucket.
Methods
Gets a list of all custom domains registered with an existing R2 bucket.
Get the configuration for a custom domain on an existing R2 bucket.
Register a new custom domain for an existing R2 bucket.
Edit the configuration for a custom domain on an existing R2 bucket.
Remove custom domain registration from 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.
Methods
List all event notification rules for a bucket.
Get a single event notification rule.
Create event notification rule.
Delete an event notification rule. If no body is provided, all rules for specified queue will be deleted.
Methods
Get object lifecycle rules for a bucket.
Set the object lifecycle rules for a bucket.
Methods
Get lock rules for a bucket.
Set lock rules for a bucket.
Methods
Get Storage/Object Count Metrics across all buckets in your account. Note that Account-Level Metrics may not immediately reflect the latest data.
Methods
Gets configuration for Sippy for an existing R2 bucket.
Sets configuration for Sippy for an existing R2 bucket.
Disables Sippy on this bucket.
Domain types
Super Slurper
R2.SuperSlurper
R2.SuperSlurper.ConnectivityPrecheck
Methods
Check whether tokens are valid against the source bucket
Check whether tokens are valid against the target bucket
R2.SuperSlurper.Jobs
Methods
List jobs
Get job details
Create a job
Abort all jobs
Abort a job
Pause a job
Get job progress
Resume a job
R2.SuperSlurper.Jobs.Logs
Methods
Get job logs
Temporary Credentials
R2.TemporaryCredentials
Methods
Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.
Domain types