Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/content/docs/r2/buckets/bucket-locks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ Bucket locks prevent the deletion and overwriting of objects in an R2 bucket for
Before getting started, you will need:

- An existing R2 bucket. If you do not already have an existing R2 bucket, refer to [Create buckets](/r2/buckets/create-buckets/).
- An API token with [permissions](/r2/api/s3/tokens/#permissions) to edit R2 bucket configuration.
- If using the API, an API token with [permissions](/r2/api/s3/tokens/#permissions) to edit R2 bucket configuration.

:::note
### Enable bucket lock in the dashboard

To enable bucket lock via the dashboard:

1. Go to **R2 Object Storage** and select the bucket.
2. Go to the **Settings** tab, and find **Bucket Lock Rules**.
3. Create a policy by clicking the **Add rule** button.

Currently, Bucket locks are only configurable via API.
:::

### Enable bucket lock via API

Expand Down