Creating a Bucket

This section describes how to create a bucket in OBS Console. On OBS, buckets are containers where objects are stored. Before you store data onto OBS, you need to create buckets.


A user can create a maximum of 100 buckets on OBS.


  1. Log in to OBS Console.
  2. In the upper right corner of the page, Click Create Bucket. A dialog box is displayed, as shown in Figure 1.

    Figure 1 Creating a bucket

  3. Select a region and a storage class, and enter a name for the bucket.

    Table 1 Creating a bucket




    Indicates the region where the bucket to be created resides.

    Storage Class

    OBS has the following storage classes: Standard, Infrequent Access, and Archive. In such a manner, OBS comprehensively meets customers' requirements on storage performance and costs.

    • OBS Standard: features low access latency and high throughput.
    • OBS Infrequent Access: applicable to storing semi-frequently accessed (less than 12 times a year) data that requires quick response.
    • OBS Archive: applicable to storing rarely accessed (once a year) data.

    For details about the storage classes, see Storage Classes.

    Bucket Name

    Enter the bucket name, which must be globally unique.

    Name the bucket according to the globally applied DNS naming rule as follows:

    • Contains 3 to 63 characters, including lowercase letters, digits, hyphens (-), and periods (.)
    • Cannot be an IP address.
    • Cannot start or end with a hyphen (-) or period (.)
    • Cannot contain two consecutive periods (.), for example, my..bucket.
    • Cannot contain periods (.) and hyphens (-) adjacent to each other, for example, my-.bucket or my.-bucket.
    • When a URL is used to access a bucket, the bucket name will become a part of the URL. According to the DNS rule, URLs do not support uppercase letters and cannot be used to access a bucket whose name contains uppercase letters. Therefore, a bucket name can contain only lowercase letters, digits, hyphens (-), and periods (.) For example, if you attempt to access bucket MyBucket using the URL, bucket mybucket will be accessed instead, causing an access error.
    • DNS naming can standardize the bucket naming globally, facilitating the resolution when accessing a bucket. Users can benefit from new functions and optimized features, and static website hosting is then applicable to buckets.
    • Once you create a bucket, you cannot change the name of it. Make sure that the bucket name you set is appropriate.

  4. You can configure any of the universal policies for a bucket. The universal policies include private, public read, and public read and write. Alternatively, you can set these properties after creating the bucket. For details, see Configuring a Bucket Policy.
  5. Click Advanced in Figure 2 and set the following bucket properties. Alternatively, you can set these properties after creating the bucket.

    Figure 2 Creating a bucket
    • Versioning: OBS can store multiple versions of an object. You can quickly search for and restore different versions or restore data in the event of misoperations or application faults. By default, versioning is disabled for new buckets on OBS. For more information, see Versioning.
    • Log management: Access logs enable a bucket owner to analyze the property, type, or trend of requests to the bucket in depth. By default, OBS does not log bucket access. For more information, see Access Logging.

  6. Click Create Now.


    In a multi-region scenario, if you create a bucket in a region, delete it from the region later, and immediately create a bucket with the same name in another region, the system will return a message stating that the bucket failed to be created. In this case, wait one hour and create a bucket with the same name again. Then, the system will show a message stating that the bucket has been created successfully.