Updated on 2022-05-17 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

bucket

bucket

[Format]

obs:*:*:bucket:bucket name

[Notes]

For bucket resources, IAM automatically generates the prefix of the resource path: obs:*:*:bucket:

For the path of a specific bucket, add the bucket name to the end. You can also use an asterisk * to indicate any bucket. Example:

obs:*:*:bucket:*

object

object

[Format]

obs:*:*:object:bucket name/object name

[Notes]

For object resources, IAM automatically generates the prefix of the resource path: obs:*:*:object:

For the path of a specific object, add the bucket name/object name to the end. You can also use an asterisk * to any object in a bucket. Example:

obs:*:*:object:my-bucket/my-object/*: indicates any object in the my-object directory of the my-bucket bucket.