How Do I Obtain the Access Path to an Object?
Object access paths use the following format: https://{bucket name}.{domain name}/{object name}. The following is an example: https://bucketname.obs.eu-west-101.myhuaweicloud.eu/objectname.
You can combine a path manually or use the tools in the following table to obtain it.
Tool |
Object URL |
---|---|
OBS Console |
Click the object and copy the URL for the detailed information of the object. |
OBS Browser+ |
Click the Attribute button of the object and then you can copy the URL displayed in the detailed information about the object. |
obsutil |
Not supported |
SDKs |
You can get the URL of an object by calling the getObjectUrl interface.
NOTE:
When uploading an object, you can obtain its URL from the returned value. The URL of an existing object in the bucket cannot be obtained. |
APIs |
Not supported |
![](https://support.huaweicloud.com/eu/obs_faq/public_sys-resources/note_3.0-en-us.png)
If the object access path is user-assembled, you need to escape the object name by referring to the URL encoding rules.
Buckets and Objects FAQs
- Why Am I Unable to Create a Bucket?
- Why Am I Unable to Upload an Object?
- Why Am I Unable to Download an Object?
- Why Can't I Delete a Bucket?
- Why Can't I Delete an Object?
- What Is the Relationship Between Bucket Storage Classes and Object Storage Classes?
- Can I Rename an Object?
- Can I Modify the Region of a Bucket?
- Can I Edit Objects in OBS Online?
- How Do I Obtain the Access Path to an Object?
- Why Can't I Search for Certain Objects in My Bucket?
- How Do I Preview Objects in OBS in a Browser Online?
- What Should I Do If an Error Message Is Displayed When I Use Internet Explorer to Access an Object URL That Contains Chinese Characters?
- With CDN Acceleration Enabled, Why Are the Objects in My OBS Bucket Directly Downloaded When I Access Them?
- Why Is an Error Reported Even If CORS Has Been Configured?
- How Do I Batch Delete a Large Number of Objects from a Bucket or Empty a Bucket?
- How Do I Change the Enterprise Project Where My Bucket Belongs?
- How Do I Upload Objects Larger Than 5 GB?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more