Using OBS Console
OBS Console is a web-based GUI where you can manage your OBS resources with ease.
The following describes how to use basic functions on OBS Console, including creating a bucket (test-example-bucket as an example), uploading an object, as well as downloading and sharing the object.
Preparations
Before using OBS, you must create a HUAWEI ID, complete real-name authentication, and top up your account.
- Sign up for a HUAWEI ID and complete real-name authentication.
If you already have a HUAWEI ID, skip this step. Otherwise, do as follows:
- Sign up for a HUAWEI ID and enable Huawei Cloud services.
- Complete real-name authentication by referring to Individual Real-Name Authentication or .
- Top up your account.
Make sure your account balance is sufficient, so that you can properly use OBS and other related resources.
Creating a Bucket
Buckets are containers that store objects in OBS. Before you can upload objects, you must create a bucket.
This example only covers some key settings for creating a bucket. Retain the default values for other parameters. For more information, see Creating a Bucket.
- Visit the bucket creation page on OBS Console.
- Specify General Configuration.
Parameter
Value Example
Description
Region
CN-Hong Kong
Geographic area where a bucket is located. For lower latency and faster access, select the region nearest where your bucket will be accessed.
Once a bucket is created, its region cannot be changed.
- Specify Bucket Settings. Retain the default settings for the other parameters. You can also modify them after the bucket is created.
Parameter
Value Example
Description
Bucket Name
test-example-bucket
Name of a bucket. After a bucket is created, its name cannot be changed.
A bucket name:
- Must be globally unique, which means a bucket must have a different name from any existing bucket (including those created by other accounts). The name of a deleted bucket can be reused for another bucket or parallel file system at least 30 minutes after the deletion.
- Must be 3 to 63 characters long. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.
- Cannot start or end with a period (.) or hyphen (-), and cannot contain two consecutive periods (..) or contain a period (.) and a hyphen (-) adjacent to each other.
- Cannot be formatted as an IP address.
Data Redundancy Policy
Multi-AZ storage
- Multi-AZ storage: Data is stored in multiple availability zones (AZs) within a region. This storage policy costs more, but has a higher reliability.
- Single-AZ storage: Data is stored in a single AZ, with lower costs.
After a bucket is created, its data redundancy policy cannot be changed.
Buckets with multi-AZ storage do not support the Archive storage class.
Storage Class
Standard
Storage classes of a bucket. You can choose a storage class that meets your needs for storage performance and costs.
- Standard: It is for storing a large number of hot files or small files that are frequently accessed (multiple times per month on average) and require fast access.
- Infrequent Access: It is for storing data that is less frequently accessed (less than 12 times per year on average), but when needed, the access has to be fast.
- Archive: It is for archiving data that is rarely accessed (once a year on average) and does not require fast access.
For more information, see Storage Classes.
Bucket Policies
Private
Controls read and write permissions for a bucket.
- Private: Only users granted permissions by the bucket ACL can access the bucket.
- Public Read: Anyone can read objects in the bucket.
- Public Read/Write: Anyone can read, write, or delete objects in the bucket.
Enterprise Project
default
Project where you can add your bucket for unified management. If you do not have any specific needs for enterprise project division and management, choose the default enterprise project.
To learn more about how to manage OBS buckets using enterprise projects, see the Enterprise Project parameter in Creating a Bucket.
- In the lower right corner of the page, click Create Now. Then, confirm the information displayed.
If the bucket is successfully created, a message will be displayed and the bucket will appear in the bucket list.
Uploading an Object
On OBS Console, you can upload a single file up to 5 GB in size, or you can upload up to 100 files (with a total size of no more than 5 GB) in a batch.
This example only covers some key settings for uploading an object. For more information, see Uploading an Object.
- In the bucket list, click the created bucket.
- On the Objects page, click Upload Object above the search box.
- In the Upload Object area, drag and drop the local file to upload.
Alternatively, click add files and choose the local file to upload.
- Retain the default settings for other parameters and click Upload.
The Task Center page is displayed on the right, where you can view the upload status. After the object is uploaded, it will appear in the object list.
Downloading Objects
You can download objects from an OBS bucket to the default path or a specified local path.
- In the object list, find the uploaded object.
- Download the object.
- To download a single object, do as follows:
Click Download in the Operation column of the object. The object is downloaded to the default path.
- To download multiple objects in a batch, do as follows:
Select multiple objects and choose More > Download above the search box. The objects are downloaded to the default path.
- To download a single object, do as follows:
Sharing an Object
You can share the URL of an object with others, so that they can download or view the object.
- On the object list page, locate the object you want to share and click Share in the Operation column.
- In the Share File dialog box, specify a URL validity period (10 minutes as an example).
- A validity period ranges from one minute to 18 hours. Within the validity period, anyone can use the URL to access the object.
- The moment the Share File dialog box is opened, the link information is in effect and valid for five minutes by default. Each time you change the URL validity period, the URL takes effect again and changes accordingly. You need to re-share the URL.
- Share the object.
- Click Copy Link and share the link with others. Then, they can use this link to access the object in a browser.
Accessing an object in a browser will make the object forcibly downloaded. If you want people to preview the object you shared, see How Do I Preview OBS Objects in My Web Browser?
- Click Copy Path and share the path with users who have access to the bucket that stores the shared object. Then, they can go to the object list of the bucket and paste the shared path in the object search box and press Enter to search for or access the object.
- Click Copy Link and share the link with others. Then, they can use this link to access the object in a browser.
Related Information
In addition to the operations mentioned above, the following advanced OBS functions are available for you to use.
- Lifecycle management: You can configure lifecycle rules to periodically transition objects between storage classes or delete objects.
- Access control: You can use IAM permissions, bucket policies, bucket ACLs, and object ACLs to implement refined access control over buckets and objects.
- Domain name management: You can add a user-defined domain name to a bucket and then use this domain name to access the bucket and objects in it..
- Static website hosting: You can upload a static website file to an OBS bucket, grant anonymous users the read permission for this file, and configure static website hosting for the bucket, so that you can use the bucket domain name to access the hosted static website file.
- Versioning: You can enable versioning for a bucket to keep multiple versions of an object in the same bucket. This way, you can easily retrieve and restore each object version and recover data from unintended actions or application failures.
- Cross-region replication: You can configure a cross-region replication rule to replicate data from a source bucket to a destination bucket in a different region.
- Server-side encryption: You can use server-side encryption to encrypt data uploaded to OBS buckets.
- WORM: You can configure WORM for your bucket to prevent objects in the bucket from being deleted or tampered with within a specified period.
- Cross-origin resource sharing (CORS): You can configure a CORS rule to enable cross-domain quests for OBS.
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