Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
28 KiB
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.
Actions can be specified in either of the following ways:
- Include: The bucket policy applies to specified actions.
- Exclude: The bucket policy applies to actions except the specified ones.
Actions Related to Buckets
Type |
Value |
Description |
|
|---|---|---|---|
General |
* |
Indicates all actions on a bucket. |
|
Get* |
Indicates all GET actions on a bucket. |
||
Put* |
Indicates all PUT actions on a bucket. |
||
List* |
Indicates all LIST actions on a bucket. |
||
Bucket |
Operations on buckets |
ListBucket |
Lists objects in a bucket, and obtains the bucket metadata. |
DeleteBucket |
Deletes a bucket. |
||
GetBucketLocation |
Obtains the bucket location. |
||
GetBucketStorage |
Obtains bucket storage information. |
||
Bucket policies |
GetBucketPolicy |
Obtains a bucket policy. |
|
PutBucketPolicy |
Configures a bucket policy. |
||
DeleteBucketPolicy |
Deletes a bucket policy. |
||
Bucket ACL |
GetBucketAcl |
Obtains the bucket ACL information. |
|
PutBucketAcl |
Configures a bucket ACL. |
||
Bucket logs |
GetBucketLogging |
Obtains the bucket logging information. |
|
PutBucketLogging |
Configures logging for a bucket. |
||
Lifecycle rules |
GetLifecycleConfiguration |
Obtains the lifecycle rules of a bucket. |
|
PutLifecycleConfiguration |
Configures a lifecycle rule for a bucket. |
||
Static website hosting |
GetBucketWebsite |
Obtains the static website configuration of the bucket. |
|
PutBucketWebsite |
Configures static website hosting for a bucket. |
||
DeleteBucketWebsite |
Deletes the static website hosting configuration of the bucket. |
||
Bucket versioning |
GetBucketVersioning |
Obtains the bucket versioning information. |
|
PutBucketVersioning |
Configures versioning for a bucket. |
||
ListBucketVersions |
Lists object versions in the bucket. |
||
Bucket tags |
GetBucketTagging |
Obtains bucket tags. |
|
PutBucketTagging |
Configures tags for a bucket. |
||
DeleteBucketTagging |
Deletes bucket tags. |
||
CORS rules |
GetBucketCORS |
Obtains the CORS configuration of the bucket. |
|
PutBucketCORS |
Configures CORS for a bucket. |
||
Event notifications |
GetBucketNotification |
Obtains the event notification configuration of a bucket. |
|
PutBucketNotification |
Configures event notifications for a bucket. |
||
Bucket storage class |
GetBucketStoragePolicy |
Obtains the default storage class of a bucket. |
|
PutBucketStoragePolicy |
Configures the default storage class for a bucket. |
||
Bucket storage quota |
GetBucketQuota |
Gets storage quotas of a bucket. |
|
PutBucketQuota |
Configures bucket storage quota. |
||
User-defined domain names |
GetBucketCustomDomainConfiguration |
Obtains the user-defined domain name bound to a bucket. |
|
PutBucketCustomDomainConfiguration |
Binds a user-defined domain name to a bucket. |
||
DeleteBucketCustomDomainConfiguration |
Unbinds a user-defined domain name from a bucket. |
||
Bucket encryption |
GetEncryptionConfiguration |
Obtains the server-side encryption configuration of a bucket. |
|
PutEncryptionConfiguration |
Configures server-side encryption for a bucket. |
||
Default bucket retention policy |
GetBucketObjectLockConfiguration |
Obtains the default retention settings of a bucket. |
|
PutBucketObjectLockConfiguration |
Configures a default retention policy for a bucket. |
||
Bucket inventories |
GetBucketInventoryConfiguration |
Obtains the inventory configuration of a bucket. |
|
PutBucketInventoryConfiguration |
Configures inventories for a bucket. |
||
DeleteBucketInventoryConfiguration |
Deletes the inventory configuration of a bucket. |
||
Other |
GetReplicationConfiguration |
Obtains the cross-region replication configuration of a bucket. |
|
PutReplicationConfiguration |
Configures cross-region replication for a bucket. |
||
DeleteReplicationConfiguration |
Deletes the cross-region replication configuration of a bucket. |
||
ListBucketMultipartUploads |
Lists multipart uploads. |
||
Actions Related to Objects
Type |
Value |
Description |
|
|---|---|---|---|
General |
* |
Indicates all actions on an object. |
|
Get* |
Indicates all GET actions on an object. |
||
Put* |
Indicates all PUT actions on an object. |
||
List* |
Indicates all LIST actions on an object. |
||
Object |
Operations on objects |
GetObject |
Obtains an object and its metadata. |
PutObject |
Performs PUT upload, POST upload, multipart upload, initiation of uploaded parts, and assembling of parts. |
||
RestoreObject |
Restores Cold objects. |
||
DeleteObject |
Deletes an object. |
||
Object ACL |
GetObjectAcl |
Obtains the ACL of an object. |
|
PutObjectAcl |
Configures an object ACL. |
||
Versioning |
GetObjectVersion |
Obtains the object of a specified version and its metadata. |
|
DeleteObjectVersion |
Deletes a specified object version. |
||
Object version ACL |
GetObjectVersionAcl |
Obtains the ACL of a specified object version. |
|
PutObjectVersionAcl |
Configures the ACL for a specified object version. |
||
Object retention policy |
PutObjectRetention |
Configures a retention policy for an object. |
|
Other |
AbortMultipartUpload |
Aborts a multipart upload. |
|
ListMultipartUploadParts |
Lists uploaded parts. |
||
ModifyObjectMetadata |
Modifies object metadata. |
||