Help Center/ Content Delivery Network/ Best Practices/ Accelerating OBS Resources/ Configuring a Policy for a Custom OBS Private Bucket
Updated on 2023-12-07 GMT+08:00

Configuring a Policy for a Custom OBS Private Bucket

If you use a custom OBS private bucket as the CDN origin server, that is, use an OBS private bucket under another account as the origin server, you need to configure a policy for the private bucket on OBS Console.

Procedure

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the name of the bucket to be operated.

    The Objects page of the bucket is displayed.

  3. In the navigation pane, choose Permissions > Bucket Policies.
  4. On the Bucket Policies page, click Create and select Visual Editor.
    • Policy Name: Enter a name.
    • Effect: Select Allow.
    • Principal:
      • Other accounts: Enter an account ID in the format of domainId/userId. Example: 0a0b0afb4************019806272e0/*
      • Delegated accounts: Enter an account ID in the format of domainId/*. Example: 0a0b0afb4************019806272e0/*
    • Resources: Select Entire bucket (including the objects in it) or Current bucket.
    • Actions: Select Customize and select the ListBucket action.
    Figure 1 Creating a bucket policy
  5. Click Create.