---
title: Buckets
---

[Skip to content](#_top)

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

[R2](https://developers.cloudflare.com/api/typescript/resources/r2)

Copy Markdown

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

---

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

# Buckets

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

client.r2.buckets.list(BucketListParams {account\_id, cursor, direction, 5 more } params, RequestOptionsoptions?): [BucketListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket_list_response%20%3E%20(schema)>) {buckets }

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

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

client.r2.buckets.get(stringbucketName, BucketGetParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [Bucket](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>) {creation\_date, jurisdiction, location, 2 more }

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

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

client.r2.buckets.create(BucketCreateParams {account\_id, name, locationHint, 2 more } params, RequestOptionsoptions?): [Bucket](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>) {creation\_date, jurisdiction, location, 2 more }

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

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

client.r2.buckets.edit(stringbucketName, BucketEditParams {account\_id, storage\_class, cfR2Jurisdiction } params, RequestOptionsoptions?): [Bucket](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)>) {creation\_date, jurisdiction, location, 2 more }

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

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

client.r2.buckets.delete(stringbucketName, BucketDeleteParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [BucketDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

Bucket {creation\_date, jurisdiction, location, 2 more }

A single R2 bucket.

</summary>

creation\_date?: string

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?: "default"| "eu"| "us"| 2 more

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

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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?: "apac"| "eeur"| "enam"| 3 more

Location of the bucket.

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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>

"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?: string

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>

storage\_class?: "Standard"| "InfrequentAccess"

Storage class for newly uploaded objects, unless specified otherwise.

</summary>

One of the following:

"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>

"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)>)

<details>

<summary>

BucketListResponse {buckets }

</summary>

<details>

<summary>

buckets?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets%20%3E%20(model)%20bucket%20%3E%20(schema)">Bucket</a> {creation\_date, jurisdiction, location, 2 more } &gt;

</summary>

creation\_date?: string

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?: "default"| "eu"| "us"| 2 more

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

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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?: "apac"| "eeur"| "enam"| 3 more

Location of the bucket.

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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>

"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?: string

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>

storage\_class?: "Standard"| "InfrequentAccess"

Storage class for newly uploaded objects, unless specified otherwise.

</summary>

One of the following:

"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>

"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>

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

</details>

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

BucketDeleteResponse = unknown

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

#### BucketsLifecycle

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

client.r2.buckets.lifecycle.get(stringbucketName, LifecycleGetParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [LifecycleGetResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)>) {rules }

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

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

client.r2.buckets.lifecycle.update(stringbucketName, LifecycleUpdateParams {account\_id, rules, cfR2Jurisdiction } params, RequestOptionsoptions?): [LifecycleUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_update_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

LifecycleGetResponse {rules }

</summary>

<details>

<summary>

rules?: Array&lt;Rule&gt;

</summary>

id: string

Unique identifier for this rule.

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

conditions: Conditions {prefix }

Conditions that apply to all transitions of this rule.

</summary>

prefix: string

Transitions will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions%20%3E%20(property)%20prefix">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20conditions">Link to this property</a>

enabled: boolean

Whether or not this rule is in effect.

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

<details>

<summary>

abortMultipartUploadsTransition?: AbortMultipartUploadsTransition {condition }

Transition to abort ongoing multipart uploads.

</summary>

<details>

<summary>

condition?: Condition {maxAge, type }

Condition for lifecycle transitions to apply after an object reaches an age in seconds.

</summary>

maxAge: number

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20abortMultipartUploadsTransition%20%3E%20(property)%20condition%20%3E%20(property)%20maxAge">Link to this property</a>

type: "Age"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20abortMultipartUploadsTransition%20%3E%20(property)%20condition%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20abortMultipartUploadsTransition%20%3E%20(property)%20condition">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20abortMultipartUploadsTransition">Link to this property</a>

<details>

<summary>

deleteObjectsTransition?: DeleteObjectsTransition {condition }

Transition to delete objects.

</summary>

<details>

<summary>

condition?: R2LifecycleAgeCondition {maxAge, type } | R2LifecycleDateCondition {date, type }

Condition for lifecycle transitions to apply after an object reaches an age in seconds.

</summary>

One of the following:

<details>

<summary>

R2LifecycleAgeCondition {maxAge, type }

Condition for lifecycle transitions to apply after an object reaches an age in seconds.

</summary>

maxAge: number

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20maxAge">Link to this property</a>

type: "Age"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

R2LifecycleDateCondition {date, type }

Condition for lifecycle transitions to apply on a specific date.

</summary>

date: string

formatdate-time

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20date">Link to this property</a>

type: "Date"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition%20%3E%20(property)%20condition">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20deleteObjectsTransition">Link to this property</a>

<details>

<summary>

storageClassTransitions?: Array&lt;StorageClassTransition&gt;

Transitions to change the storage class of objects.

</summary>

<details>

<summary>

condition: R2LifecycleAgeCondition {maxAge, type } | R2LifecycleDateCondition {date, type }

Condition for lifecycle transitions to apply after an object reaches an age in seconds.

</summary>

One of the following:

<details>

<summary>

R2LifecycleAgeCondition {maxAge, type }

Condition for lifecycle transitions to apply after an object reaches an age in seconds.

</summary>

maxAge: number

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20maxAge">Link to this property</a>

type: "Age"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

R2LifecycleDateCondition {date, type }

Condition for lifecycle transitions to apply on a specific date.

</summary>

date: string

formatdate-time

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20date">Link to this property</a>

type: "Date"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20condition">Link to this property</a>

storageClass: "InfrequentAccess"

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions%20%3E%20(items)%20%3E%20(property)%20storageClass">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.lifecycle%20%3E%20(model)%20lifecycle_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20storageClassTransitions">Link to this property</a>

</details>

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

</details>

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

LifecycleUpdateResponse = unknown

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

#### BucketsCORS

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

client.r2.buckets.cors.get(stringbucketName, CORSGetParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [CORSGetResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)>) {rules }

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

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

client.r2.buckets.cors.update(stringbucketName, CORSUpdateParams {account\_id, rules, cfR2Jurisdiction } params, RequestOptionsoptions?): [CORSUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_update_response%20%3E%20(schema)>)

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

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

client.r2.buckets.cors.delete(stringbucketName, CORSDeleteParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [CORSDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

CORSGetResponse {rules }

</summary>

<details>

<summary>

rules?: Array&lt;Rule&gt;

</summary>

<details>

<summary>

allowed: Allowed {methods, origins, headers }

Object specifying allowed origins, methods and headers for this CORS rule.

</summary>

<details>

<summary>

methods: Array&lt;"GET"| "PUT"| "POST"| 2 more&gt;

Specifies the value for the Access-Control-Allow-Methods header R2 sets when requesting objects in a bucket from a browser.

</summary>

One of the following:

"GET"

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"PUT"

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"POST"

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"DELETE"

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"HEAD"

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20methods">Link to this property</a>

origins: Array&lt;string&gt;

Specifies the value for the Access-Control-Allow-Origin header R2 sets when requesting objects in a bucket from a browser.

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20origins">Link to this property</a>

headers?: Array&lt;string&gt;

Specifies the value for the Access-Control-Allow-Headers header R2 sets when requesting objects in this bucket from a browser. Cross-origin requests that include custom headers (e.g. x-user-id) should specify these headers as AllowedHeaders.

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed%20%3E%20(property)%20headers">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20allowed">Link to this property</a>

id?: string

Identifier for this rule.

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

exposeHeaders?: Array&lt;string&gt;

Specifies the headers that can be exposed back, and accessed by, the JavaScript making the cross-origin request. If you need to access headers beyond the safelisted response headers, such as Content-Encoding or cf-cache-status, you must specify it here.

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20exposeHeaders">Link to this property</a>

maxAgeSeconds?: number

Specifies the amount of time (in seconds) browsers are allowed to cache CORS preflight responses. Browsers may limit this to 2 hours or less, even if the maximum value (86400) is specified.

<a href="#(resource)%20r2.buckets.cors%20%3E%20(model)%20cors_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20maxAgeSeconds">Link to this property</a>

</details>

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

</details>

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

CORSUpdateResponse = unknown

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

CORSDeleteResponse = unknown

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

#### BucketsDomains

#### BucketsDomainsCustom

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

client.r2.buckets.domains.custom.list(stringbucketName, CustomListParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [CustomListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)>) {domains }

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

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

client.r2.buckets.domains.custom.get(stringdomain, CustomGetParams {account\_id, bucket\_name, cfR2Jurisdiction } params, RequestOptionsoptions?): [CustomGetResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)>) {domain, enabled, status, 4 more }

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

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

client.r2.buckets.domains.custom.create(stringbucketName, CustomCreateParams {account\_id, domain, enabled, 4 more } params, RequestOptionsoptions?): [CustomCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_create_response%20%3E%20(schema)>) {domain, enabled, zoneId, 2 more }

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

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

client.r2.buckets.domains.custom.update(stringdomain, CustomUpdateParams {account\_id, bucket\_name, ciphers, 3 more } params, RequestOptionsoptions?): [CustomUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_update_response%20%3E%20(schema)>) {domain, ciphers, enabled, minTLS }

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

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

client.r2.buckets.domains.custom.delete(stringdomain, CustomDeleteParams {account\_id, bucket\_name, cfR2Jurisdiction } params, RequestOptionsoptions?): [CustomDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_delete_response%20%3E%20(schema)>) {domain }

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

##### ModelsExpand Collapse

<details>

<summary>

CustomListResponse {domains }

</summary>

<details>

<summary>

domains: Array&lt;Domain&gt;

</summary>

domain: string

Domain name of the custom domain to be added.

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20domain">Link to this property</a>

enabled: boolean

Whether this bucket is publicly accessible at the specified custom domain.

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

<details>

<summary>

status: Status {ownership, ssl }

</summary>

<details>

<summary>

ownership: "pending"| "active"| "deactivated"| 3 more

Ownership status of the domain.

</summary>

One of the following:

"pending"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%201">Link to this property</a>

"deactivated"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%202">Link to this property</a>

"blocked"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%203">Link to this property</a>

"error"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%204">Link to this property</a>

"unknown"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ownership">Link to this property</a>

<details>

<summary>

ssl: "initializing"| "pending"| "active"| 3 more

SSL certificate status.

</summary>

One of the following:

"initializing"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%200">Link to this property</a>

"pending"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%201">Link to this property</a>

"active"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%202">Link to this property</a>

"deactivated"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%203">Link to this property</a>

"error"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%204">Link to this property</a>

"unknown"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(property)%20ssl">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

ciphers?: Array&lt;string&gt;

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20ciphers">Link to this property</a>

<details>

<summary>

minTLS?: "1.0"| "1.1"| "1.2"| "1.3"

Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.

</summary>

One of the following:

"1.0"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20minTLS%20%3E%20(member)%200">Link to this property</a>

"1.1"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20minTLS%20%3E%20(member)%201">Link to this property</a>

"1.2"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20minTLS%20%3E%20(member)%202">Link to this property</a>

"1.3"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20minTLS%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20minTLS">Link to this property</a>

zoneId?: string

Zone ID of the custom domain resides in.

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20zoneId">Link to this property</a>

zoneName?: string

Zone that the custom domain resides in.

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_list_response%20%3E%20(schema)%20%3E%20(property)%20domains%20%3E%20(items)%20%3E%20(property)%20zoneName">Link to this property</a>

</details>

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

</details>

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

<details>

<summary>

CustomGetResponse {domain, enabled, status, 4 more }

</summary>

domain: string

Domain name of the custom domain to be added.

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

enabled: boolean

Whether this bucket is publicly accessible at the specified custom domain.

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

<details>

<summary>

status: Status {ownership, ssl }

</summary>

<details>

<summary>

ownership: "pending"| "active"| "deactivated"| 3 more

Ownership status of the domain.

</summary>

One of the following:

"pending"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%200">Link to this property</a>

"active"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%201">Link to this property</a>

"deactivated"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%202">Link to this property</a>

"blocked"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%203">Link to this property</a>

"error"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%204">Link to this property</a>

"unknown"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ownership">Link to this property</a>

<details>

<summary>

ssl: "initializing"| "pending"| "active"| 3 more

SSL certificate status.

</summary>

One of the following:

"initializing"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%200">Link to this property</a>

"pending"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%201">Link to this property</a>

"active"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%202">Link to this property</a>

"deactivated"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%203">Link to this property</a>

"error"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%204">Link to this property</a>

"unknown"

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.domains.custom%20%3E%20(model)%20custom_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(property)%20ssl">Link to this property</a>

</details>

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

ciphers?: Array&lt;string&gt;

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

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

<details>

<summary>

minTLS?: "1.0"| "1.1"| "1.2"| "1.3"

Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.

</summary>

One of the following:

"1.0"

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

"1.1"

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

"1.2"

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

"1.3"

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

</details>

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

zoneId?: string

Zone ID of the custom domain resides in.

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

zoneName?: string

Zone that the custom domain resides in.

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

</details>

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

<details>

<summary>

CustomCreateResponse {domain, enabled, zoneId, 2 more }

</summary>

domain: string

Domain name of the affected custom domain.

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

enabled: boolean

Whether this bucket is publicly accessible at the specified custom domain.

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

zoneId: string

Zone ID of the custom domain.

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

ciphers?: Array&lt;string&gt;

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

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

<details>

<summary>

minTLS?: "1.0"| "1.1"| "1.2"| "1.3"

Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.

</summary>

One of the following:

"1.0"

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

"1.1"

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

"1.2"

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

"1.3"

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

</details>

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

</details>

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

<details>

<summary>

CustomUpdateResponse {domain, ciphers, enabled, minTLS }

</summary>

domain: string

Domain name of the affected custom domain.

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

ciphers?: Array&lt;string&gt;

An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.

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

enabled?: boolean

Whether this bucket is publicly accessible at the specified custom domain.

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

<details>

<summary>

minTLS?: "1.0"| "1.1"| "1.2"| "1.3"

Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.

</summary>

One of the following:

"1.0"

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

"1.1"

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

"1.2"

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

"1.3"

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

</details>

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

</details>

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

<details>

<summary>

CustomDeleteResponse {domain }

</summary>

domain: string

Name of the removed custom domain.

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

</details>

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

#### BucketsDomainsManaged

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

client.r2.buckets.domains.managed.list(stringbucketName, ManagedListParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [ManagedListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.managed%20%3E%20(model)%20managed_list_response%20%3E%20(schema)>) {bucketId, domain, enabled }

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

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

client.r2.buckets.domains.managed.update(stringbucketName, ManagedUpdateParams {account\_id, enabled, cfR2Jurisdiction } params, RequestOptionsoptions?): [ManagedUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.domains.managed%20%3E%20(model)%20managed_update_response%20%3E%20(schema)>) {bucketId, domain, enabled }

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

##### ModelsExpand Collapse

<details>

<summary>

ManagedListResponse {bucketId, domain, enabled }

</summary>

bucketId: string

Bucket ID.

maxLength32

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

domain: string

Domain name of the bucket’s r2.dev domain.

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

enabled: boolean

Whether this bucket is publicly accessible at the r2.dev domain.

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

</details>

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

<details>

<summary>

ManagedUpdateResponse {bucketId, domain, enabled }

</summary>

bucketId: string

Bucket ID.

maxLength32

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

domain: string

Domain name of the bucket’s r2.dev domain.

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

enabled: boolean

Whether this bucket is publicly accessible at the r2.dev domain.

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

</details>

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

#### BucketsEvent Notifications

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

client.r2.buckets.eventNotifications.list(stringbucketName, EventNotificationListParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [EventNotificationListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)>) {bucketName, queues }

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

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

client.r2.buckets.eventNotifications.get(stringqueueID, EventNotificationGetParams {account\_id, bucket\_name, cfR2Jurisdiction } params, RequestOptionsoptions?): [EventNotificationGetResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)>) {queueId, queueName, rules }

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

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

client.r2.buckets.eventNotifications.update(stringqueueID, EventNotificationUpdateParams {account\_id, bucket\_name, rules, cfR2Jurisdiction } params, RequestOptionsoptions?): [EventNotificationUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_update_response%20%3E%20(schema)>)

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

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

client.r2.buckets.eventNotifications.delete(stringqueueID, EventNotificationDeleteParams {account\_id, bucket\_name, cfR2Jurisdiction } params, RequestOptionsoptions?): [EventNotificationDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

EventNotificationListResponse {bucketName, queues }

</summary>

bucketName?: string

Name of the bucket.

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

<details>

<summary>

queues?: Array&lt;Queue&gt;

List of queues associated with the bucket.

</summary>

queueId?: string

Queue ID.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20queueId">Link to this property</a>

queueName?: string

Name of the queue.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20queueName">Link to this property</a>

<details>

<summary>

rules?: Array&lt;Rule&gt;

</summary>

<details>

<summary>

actions: Array&lt;"PutObject"| "CopyObject"| "DeleteObject"| 2 more&gt;

Array of R2 object actions that will trigger notifications.

</summary>

One of the following:

"PutObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"CopyObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"DeleteObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"CompleteMultipartUpload"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"LifecycleDeletion"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions">Link to this property</a>

createdAt?: string

Timestamp when the rule was created.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20createdAt">Link to this property</a>

description?: string

A description that can be used to identify the event notification rule after creation.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

prefix?: string

Notifications will be sent only for objects with this prefix.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

ruleId?: string

Rule ID.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20ruleId">Link to this property</a>

suffix?: string

Notifications will be sent only for objects with this suffix.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20suffix">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_list_response%20%3E%20(schema)%20%3E%20(property)%20queues%20%3E%20(items)%20%3E%20(property)%20rules">Link to this property</a>

</details>

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

</details>

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

<details>

<summary>

EventNotificationGetResponse {queueId, queueName, rules }

</summary>

queueId?: string

Queue ID.

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

queueName?: string

Name of the queue.

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

<details>

<summary>

rules?: Array&lt;Rule&gt;

</summary>

<details>

<summary>

actions: Array&lt;"PutObject"| "CopyObject"| "DeleteObject"| 2 more&gt;

Array of R2 object actions that will trigger notifications.

</summary>

One of the following:

"PutObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"CopyObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"DeleteObject"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"CompleteMultipartUpload"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"LifecycleDeletion"

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20actions">Link to this property</a>

createdAt?: string

Timestamp when the rule was created.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20createdAt">Link to this property</a>

description?: string

A description that can be used to identify the event notification rule after creation.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

prefix?: string

Notifications will be sent only for objects with this prefix.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

ruleId?: string

Rule ID.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20ruleId">Link to this property</a>

suffix?: string

Notifications will be sent only for objects with this suffix.

<a href="#(resource)%20r2.buckets.event_notifications%20%3E%20(model)%20event_notification_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20suffix">Link to this property</a>

</details>

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

</details>

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

EventNotificationUpdateResponse = unknown

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

EventNotificationDeleteResponse = unknown

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

#### BucketsLocks

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

client.r2.buckets.locks.get(stringbucketName, LockGetParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [LockGetResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)>) {rules }

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

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

client.r2.buckets.locks.update(stringbucketName, LockUpdateParams {account\_id, rules, cfR2Jurisdiction } params, RequestOptionsoptions?): [LockUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_update_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

LockGetResponse {rules }

</summary>

<details>

<summary>

rules?: Array&lt;Rule&gt;

</summary>

id: string

Unique identifier for this rule.

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

condition: R2LockRuleAgeCondition {maxAgeSeconds, type } | R2LockRuleDateCondition {date, type } | R2LockRuleIndefiniteCondition {type }

Condition to apply a lock rule to an object for how long in seconds.

</summary>

One of the following:

<details>

<summary>

R2LockRuleAgeCondition {maxAgeSeconds, type }

Condition to apply a lock rule to an object for how long in seconds.

</summary>

maxAgeSeconds: number

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20maxAgeSeconds">Link to this property</a>

type: "Age"

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

R2LockRuleDateCondition {date, type }

Condition to apply a lock rule to an object until a specific date.

</summary>

date: string

formatdate-time

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20date">Link to this property</a>

type: "Date"

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

R2LockRuleIndefiniteCondition {type }

Condition to apply a lock rule indefinitely.

</summary>

type: "Indefinite"

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20condition">Link to this property</a>

enabled: boolean

Whether or not this rule is in effect.

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

prefix?: string

Rule will only apply to objects/uploads in the bucket that start with the given prefix, an empty prefix can be provided to scope rule to all objects/uploads.

<a href="#(resource)%20r2.buckets.locks%20%3E%20(model)%20lock_get_response%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

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

</details>

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

LockUpdateResponse = unknown

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

#### BucketsMetrics

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

client.r2.buckets.metrics.list(MetricListParams {account\_id } params, RequestOptionsoptions?): [MetricListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)>) {infrequentAccess, standard }

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

##### ModelsExpand Collapse

<details>

<summary>

MetricListResponse {infrequentAccess, standard }

Metrics based on the class they belong to.

</summary>

<details>

<summary>

infrequentAccess?: InfrequentAccess {published, uploaded }

Metrics based on what state they are in(uploaded or published).

</summary>

<details>

<summary>

published?: Published {metadataSize, objects, payloadSize }

Metrics on number of objects/amount of storage used.

</summary>

metadataSize?: number

Amount of.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20published%20%3E%20(property)%20metadataSize">Link to this property</a>

objects?: number

Number of objects stored.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20published%20%3E%20(property)%20objects">Link to this property</a>

payloadSize?: number

Amount of storage used by object data.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20published%20%3E%20(property)%20payloadSize">Link to this property</a>

</details>

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

<details>

<summary>

uploaded?: Uploaded {metadataSize, objects, payloadSize }

Metrics on number of objects/amount of storage used.

</summary>

metadataSize?: number

Amount of.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20uploaded%20%3E%20(property)%20metadataSize">Link to this property</a>

objects?: number

Number of objects stored.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20uploaded%20%3E%20(property)%20objects">Link to this property</a>

payloadSize?: number

Amount of storage used by object data.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20infrequentAccess%20%3E%20(property)%20uploaded%20%3E%20(property)%20payloadSize">Link to this property</a>

</details>

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

</details>

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

<details>

<summary>

standard?: Standard {published, uploaded }

Metrics based on what state they are in(uploaded or published).

</summary>

<details>

<summary>

published?: Published {metadataSize, objects, payloadSize }

Metrics on number of objects/amount of storage used.

</summary>

metadataSize?: number

Amount of.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20published%20%3E%20(property)%20metadataSize">Link to this property</a>

objects?: number

Number of objects stored.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20published%20%3E%20(property)%20objects">Link to this property</a>

payloadSize?: number

Amount of storage used by object data.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20published%20%3E%20(property)%20payloadSize">Link to this property</a>

</details>

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

<details>

<summary>

uploaded?: Uploaded {metadataSize, objects, payloadSize }

Metrics on number of objects/amount of storage used.

</summary>

metadataSize?: number

Amount of.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20uploaded%20%3E%20(property)%20metadataSize">Link to this property</a>

objects?: number

Number of objects stored.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20uploaded%20%3E%20(property)%20objects">Link to this property</a>

payloadSize?: number

Amount of storage used by object data.

<a href="#(resource)%20r2.buckets.metrics%20%3E%20(model)%20metric_list_response%20%3E%20(schema)%20%3E%20(property)%20standard%20%3E%20(property)%20uploaded%20%3E%20(property)%20payloadSize">Link to this property</a>

</details>

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

</details>

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

</details>

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

#### BucketsSippy

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

client.r2.buckets.sippy.get(stringbucketName, SippyGetParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [Sippy](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)>) {destination, enabled, source }

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

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

client.r2.buckets.sippy.update(stringbucketName, SippyUpdateParamsparams, RequestOptionsoptions?): [Sippy](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy%20%3E%20(schema)>) {destination, enabled, source }

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

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

client.r2.buckets.sippy.delete(stringbucketName, SippyDeleteParams {account\_id, cfR2Jurisdiction } params, RequestOptionsoptions?): [SippyDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20sippy_delete_response%20%3E%20(schema)>) {enabled }

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

##### ModelsExpand Collapse

Provider = "r2"

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

<details>

<summary>

Sippy {destination, enabled, source }

</summary>

<details>

<summary>

destination?: Destination {accessKeyId, account, bucket, provider }

Details about the configured destination bucket.

</summary>

accessKeyId?: string

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?: string

<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?: string

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/typescript/resources/r2#(resource)%20r2.buckets.sippy%20%3E%20(model)%20provider%20%3E%20(schema)">Provider</a> {}

<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?: boolean

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?: Source {bucket, bucketUrl, container, 2 more }

Details about the configured source bucket.

</summary>

bucket?: string| null

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?: string| null

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?: string| null

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?: "aws"| "gcs"| "s3"| "azure"

</summary>

One of the following:

"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>

"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>

"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>

"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?: string| null

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)>)

<details>

<summary>

SippyDeleteResponse {enabled }

</summary>

enabled?: false

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

</details>

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

#### BucketsObjects

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

client.r2.buckets.objects.list(stringbucketName, ObjectListParams {account\_id, cursor, delimiter, 4 more } params, RequestOptionsoptions?): CursorPagination< [ObjectListResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20object_list_response%20%3E%20(schema)>) {custom\_metadata, etag, http\_metadata, 5 more } >

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

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

client.r2.buckets.objects.get(stringobjectKey, ObjectGetParams {account\_id, bucket\_name, cfR2Jurisdiction, 2 more } params, RequestOptionsoptions?): Response

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

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

client.r2.buckets.objects.upload(stringobjectKey, "string"| "ArrayBuffer"| "ArrayBufferView"| 2 morebody, ObjectUploadParams {account\_id, bucket\_name, cfR2Jurisdiction, cfR2StorageClass } params, RequestOptionsoptions?): [ObjectUploadResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20object_upload_response%20%3E%20(schema)>) {etag, key, size, 3 more }

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

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

client.r2.buckets.objects.delete(stringobjectKey, ObjectDeleteParams {account\_id, bucket\_name, cfR2Jurisdiction } params, RequestOptionsoptions?): [ObjectDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/r2#(resource)%20r2.buckets.objects%20%3E%20(model)%20object_delete_response%20%3E%20(schema)>) {key }

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

##### ModelsExpand Collapse

<details>

<summary>

ObjectListResponse {custom\_metadata, etag, http\_metadata, 5 more }

Metadata for an R2 object.

</summary>

custom\_metadata?: Record&lt;string, string&gt;

Custom metadata key-value pairs associated with the object.

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

etag?: string

The entity tag for the object. In JSON list/get responses this is the raw hex digest (without surrounding quotes). The HTTP <code>ETag</code> response header on Get Object follows RFC 7232 and IS wrapped in surrounding double-quotes.

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

<details>

<summary>

http\_metadata?: HTTPMetadata {cacheControl, cacheExpiry, contentDisposition, 3 more }

HTTP metadata associated with an R2 object.

</summary>

cacheControl?: string

Specifies caching behavior for the object.

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

cacheExpiry?: string

The date and time at which the object’s cache entry expires.

formatdate-time

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

contentDisposition?: string

Specifies presentational information for the object.

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

contentEncoding?: string

Specifies the content encoding applied to the object.

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

contentLanguage?: string

The language of the object content.

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

contentType?: string

The MIME type of the object.

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

</details>

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

key?: string

The object key (name).

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

last\_modified?: string

The date and time the object was last modified.

formatdate-time

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

size?: number

The size of the object in bytes.

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

ssec?: boolean

Whether the object is encrypted with a customer-supplied encryption key.

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

<details>

<summary>

storage\_class?: "Standard"| "InfrequentAccess"

Storage class for newly uploaded objects, unless specified otherwise.

</summary>

One of the following:

"Standard"

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

"InfrequentAccess"

<a href="#(resource)%20r2.buckets.objects%20%3E%20(model)%20object_list_response%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.objects%20%3E%20(model)%20object_list_response%20%3E%20(schema)%20%3E%20(property)%20storage_class">Link to this property</a>

</details>

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

<details>

<summary>

ObjectUploadResponse {etag, key, size, 3 more }

Result of a successful object upload.

</summary>

etag?: string

The entity tag for the uploaded object.

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

key?: string

The key (name) of the uploaded object.

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

size?: string

The size of the uploaded object in bytes (as a string).

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

<details>

<summary>

storage\_class?: "Standard"| "InfrequentAccess"

Storage class for newly uploaded objects, unless specified otherwise.

</summary>

One of the following:

"Standard"

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

"InfrequentAccess"

<a href="#(resource)%20r2.buckets.objects%20%3E%20(model)%20object_upload_response%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.objects%20%3E%20(model)%20object_upload_response%20%3E%20(schema)%20%3E%20(property)%20storage_class">Link to this property</a>

uploaded?: string

The date and time the object was uploaded.

formatdate-time

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

version?: string

The version UUID of the uploaded object.

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

</details>

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

<details>

<summary>

ObjectDeleteResponse {key }

Result of a successful object deletion.

</summary>

key?: string

The key (name) of the deleted object.

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

</details>

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