• Object Storage Service

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

Accessing an Object Using Its Object URL

The object uniform resource locator (URL) function, also known as object sharing function, allows anonymous users to access object data using object URLs.

Prerequisites

Assign an anonymous user the permission to read the specified object using OBS Console. For details about how to assign object ACL permissions to accounts, see Object Permissions.

Procedure

  1. Log in to OBS Browser.
  2. Click the target object which you want to share, and click Properties icon on the right. This will display the object URL, which is highlighted in Figure 1.

    Figure 1 Object properties
    • If you select Other object storage services when logging in to OBS Browser, the object URL is in the format of https://storage server IP address or domain name/bucket name/directory level/object name. If the object is in the root directory of the bucket, the URL does not contain a directory level.
    • If you select OBS when logging in to OBS Browser, the object URL is in the format of https://bucket name.domain name/directory level/object name. If the object is in the root directory of the bucket, the URL does not contain a directory level.
    NOTE:

    To allow Anonymous User 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.

  3. Click Copy.
  4. In the dialog box that is displayed, click OK.
  5. Past the object URL in the address box of a web browser. Press Enter, and then you can access the object.