Skip to content
Closed
Changes from 1 commit
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
8 changes: 4 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,12 @@ 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

After creating your bucket, open the bucket `Settings` and navigate to `Bucket Lock Rules` where you can create a policy by clicking the `Add rule` button.

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

### Enable bucket lock via API

Expand Down