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

Actions

Actions are related to resources. When the resource is the current bucket, bucket-related actions should be configured in a bucket policy. When objects are specified as resources, object-related actions should be configured in a bucket policy.

The Exclude setting can be used to determine whether the bucket policy applies to the specified actions.

Selecting Specified actions for Exclude will let the bucket policy apply to the actions except the specified ones.

  • If you do not select Specified actions for Exclude, the bucket policy applies to the specified actions.
  • By default, Specified actions is selected for Exclude in the bucket read/write template only. The action exclusion setting in bucket policy templates cannot be modified.

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 obtains the bucket metadata.

ListBucketVersions

Lists versioned objects in a bucket.

ListBucketMultipartUploads

Lists multipart uploads.

GetBucketAcl

Obtains the bucket ACL information.

PutBucketAcl

Configures a bucket ACL.

GetBucketCORS

Obtains the CORS configuration of the bucket.

PutBucketCORS

Configures CORS for a bucket.

GetBucketVersioning

Obtains the bucket versioning information.

PutBucketVersioning

Configures versioning for a bucket.

GetBucketLocation

Obtains the bucket location.

GetBucketLogging

Obtains the bucket logging information.

PutBucketLogging

Configures logging for a bucket.

GetBucketWebsite

Obtains the static website configuration of the bucket.

PutBucketWebsite

Configures the static website hosting for the bucket.

DeleteBucketWebsite

Deletes the static website hosting configuration of the bucket.

GetLifecycleConfiguration

Obtains the lifecycle rules of a bucket.

PutLifecycleConfiguration

Configures a 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 an 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 an object ACL.

PutObjectVersionAcl

Configures the ACL for a specified object version.

DeleteObject

Deletes an object.

DeleteObjectVersion

Deletes a specified object version.

ListMultipartUploadParts

Lists uploaded parts.

AbortMultipartUpload

Aborts a multipart upload.