Updated on 2026-11-02 GMT+08:00

Creating a Custom Bucket Policy (JSON View)

If you are familiar with the JSON syntax and OBS bucket policies, you can code a bucket policy in the JSON view. There is no limit on the number of bucket policies (statements) for a bucket, but the JSON descriptions of all bucket policies in a bucket cannot exceed 20 KB in total.

Ways to Create a Custom Bucket Policy

You can create a custom bucket policy using OBS Console, APIs, SDKs, obsutil, or OBS Browser+.