Help Center/ Object Storage Service/ FAQs/ Buckets and Objects/ How Do I Obtain the Access Path to an Object?
Updated on 2023-09-06 GMT+08:00

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.

Table 1 How to obtain an object URL

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

If the object access path is user-assembled, you need to escape the object name by referring to the URL encoding rules.