Creating a Bucket
Buckets are containers that store objects in OBS. To store data in OBS, you must first create a bucket.
Procedure
- Log in to OBS Browser+.
- In the upper part of the page, click Create Bucket.
- In the displayed dialog box, configure bucket parameters, as shown in Figure 1.
Table 1 Bucket creation parameters Parameter
Description
Region
Enter the region where you want to create a bucket.
- Once the bucket is created, its region cannot be changed.
- For lower latency and faster access, create a bucket in the region nearest to you.
- Most OBS features are available in all regions, but some are only available for certain regions. If you want to use some features in your bucket, you are advised to create the bucket in a region where these features are available. For details, see Function Overview.
- If you want your bucket to be accessed from an ECS over the intranet, ensure that the bucket and the ECS are in the same region. For details, see Accessing OBS from an ECS over the Intranet.
Storage Class
Storage class of the bucket.
Different storage classes meet customers' needs for storage performance and costs.
- Standard: applicable to scenarios where a large number of hot files or small files need to be accessed frequently (multiple times per month on average) and require fast access response.
- Infrequent Access: ideal for storing data that is not frequently accessed (less than 12 times per year on average) but requires fast access response.
- Archive: suitable for archiving data that is rarely accessed (averagely once a year) and has no requirements for quick response.
NOTE:During the object upload, an object inherits its bucket's storage class by default, and you can also specify a different storage class for the object.
For more information, see Storage Class.
Bucket ACL
Controls read and write permissions on buckets.
- Private: Only users granted permissions by the ACL can access the bucket.
- Public Read: Anyone can read objects in the bucket.
- Public Read and Write: Anyone can read, write, or delete objects in the bucket.
Multi-AZ Mode
If multi-AZ storage is enabled, data in your bucket is stored in multiple AZs within a region.
After a bucket is created, its data redundancy policy cannot be changed.
Bucket Name
Name of the bucket you want to create, which must be globally unique.
A bucket name:
- Must be 3 to 63 characters long and start with a digit or letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
- Cannot be formatted as an IP address.
- Cannot start or end with a hyphen (-) or period (.).
- Cannot contain two consecutive periods (..), for example, my..bucket.
- Cannot contain a period (.) and a hyphen (-) adjacent to each other, for example, my-.bucket or my.-bucket.
After a bucket is created, its name cannot be changed.
A user can create a maximum of 100 buckets in OBS.
NOTE:- You can click
next to the Bucket Name text box to view the bucket naming rules.
- When a URL is used to access a bucket, the bucket name will become part of the URL. According to the DNS rule, URLs do not support uppercase letters and cannot recognize buckets 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 a URL, the URL will parse MyBucket as mybucket. This results in an access error.
- DNS naming rules can standardize bucket names globally, facilitating the resolution during bucket access. With the DNS naming rules used, you can benefit from new functions and optimized features, and configure static website hosting for buckets.
- Click OK. If the bucket is successfully created, it is displayed in the bucket list. If the creation fails, an error message will be displayed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot