• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide
  4. OBS Console Operation Guide
  5. Managing Objects
  6. Accessing an Object Using Its URL

Accessing an Object Using Its URL

If you set the permission for an object to allow anonymous users to read it, anonymous users can access the object through the URL that you shared.

NOTE:

Encrypted objects cannot be shared.

Prerequisites

A read permission has been set for anonymous users. For details about how to set the permission, see Object Permissions.

Procedure

  1. In the bucket list on the OBS Console, click the target bucket to go to the Summary page.
  2. In the navigation tree on the left, click Objects.
  3. Click the object you want to share.
  4. The URL shown in Figure 1 is displayed. Anonymous users can access the object by clicking the URL. The object URL is in the format of https://bucket name.domain name/directory level/object name. If the object resides in the root directory of the bucket, its URL does not contain the directory level.

    Figure 1 Object link
    NOTE:
    • To allow anonymous users to access objects whose storage classes are Cold using the URL, ensure that the objects are in the Restored state.
    • The method of using a browser to access objects varies depending on the object type. You can directly open .txt and .html files using a browser. However, when you open .exe and .dat files using a browser, the files are automatically downloaded to your local computer.