R2
R2Buckets
List Buckets
client.r2.buckets.list(BucketListParams { account_id, cursor, direction, 5 more } params, RequestOptionsoptions?): BucketListResponse { buckets }
GET/accounts/{account_id}/r2/buckets
Get Bucket
client.r2.buckets.get(stringbucketName, BucketGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): Bucket { creation_date, jurisdiction, location, 2 more }
GET/accounts/{account_id}/r2/buckets/{bucket_name}
Create Bucket
client.r2.buckets.create(BucketCreateParams { account_id, name, locationHint, 2 more } params, RequestOptionsoptions?): Bucket { creation_date, jurisdiction, location, 2 more }
POST/accounts/{account_id}/r2/buckets
Patch Bucket
client.r2.buckets.edit(stringbucketName, BucketEditParams { account_id, storage_class, jurisdiction } params, RequestOptionsoptions?): Bucket { creation_date, jurisdiction, location, 2 more }
PATCH/accounts/{account_id}/r2/buckets/{bucket_name}
Delete Bucket
client.r2.buckets.delete(stringbucketName, BucketDeleteParams { account_id, jurisdiction } params, RequestOptionsoptions?): BucketDeleteResponse
DELETE/accounts/{account_id}/r2/buckets/{bucket_name}
R2BucketsLifecycle
Get Object Lifecycle Rules
client.r2.buckets.lifecycle.get(stringbucketName, LifecycleGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): LifecycleGetResponse { rules }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle
Put Object Lifecycle Rules
client.r2.buckets.lifecycle.update(stringbucketName, LifecycleUpdateParams { account_id, rules, jurisdiction } params, RequestOptionsoptions?): LifecycleUpdateResponse
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle
R2BucketsCORS
Get Bucket CORS Policy
client.r2.buckets.cors.get(stringbucketName, CORSGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): CORSGetResponse { rules }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/cors
Put Bucket CORS Policy
client.r2.buckets.cors.update(stringbucketName, CORSUpdateParams { account_id, rules, jurisdiction } params, RequestOptionsoptions?): CORSUpdateResponse
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/cors
Delete Bucket CORS Policy
client.r2.buckets.cors.delete(stringbucketName, CORSDeleteParams { account_id, jurisdiction } params, RequestOptionsoptions?): CORSDeleteResponse
DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/cors
R2BucketsDomains
R2BucketsDomainsCustom
List Custom Domains of Bucket
client.r2.buckets.domains.custom.list(stringbucketName, CustomListParams { account_id, jurisdiction } params, RequestOptionsoptions?): CustomListResponse { domains }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom
Get Custom Domain Settings
client.r2.buckets.domains.custom.get(stringbucketName, stringdomain, CustomGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): CustomGetResponse { domain, enabled, status, 4 more }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}
Attach Custom Domain To Bucket
client.r2.buckets.domains.custom.create(stringbucketName, CustomCreateParams { account_id, domain, enabled, 4 more } params, RequestOptionsoptions?): CustomCreateResponse { domain, enabled, ciphers, minTLS }
POST/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom
Configure Custom Domain Settings
client.r2.buckets.domains.custom.update(stringbucketName, stringdomain, CustomUpdateParams { account_id, ciphers, enabled, 2 more } params, RequestOptionsoptions?): CustomUpdateResponse { domain, ciphers, enabled, minTLS }
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}
Remove Custom Domain From Bucket
client.r2.buckets.domains.custom.delete(stringbucketName, stringdomain, CustomDeleteParams { account_id, jurisdiction } params, RequestOptionsoptions?): CustomDeleteResponse { domain }
DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/domains/custom/{domain}
R2BucketsDomainsManaged
Get r2.dev Domain of Bucket
client.r2.buckets.domains.managed.list(stringbucketName, ManagedListParams { account_id, jurisdiction } params, RequestOptionsoptions?): ManagedListResponse { bucketId, domain, enabled }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed
Update r2.dev Domain of Bucket
client.r2.buckets.domains.managed.update(stringbucketName, ManagedUpdateParams { account_id, enabled, jurisdiction } params, RequestOptionsoptions?): ManagedUpdateResponse { bucketId, domain, enabled }
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/domains/managed
R2BucketsEvent Notifications
List Event Notification Rules
client.r2.buckets.eventNotifications.list(stringbucketName, EventNotificationListParams { account_id, jurisdiction } params, RequestOptionsoptions?): EventNotificationListResponse { bucketName, queues }
GET/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration
Get Event Notification Rule
client.r2.buckets.eventNotifications.get(stringbucketName, stringqueueId, EventNotificationGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): EventNotificationGetResponse { queueId, queueName, rules }
GET/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}
Create Event Notification Rule
client.r2.buckets.eventNotifications.update(stringbucketName, stringqueueId, EventNotificationUpdateParams { account_id, rules, jurisdiction } params, RequestOptionsoptions?): EventNotificationUpdateResponse
PUT/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}
Delete Event Notification Rules
client.r2.buckets.eventNotifications.delete(stringbucketName, stringqueueId, EventNotificationDeleteParams { account_id, jurisdiction } params, RequestOptionsoptions?): EventNotificationDeleteResponse
DELETE/accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}
R2BucketsLocks
Get Bucket Lock Rules
client.r2.buckets.locks.get(stringbucketName, LockGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): LockGetResponse { rules }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/lock
Put Bucket Lock Rules
client.r2.buckets.locks.update(stringbucketName, LockUpdateParams { account_id, rules, jurisdiction } params, RequestOptionsoptions?): LockUpdateResponse
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/lock
R2BucketsMetrics
Get Account-Level Metrics
client.r2.buckets.metrics.list(MetricListParams { account_id } params, RequestOptionsoptions?): MetricListResponse { infrequentAccess, standard }
GET/accounts/{account_id}/r2/metrics
R2BucketsSippy
Get Sippy Configuration
client.r2.buckets.sippy.get(stringbucketName, SippyGetParams { account_id, jurisdiction } params, RequestOptionsoptions?): Sippy { destination, enabled, source }
GET/accounts/{account_id}/r2/buckets/{bucket_name}/sippy
Enable Sippy
client.r2.buckets.sippy.update(stringbucketName, SippyUpdateParamsparams, RequestOptionsoptions?): Sippy { destination, enabled, source }
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/sippy
Disable Sippy
client.r2.buckets.sippy.delete(stringbucketName, SippyDeleteParams { account_id, jurisdiction } params, RequestOptionsoptions?): SippyDeleteResponse { enabled }
DELETE/accounts/{account_id}/r2/buckets/{bucket_name}/sippy
R2Temporary Credentials
Create Temporary Access Credentials
client.r2.temporaryCredentials.create(TemporaryCredentialCreateParams { account_id, bucket, parentAccessKeyId, 4 more } params, RequestOptionsoptions?): TemporaryCredentialCreateResponse { accessKeyId, secretAccessKey, sessionToken }
POST/accounts/{account_id}/r2/temp-access-credentials
R2Super Slurper
R2Super SlurperJobs
List jobs
client.r2.superSlurper.jobs.list(JobListParams { account_id, limit, offset } params, RequestOptionsoptions?): SinglePage<JobListResponse { id, createdAt, finishedAt, 4 more } >
GET/accounts/{account_id}/slurper/jobs
Get job details
client.r2.superSlurper.jobs.get(stringjobId, JobGetParams { account_id } params, RequestOptionsoptions?): JobGetResponse { id, createdAt, finishedAt, 4 more }
GET/accounts/{account_id}/slurper/jobs/{job_id}
Create a job
client.r2.superSlurper.jobs.create(JobCreateParams { account_id, overwrite, source, target } params, RequestOptionsoptions?): JobCreateResponse { id }
POST/accounts/{account_id}/slurper/jobs
Abort all jobs
client.r2.superSlurper.jobs.abortAll(JobAbortAllParams { account_id } params, RequestOptionsoptions?): JobAbortAllResponse
PUT/accounts/{account_id}/slurper/jobs/abortAll
Abort a job
client.r2.superSlurper.jobs.abort(stringjobId, JobAbortParams { account_id } params, RequestOptionsoptions?): JobAbortResponse
PUT/accounts/{account_id}/slurper/jobs/{job_id}/abort
Pause a job
client.r2.superSlurper.jobs.pause(stringjobId, JobPauseParams { account_id } params, RequestOptionsoptions?): JobPauseResponse
PUT/accounts/{account_id}/slurper/jobs/{job_id}/pause
Get job progress
client.r2.superSlurper.jobs.progress(stringjobId, JobProgressParams { account_id } params, RequestOptionsoptions?): JobProgressResponse { id, createdAt, failedObjects, 4 more }
GET/accounts/{account_id}/slurper/jobs/{job_id}/progress
Resume a job
client.r2.superSlurper.jobs.resume(stringjobId, JobResumeParams { account_id } params, RequestOptionsoptions?): JobResumeResponse
PUT/accounts/{account_id}/slurper/jobs/{job_id}/resume
R2Super SlurperJobsLogs
Get job logs
client.r2.superSlurper.jobs.logs.list(stringjobId, LogListParams { account_id, limit, offset } params, RequestOptionsoptions?): SinglePage<LogListResponse { createdAt, job, logType, 2 more } >
GET/accounts/{account_id}/slurper/jobs/{job_id}/logs
R2Super SlurperConnectivity Precheck
Check source connectivity
client.r2.superSlurper.connectivityPrecheck.source(ConnectivityPrecheckSourceParamsparams, RequestOptionsoptions?): ConnectivityPrecheckSourceResponse { connectivityStatus }
PUT/accounts/{account_id}/slurper/source/connectivity-precheck
Check target connectivity
client.r2.superSlurper.connectivityPrecheck.target(ConnectivityPrecheckTargetParams { account_id, bucket, secret, 2 more } params, RequestOptionsoptions?): ConnectivityPrecheckTargetResponse { connectivityStatus }
PUT/accounts/{account_id}/slurper/target/connectivity-precheck