Operation List

Last updated: 2019-10-23 15:12:28

Below are APIs of Cloud Object Storage (COS) and their descriptions:

Service APIs

API Operation Description
GET Service Querying bucket list Queries the list of all buckets under the specified account

Bucket APIs

Basic Operation APIs

API Operation Description
PUT Bucket Creating a bucket Creates a bucket under the specified account
GET Bucket(List Object) Querying object list Queries some or all objects in a bucket
HEAD Bucket Checking a bucket and its permission Check whether a bucket exists and you have permission to access it
DELETE Bucket Deleting a bucket Deletes an empty bucket under the specified account

Access Control List (acl) APIs

API Operation Description
PUT Bucket acl Setting bucket ACL Sets the ACL for the specified bucket
GET Bucket acl Querying bucket ACL Queries the ACL of a bucket

Cross-Origin Resource Sharing (cors) APIs

API Operation Description
PUT Bucket cors Setting cross-origin access configuration Sets the cross-origin access permission to a bucket
GET Bucket cors Querying cross-origin access configuration Queries the cross-origin access configuration information of a bucket
DELETE Bucket cors Deleting cross-origin access configuration Deletes the cross-origin access configuration information of a bucket

Lifecycle (lifecycle) APIs

API Operation Description
PUT Bucket lifecycle Setting lifecycle Sets the lifecycle management configuration of a bucket
GET Bucket lifecycle Querying lifecycle Queries the lifecycle management configuration of a bucket
DELETE Bucket lifecycle Deleting lifecycle Deletes the lifecycle management configuration of a bucket

Bucket Policy (policy) APIs

API Operation Description
PUT Bucket policy Setting a bucket policy Sets a permission policy for the specified bucket
GET Bucket policy Querying bucket policy Queries the permission policy of the specified bucket
DELETE Bucket policy Deleting a bucket policy Deletes the permission policy of the specified bucket
API Operation Description
PUT Bucket referer Setting bucket referer Sets Referer-based whitelist or blacklist for a bucket
GET Bucket referer Querying bucket referer Queries Referer-based whitelist or blacklist for a bucket

Tag (tagging) APIs

API Operation Description
PUT Bucket tagging Setting a bucket tag Sets a tag for an existing bucket
GET Bucket tagging Querying bucket tags Queries the existing tags of the specified bucket
DELETE Bucket tagging Deleting a bucket tag Deletes the specified bucket tag

Static Website (website) APIs

API Operation Description
PUT Bucket website Setting bucket website Configures a static website for a bucket
GET Bucket website Querying bucket website Queries the configuration information of the static website associated with a bucket
DELETE Bucket website Deleting bucket website Deletes the configuration information of the static website of the specified bucket

Object APIs

Basic Operation APIs

API Operation Description
PUT Object Simply uploading an object Uploads an object to a bucket
PUT Object - Copy Setting object copy Copies a file to the destination path
POST Object Uploading an Object Using a Form Uploads an object using a form request
GET Object Downloading an object Downloads an object to the local file system
HEAD Object Querying object metadata Queries the metadata of an object
DELETE Object Deleting a single object Deletes the specified object in a bucket
DELETE Multiple Objects Deleting multiple objects Deletes objects in a bucket in batches
OPTIONS Object Pre-requesting cross-origin configuration Uses a pre-request to confirm whether a real cross-origin request can be sent
POST Object restore Restoring an archived object Retrieves an archived object for access

Access Control APIs

API Operation Description
PUT Object acl Setting object ACL Sets the ACL for the specified object in a bucket
GET Object acl Querying object ACL Queries the ACL of an object

Multipart Upload APIs

API Operation Description
Initiate Multipart Upload Initializing a multipart upload Initializes a multipart upload task
Upload Part Uploading parts Uploads file parts
Upload Part - Copy Copying a part Copies an object as a part
Complete Multipart Upload Completing a multipart upload Completes the multipart upload of the entire file
Abort Multipart Upload Aborting a multipart upload Aborts a multipart upload operation and deletes the uploaded parts
List Multipart Uploads Querying a multipart upload Queries the information of a multipart upload in progress
List Parts Querying uploaded parts Queries uploaded parts in the specified multipart upload operation