This section describes how to create a bucket in OBS Console. On OBS, buckets are containers where objects are stored. Before you store data in OBS, you need to create buckets.
An account can create 100 buckets.
- In the upper right corner of the OBS Console, click Create Bucket. Figure 1 displays Create Bucket dialog box.
Figure 1 Creating a bucket
- 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.
OBS storage classes (Standard, Warm, and Cold) are designed to meet customers' varying requirements on storage performance and costs.
- Standard: features low access latency and high throughput.
- Warm: applicable to storing semi-frequently accessed (less than 12 times a year) data requiring quick response.
- Cold: applicable to archiving rarely-accessed (once a year) data.
For details about the storage classes, see Bucket Storage Classes Overview.
Enter the bucket name, which must be globally unique.
Name the bucket according to the globally applied DNS naming rule as follows:
- Must contain 3 to 63 characters, starts with a digit or letter, and supports only 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.
- You can configure any of the general policies for a bucket. The general policies include private, public read, and public read and write. Alternatively, you can set these properties after creating the bucket. For more information, see Configuring a Bucket Policy.
- Tags: Tags are used to identify and classify OBS buckets. Each tag is represented by one key-value pair. For more information, see Tags.
- Advanced Settings
You can click Configure now, displayed in Figure 2, to configure the following attributes for the bucket immediately. Alternatively, you can click Do not configure if you want to configure those attributes after the bucket creation.
Figure 2 Advanced settings
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.
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 Logging.
- Click Create Now.
You can specify its storage class when creating a bucket or change its storage class after bucket creation.
- Log in to OBS Console.
- In the bucket list on the OBS Console, select the target bucket and click Change Storage Class on the right.
- Select the desired storage class and click OK. Changing the storage class of a bucket does not change the storage class of any object in the bucket.
On the upper part of the page, a message is displayed indicating an operation success.