-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Added documentation for R2 bucket locks #19477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying cloudflare-docs with
|
| Latest commit: |
4e04711
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7c629144.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://pjones-bucket-lock.cloudflare-docs-7ou.pages.dev |
|
Files with changes (up to 15)
|
| @@ -0,0 +1,77 @@ | |||
| --- | |||
| title: Bucket locks | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| title: Bucket locks | |
| title: Use bucket locks |
Do you think it's worth changing this title, and removing the "Get started with bucket locks" H2 below?
|
|
||
| Bucket locks prevent the deletion and overwriting of objects in an R2 bucket for a specified period — or indefinitely. When enabled, bucket locks enforce retention policies on your objects, helping protect them from accidental or premature deletions. | ||
|
|
||
| ## Get started with bucket locks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Get started with bucket locks |
|
|
||
| ## Get started with bucket locks | ||
|
|
||
| ### Prerequisites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Prerequisites | |
| ## Prerequisites |
| Bucket locks are currently configurable via API only. | ||
| ::: | ||
|
|
||
| ### Enable bucket lock via API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Enable bucket lock via API | |
| ## Enable bucket lock via API |
|
|
||
| For more information on required parameters and examples of how to enable bucket lock, refer to the [API documentation](/api/resources/r2/subresources/buckets/subresources/lock/methods/update/). For information about getting started with the Cloudflare API, refer to [Make API calls](/fundamentals/api/how-to/make-api-calls/). | ||
|
|
||
| ### Get bucket lock rules via API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### Get bucket lock rules via API | |
| ## Get bucket lock rules via API |
|
|
||
| For more information on required parameters and examples of how to get bucket lock rules, refer to the [API documentation](/api/resources/r2/subresources/buckets/subresources/lock/methods/update/). | ||
|
|
||
| ## Bucket lock rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not turned this H2 into a H1, as we don't typically have H1s later in the page. I personally think this still works?
We can consider adding numbers to the other H2s if we want to emphasise a sense of progression.
Co-authored-by: Jun Lee <[email protected]>
Added documentation for R2 bucket locks