• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide
  4. OBS Console Operation Guide
  5. Bucket Permissions
  6. Bucket Policy Action

Bucket Policy Actions

This parameter specifies actions on which a bucket policy takes effect. Actions can be specified in either of the following ways:

  • Include: Specifies the actions on which the bucket policy takes effect.
  • Exclude: Specifies the actions on which the bucket policy does not take effect.

Actions Related to Buckets

Table 1 Actions related to buckets

Type

Value

Description

General

*

The value supports a wildcard character (*) that indicates all operations can be performed.

Get*

The value supports a wildcard character (*) that indicates all GET operations can be performed.

Put*

The value supports a wildcard character (*) that indicates all PUT operations can be performed.

List*

The value supports a wildcard character (*) that indicates all LIST operations can be performed.

Bucket

DeleteBucket

Deletes a bucket.

ListBucket

Lists objects in a bucket, and gets the bucket metadata.

ListBucketVersions

Lists object versions in a bucket.

ListBucketMultipartUploads

Lists multipart upload tasks.

GetBucketAcl

Obtains the ACL information of a bucket.

PutBucketAcl

Configures the ACL for a bucket.

GetBucketCORS

Obtains the CORS configuration of a bucket.

PutBucketCORS

Configures CORS for a bucket.

GetBucketVersioning

Obtains the versioning information of a bucket.

PutBucketVersioning

Configures versioning.

GetBucketLocation

Obtains the bucket location.

GetBucketLogging

Obtains the bucket logging information.

PutBucketLogging

Configures the bucket logging.

GetBucketWebsite

Obtains the static website configuration information about a bucket.

PutBucketWebsite

Configures the static website hosting for a bucket.

DeleteBucketWebsite

Cancels the static website hosting configuration of a bucket.

GetLifecycleConfiguration

Obtains the lifecycle rule of a bucket.

PutLifecycleConfiguration

Configures the lifecycle rule for a bucket.

Actions Related to Objects

Table 2 Actions related to objects

Type

Value

Description

General

*

The value supports a wildcard character (*) that indicates all operations can be performed.

Get*

The value supports a wildcard character (*) that indicates all GET operations can be performed.

Put*

The value supports a wildcard character (*) that indicates all PUT operations can be performed.

List*

The value supports a wildcard character (*) that indicates all LIST operations can be performed.

Object

GetObject

Obtains the object and its metadata.

GetObjectVersion

Obtains the object of a specified version and its metadata.

PutObject

Performs PUT upload, POST upload, multipart upload, initialization of uploaded parts, and merging of parts.

GetObjectAcl

Obtains the object ACL information.

GetObjectVersionAcl

Obtains the ACL information of a specified object version.

PutObjectAcl

Configures the ACL for an object.

PutObjectVersionAcl

Configures the ACL for a specified object version.

DeleteObject

Deletes objects.

DeleteObjectVersion

Deletes a specified object version.

ListMultipartUploadParts

Lists uploaded parts.

AbortMultipartUpload

Cancels a multipart upload task.

Relationship Between Actions and Conditions

If an action related to buckets is configured, only keys related to bucket actions can be configured in Conditions. For details, see Table 3.

If an action related to objects is configured, only keys related to object actions can be configured in Conditions. For details, see Table 4.