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

OBS Resources

A resource is an object that exists within a service. OBS resources include buckets and objects. You can select these resources by specifying their paths.

Table 1 OBS resources and their paths

Resource Type

Resource Name

Path

Buckets

Bucket

[Format]

obs:*:*:bucket:Bucket name

[Notes]

IAM automatically generates the prefix obs:*:*:bucket: for bucket resource paths.

By adding Bucket name to the end of the generated prefix, you can define a specific path. An asterisk * is allowed to indicate any bucket. An example is given as follows:

obs:*:*:bucket:*

Objects

Object

[Format]

obs:*:*:object:Bucket name/Object name

[Notes]

IAM automatically generates the prefix obs:*:*:object: for object resource paths.

By adding Bucket name/Object name to the end of the generated prefix, you can define a specific path. An asterisk * is allowed to any object in the bucket. An example is given as follows:

obs:*:*:object:my-bucket/my-object/* (indicating any object in the my-object directory of bucket my-bucket)