---
title: R2
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# R2

#### R2Buckets

##### [List Buckets](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/methods/list)

client.R2.Buckets.List(ctx, params) (\*[BucketListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20BucketListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets

##### [Get Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/methods/get)

client.R2.Buckets.Get(ctx, bucketName, params) (\*[Bucket](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}

##### [Create Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/methods/create)

client.R2.Buckets.New(ctx, params) (\*[Bucket](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/r2/buckets

##### [Patch Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/methods/edit)

client.R2.Buckets.Edit(ctx, bucketName, params) (\*[Bucket](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/r2/buckets/{bucket\_name}

##### [Delete Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/methods/delete)

client.R2.Buckets.Delete(ctx, bucketName, params) (\*[BucketDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20BucketDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/r2/buckets/{bucket\_name}

##### ModelsExpand Collapse

<details>

<summary>

type Bucket struct{…}

A single R2 bucket.

</summary>

CreationDate stringOptional

Creation timestamp.

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20creation_date">Link to this property</a>

<details>

<summary>

Jurisdiction BucketJurisdictionOptional

Jurisdiction where objects in this bucket are guaranteed to be stored.

</summary>

One of the following:

const BucketJurisdictionDefault BucketJurisdiction = "default"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%200">Link to this property</a>

const BucketJurisdictionEu BucketJurisdiction = "eu"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%201">Link to this property</a>

const BucketJurisdictionUs BucketJurisdiction = "us"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%202">Link to this property</a>

const BucketJurisdictionFedramp BucketJurisdiction = "fedramp"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%203">Link to this property</a>

const BucketJurisdictionFedrampHigh BucketJurisdiction = "fedramp-high"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20jurisdiction">Link to this property</a>

<details>

<summary>

Location BucketLocationOptional

Location of the bucket.

</summary>

One of the following:

const BucketLocationApac BucketLocation = "apac"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%200">Link to this property</a>

const BucketLocationEeur BucketLocation = "eeur"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%201">Link to this property</a>

const BucketLocationEnam BucketLocation = "enam"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%202">Link to this property</a>

const BucketLocationWeur BucketLocation = "weur"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%203">Link to this property</a>

const BucketLocationWnam BucketLocation = "wnam"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%204">Link to this property</a>

const BucketLocationOc BucketLocation = "oc"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20location">Link to this property</a>

Name stringOptional

Name of the bucket.

maxLength64

minLength3

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

StorageClass BucketStorageClassOptional

Storage class for newly uploaded objects, unless specified otherwise.

</summary>

One of the following:

const BucketStorageClassStandard BucketStorageClass = "Standard"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20storage_class%20%3E%20(member)%200">Link to this property</a>

const BucketStorageClassInfrequentAccess BucketStorageClass = "InfrequentAccess"

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20storage_class%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)%20%3E%20(property)%20storage_class">Link to this property</a>

</details>

[Link to this property](<#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>)

#### R2BucketsLifecycle

##### [Get Object Lifecycle Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/lifecycle/methods/get)

client.R2.Buckets.Lifecycle.Get(ctx, bucketName, params) (\*[BucketLifecycleGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20BucketLifecycleGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/lifecycle

##### [Set Object Lifecycle Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/lifecycle/methods/update)

client.R2.Buckets.Lifecycle.Update(ctx, bucketName, params) (\*[BucketLifecycleUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20BucketLifecycleUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/lifecycle

#### R2BucketsCORS

##### [Get Bucket CORS Policy](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/cors/methods/get)

client.R2.Buckets.CORS.Get(ctx, bucketName, params) (\*[BucketCORSGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20BucketCORSGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/cors

##### [Set Bucket CORS Policy](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/cors/methods/update)

client.R2.Buckets.CORS.Update(ctx, bucketName, params) (\*[BucketCORSUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20BucketCORSUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/cors

##### [Delete Bucket CORS Policy](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/cors/methods/delete)

client.R2.Buckets.CORS.Delete(ctx, bucketName, params) (\*[BucketCORSDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20BucketCORSDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/r2/buckets/{bucket\_name}/cors

#### R2BucketsDomains

#### R2BucketsDomainsCustom

##### [List Custom Domains of Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/custom/methods/list)

client.R2.Buckets.Domains.Custom.List(ctx, bucketName, params) (\*[BucketDomainCustomListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20BucketDomainCustomListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/custom

##### [Get Custom Domain Settings](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/custom/methods/get)

client.R2.Buckets.Domains.Custom.Get(ctx, bucketName, domain, params) (\*[BucketDomainCustomGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20BucketDomainCustomGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/custom/{domain}

##### [Attach Custom Domain To Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/custom/methods/create)

client.R2.Buckets.Domains.Custom.New(ctx, bucketName, params) (\*[BucketDomainCustomNewResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20BucketDomainCustomNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/custom

##### [Configure Custom Domain Settings](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/custom/methods/update)

client.R2.Buckets.Domains.Custom.Update(ctx, bucketName, domain, params) (\*[BucketDomainCustomUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20BucketDomainCustomUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/custom/{domain}

##### [Remove Custom Domain From Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/custom/methods/delete)

client.R2.Buckets.Domains.Custom.Delete(ctx, bucketName, domain, params) (\*[BucketDomainCustomDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20BucketDomainCustomDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/custom/{domain}

#### R2BucketsDomainsManaged

##### [Get r2.dev Domain of Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/managed/methods/list)

client.R2.Buckets.Domains.Managed.List(ctx, bucketName, params) (\*[BucketDomainManagedListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.managed%20%3E%20(model)%20BucketDomainManagedListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/managed

##### [Update r2.dev Domain of Bucket](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/domains/subresources/managed/methods/update)

client.R2.Buckets.Domains.Managed.Update(ctx, bucketName, params) (\*[BucketDomainManagedUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.domains.managed%20%3E%20(model)%20BucketDomainManagedUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/domains/managed

#### R2BucketsEvent Notifications

##### [List Event Notification Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/event_notifications/methods/list)

client.R2.Buckets.EventNotifications.List(ctx, bucketName, params) (\*[BucketEventNotificationListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20BucketEventNotificationListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/event\_notifications/r2/{bucket\_name}/configuration

##### [Get Event Notification Rules for a Queue](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/event_notifications/methods/get)

client.R2.Buckets.EventNotifications.Get(ctx, bucketName, queueID, params) (\*[BucketEventNotificationGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20BucketEventNotificationGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/event\_notifications/r2/{bucket\_name}/configuration/queues/{queue\_id}

##### [Create Event Notification Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/event_notifications/methods/update)

client.R2.Buckets.EventNotifications.Update(ctx, bucketName, queueID, params) (\*[BucketEventNotificationUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20BucketEventNotificationUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/event\_notifications/r2/{bucket\_name}/configuration/queues/{queue\_id}

##### [Delete Event Notification Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/event_notifications/methods/delete)

client.R2.Buckets.EventNotifications.Delete(ctx, bucketName, queueID, params) (\*[BucketEventNotificationDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20BucketEventNotificationDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/event\_notifications/r2/{bucket\_name}/configuration/queues/{queue\_id}

#### R2BucketsLocks

##### [Get Bucket Lock Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/locks/methods/get)

client.R2.Buckets.Locks.Get(ctx, bucketName, params) (\*[BucketLockGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.locks%20%3E%20(model)%20BucketLockGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/lock

##### [Set Bucket Lock Rules](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/locks/methods/update)

client.R2.Buckets.Locks.Update(ctx, bucketName, params) (\*[BucketLockUpdateResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.locks%20%3E%20(model)%20BucketLockUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/lock

#### R2BucketsMetrics

##### [Get Account-Level Metrics](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/metrics/methods/list)

client.R2.Buckets.Metrics.List(ctx, query) (\*[BucketMetricListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.metrics%20%3E%20(model)%20BucketMetricListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/metrics

#### R2BucketsSippy

##### [Get Sippy Configuration](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/sippy/methods/get)

client.R2.Buckets.Sippy.Get(ctx, bucketName, params) (\*[Sippy](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/sippy

##### [Enable Sippy](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/sippy/methods/update)

client.R2.Buckets.Sippy.Update(ctx, bucketName, params) (\*[Sippy](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/sippy

##### [Disable Sippy](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/sippy/methods/delete)

client.R2.Buckets.Sippy.Delete(ctx, bucketName, params) (\*[BucketSippyDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20BucketSippyDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/r2/buckets/{bucket\_name}/sippy

##### ModelsExpand Collapse

type Provider string

[Link to this property](<#(resource)%20r2.buckets.sippy%20%3E%20(model)%20provider%20%3E%20(schema)>)

<details>

<summary>

type Sippy struct{…}

</summary>

<details>

<summary>

Destination SippyDestinationOptional

Details about the configured destination bucket.

</summary>

AccessKeyID stringOptional

ID of the Cloudflare API token used when writing objects to this bucket.

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20accessKeyId">Link to this property</a>

Account stringOptional

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20account">Link to this property</a>

Bucket stringOptional

Name of the bucket on the provider.

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20bucket">Link to this property</a>

Provider <a href="https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20provider%20%3E%20(schema)">Provider</a>Optional

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20destination%20%3E%20(property)%20provider">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20destination">Link to this property</a>

Enabled boolOptional

State of Sippy for this bucket.

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Source SippySourceOptional

Details about the configured source bucket.

</summary>

Bucket stringOptional

Name of the bucket on the provider (AWS, GCS only).

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20bucket">Link to this property</a>

BucketURL stringOptional

S3-compatible URL (Generic S3-compatible providers only).

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20bucketUrl">Link to this property</a>

Container stringOptional

Name of the Azure Blob Storage container (Azure only).

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20container">Link to this property</a>

<details>

<summary>

Provider SippySourceProviderOptional

</summary>

One of the following:

const SippySourceProviderAws SippySourceProvider = "aws"

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20provider%20%3E%20(member)%200">Link to this property</a>

const SippySourceProviderGcs SippySourceProvider = "gcs"

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20provider%20%3E%20(member)%201">Link to this property</a>

const SippySourceProviderS3 SippySourceProvider = "s3"

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20provider%20%3E%20(member)%202">Link to this property</a>

const SippySourceProviderAzure SippySourceProvider = "azure"

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20provider%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20provider">Link to this property</a>

Region stringOptional

Region where the bucket resides (AWS only).

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20region">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)>)

#### R2BucketsObjects

##### [List Objects](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/objects/methods/list)

client.R2.Buckets.Objects.List(ctx, bucketName, params) (\*CursorPagination\[[BucketObjectListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20BucketObjectListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/objects

##### [Get Object](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/objects/methods/get)

client.R2.Buckets.Objects.Get(ctx, bucketName, objectKey, params) (\*Response, error)

GET/accounts/{account\_id}/r2/buckets/{bucket\_name}/objects/{object\_key}

##### [Upload Object](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/objects/methods/upload)

client.R2.Buckets.Objects.Upload(ctx, bucketName, objectKey, body, params) (\*[BucketObjectUploadResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20BucketObjectUploadResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/r2/buckets/{bucket\_name}/objects/{object\_key}

##### [Delete Object](https://developers.cloudflare.com/api/go/resources/r2/subresources/buckets/subresources/objects/methods/delete)

client.R2.Buckets.Objects.Delete(ctx, bucketName, objectKey, params) (\*[BucketObjectDeleteResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20BucketObjectDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/r2/buckets/{bucket\_name}/objects/{object\_key}

#### R2Temporary Credentials

##### [Create Temporary Access Credentials](https://developers.cloudflare.com/api/go/resources/r2/subresources/temporary_credentials/methods/create)

client.R2.TemporaryCredentials.New(ctx, params) (\*[TemporaryCredentialNewResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.temporary_credentials%20%3E%20(model)%20TemporaryCredentialNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/r2/temp-access-credentials

##### ModelsExpand Collapse

<details>

<summary>

type TemporaryCredential struct{…}

</summary>

Bucket string

Name of the R2 bucket.

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20bucket">Link to this property</a>

ParentAccessKeyID string

Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token’s permissions.

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20parentAccessKeyId">Link to this property</a>

<details>

<summary>

Permission TemporaryCredentialPermission

Permissions allowed on the credentials.

</summary>

One of the following:

const TemporaryCredentialPermissionAdminReadWrite TemporaryCredentialPermission = "admin-read-write"

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20permission%20%3E%20(member)%200">Link to this property</a>

const TemporaryCredentialPermissionAdminReadOnly TemporaryCredentialPermission = "admin-read-only"

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20permission%20%3E%20(member)%201">Link to this property</a>

const TemporaryCredentialPermissionObjectReadWrite TemporaryCredentialPermission = "object-read-write"

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20permission%20%3E%20(member)%202">Link to this property</a>

const TemporaryCredentialPermissionObjectReadOnly TemporaryCredentialPermission = "object-read-only"

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20permission%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20permission">Link to this property</a>

TTLSeconds float64

Lifetime of the temporary credentials in seconds, up to 604800 seconds (7 days).

maximum604800

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20ttlSeconds">Link to this property</a>

Objects \[]stringOptional

Optional object paths to scope the credentials to.

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20objects">Link to this property</a>

Prefixes \[]stringOptional

Optional prefix paths to scope the credentials to.

<a href="#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)%20%3E%20(property)%20prefixes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20r2.temporary_credentials%20%3E%20(model)%20temporary_credential%20%3E%20(schema)>)

#### R2Super Slurper

#### R2Super SlurperJobs

##### [List jobs](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/list)

client.R2.SuperSlurper.Jobs.List(ctx, params) (\*SinglePage\[[SuperSlurperJobListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.jobs%20%3E%20(model)%20SuperSlurperJobListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/slurper/jobs

##### [Get job details](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/get)

client.R2.SuperSlurper.Jobs.Get(ctx, jobID, query) (\*[SuperSlurperJobGetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.jobs%20%3E%20(model)%20SuperSlurperJobGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/slurper/jobs/{job\_id}

##### [Create a job](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/create)

client.R2.SuperSlurper.Jobs.New(ctx, params) (\*[SuperSlurperJobNewResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.jobs%20%3E%20(model)%20SuperSlurperJobNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/slurper/jobs

##### [Abort all jobs](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/abort_all)

client.R2.SuperSlurper.Jobs.AbortAll(ctx, body) (\*string, error)

PUT/accounts/{account\_id}/slurper/jobs/abortAll

##### [Abort a job](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/abort)

client.R2.SuperSlurper.Jobs.Abort(ctx, jobID, body) (\*string, error)

PUT/accounts/{account\_id}/slurper/jobs/{job\_id}/abort

##### [Pause a job](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/pause)

client.R2.SuperSlurper.Jobs.Pause(ctx, jobID, body) (\*string, error)

PUT/accounts/{account\_id}/slurper/jobs/{job\_id}/pause

##### [Get job progress](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/progress)

client.R2.SuperSlurper.Jobs.Progress(ctx, jobID, query) (\*[SuperSlurperJobProgressResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.jobs%20%3E%20(model)%20SuperSlurperJobProgressResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/slurper/jobs/{job\_id}/progress

##### [Resume a job](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/methods/resume)

client.R2.SuperSlurper.Jobs.Resume(ctx, jobID, body) (\*string, error)

PUT/accounts/{account\_id}/slurper/jobs/{job\_id}/resume

#### R2Super SlurperJobsLogs

##### [Get job logs](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/jobs/subresources/logs/methods/list)

client.R2.SuperSlurper.Jobs.Logs.List(ctx, jobID, params) (\*SinglePage\[[SuperSlurperJobLogListResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.jobs.logs%20%3E%20(model)%20SuperSlurperJobLogListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/slurper/jobs/{job\_id}/logs

#### R2Super SlurperConnectivity Precheck

##### [Check source connectivity](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/connectivity_precheck/methods/source)

client.R2.SuperSlurper.ConnectivityPrecheck.Source(ctx, params) (\*[SuperSlurperConnectivityPrecheckSourceResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.connectivity_precheck%20%3E%20(model)%20SuperSlurperConnectivityPrecheckSourceResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/slurper/source/connectivity-precheck

##### [Check target connectivity](https://developers.cloudflare.com/api/go/resources/r2/subresources/super_slurper/subresources/connectivity_precheck/methods/target)

client.R2.SuperSlurper.ConnectivityPrecheck.Target(ctx, params) (\*[SuperSlurperConnectivityPrecheckTargetResponse](<https://developers.cloudflare.com/api/go/resources/r2#(resource)%20r2.super_slurper.connectivity_precheck%20%3E%20(model)%20SuperSlurperConnectivityPrecheckTargetResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/slurper/target/connectivity-precheck