Updated on 2024-04-01 GMT+08:00

Accessing an Object Using Its URL

You can grant anonymous users the read permission for an object so they can access the object using the shared object URL.

Prerequisites

Anonymous users have the read permission for the object.

For details about permission granting, see Granting All Accounts the Read Permission for Certain Objects.

Encrypted objects cannot be shared.

Procedure

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. Click the object to be shared. The object information is displayed on the top part of the page. You can find the link for accessing the object in the Link area, as shown in Figure 1.

    Anonymous users can access the object by clicking this link. An object link (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, its URL does not contain any directory level. To learn more about domain names, see OBS Domain Names.
    Figure 1 Object link
    • To allow anonymous users to access objects in Archive storage using URLs, ensure that these objects are in the Restored state.