COS APIs are described as follows:
Service APIs
API |
Operation |
Description |
GET Service (List Buckets) |
Querying the bucket list |
Queries the list of all buckets under a specified account |
Bucket APIs
Basic operation APIs
API |
Operation |
Description |
PUT Bucket |
Creating a bucket |
Creates a bucket under a specified account |
GET Bucket (List Objects) |
Querying an object list |
Queries some or all objects in a bucket |
HEAD Bucket |
Checking a bucket and its permission |
Checks whether a bucket exists and whether you have permission to access it |
DELETE Bucket |
Deleting a bucket |
Deletes an empty bucket under a specified account |
GET Bucket Object versions |
Querying object versions |
Queries some or all objects in a bucket and their historical versions |
ACL APIs
API |
Operation |
Description |
PUT Bucket acl |
Setting bucket ACL |
Sets an ACL for a specified bucket |
GET Bucket acl |
Querying bucket ACL |
Queries the ACL of a bucket |
CORS APIs
API |
Operation |
Description |
PUT Bucket cors |
Setting CORS |
Sets CORS permissions for a bucket |
GET Bucket cors |
Querying CORS configuration |
Queries the CORS configuration of a bucket |
DELETE Bucket cors |
Deleting CORS configuration |
Deletes the CORS configuration of a bucket |
Lifecycle APIs
Bucket policy APIs
API |
Operation |
Description |
PUT Bucket policy |
Setting a bucket policy |
Sets a permission policy for a bucket |
GET Bucket policy |
Querying a bucket policy |
Queries the permission policy of a bucket |
DELETE Bucket policy |
Deleting a bucket policy |
Deletes the permission policy of a bucket |
Hotlink Protection (referer) APIs
API |
Operation |
Description |
PUT Bucket referer |
Setting a bucket referer |
Sets a bucket referer allowlist or blocklist |
GET Bucket referer |
Querying a bucket referer |
Queries a bucket referer allowlist or blocklist |
Bucket tagging APIs
Static website APIs
API |
Operation |
Description |
PUT Bucket website |
Setting a static website |
Sets a static website for a bucket |
GET Bucket website |
Querying static website configuration |
Queries the static website configuration of a bucket |
DELETE Bucket website |
Deleting a static website configuration |
Deletes the static website configuration of a bucket |
INTELLIGENT TIERING APIs
Inventory APIs
Versioning APIs
Cross-bucket replication APIs
API |
Operation |
Description |
PUT Bucket replication |
Setting cross-bucket replication |
Sets a cross-bucket replication rule for a versioning-enabled bucket |
GET Bucket replication |
Querying cross-bucket replication |
Queries the cross-bucket replication rule of a bucket |
DELETE Bucket replication |
Deleting a cross-bucket replication rule |
Deletes a cross-bucket replication rule of a bucket |
Logging APIs
API |
Operation |
Description |
PUT Bucket logging |
Setting logging |
Enables logging for a source bucket |
GET Bucket logging |
Querying logging configuration |
Queries the logging configuration of a source bucket |
Global acceleration APIs
API |
Operation |
Description |
PUT Bucket Accelerate |
Setting global acceleration |
Enables/Suspends global acceleration for a bucket |
GET Bucket Accelerate |
Querying global acceleration |
Queries the global acceleration configuration of a bucket |
Bucket encryption APIs
API |
Operation |
Description |
PUT Bucket encryption |
Setting bucket encryption |
Sets the default encryption configuration for a bucket |
GET Bucket encryption |
Querying bucket encryption configuration |
Queries the default encryption configuration of a bucket |
DELETE Bucket encryption |
Deleting bucket encryption configuration |
Deletes the default encryption configuration of a bucket |
Object APIs
Basic operation APIs
API |
Operation |
Description |
PUT Object |
Uploading an object using simple upload |
Uploads an object to a bucket |
PUT Object - Copy |
Copying an object |
Copies an object to a destination path |
POST Object |
Uploading an object using an HTML form |
Uploads an object using an HTML form |
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 an object from a bucket |
DELETE Multiple Objects |
Deleting multiple objects |
Deletes multiple objects from a bucket in a single request |
OPTIONS Object |
Configuring a pre-flight request for CORS |
Sends a pre-flight request to confirm whether a real CORS request can be sent |
POST Object restore |
Restoring an archived object |
Restores an archived object for access |
SELECT Object Content |
Extracting object content |
Extracts the content of an object |
ACL APIs
API |
Operation |
Description |
PUT Object acl |
Setting an object ACL |
Sets an ACL for an object in a bucket |
GET Object acl |
Querying an object ACL |
Queries the ACL of an object |
Object tagging APIs
Multipart upload APIs
API |
Operation |
Description |
Initiate Multipart Upload |
Initializing a multipart upload |
Initializes a multipart upload |
Upload Part |
Uploading a part |
Uploads a part in a multipart upload |
Upload Part - Copy |
Copying a part |
Uploads a part by copying data from an existing object as the data source |
Complete Multipart Upload |
Completing a multipart upload |
Completes the multipart upload of an entire file |
Abort Multipart Upload |
Aborting a multipart upload operation |
Aborts a multipart upload and deletes the uploaded parts |
List Multipart Uploads |
Querying multipart uploads |
Queries in-progress multipart upload operations |
List Parts |
Querying uploaded parts |
Queries the uploaded parts of a specific multipart upload operation |
Batch Operation APIs
API |
Operation |
Description |
CreateJob |
Creating a job |
Creates a batch operation job in a bucket |
DescribeJob |
Describing a job |
Gets the parameters and job execution status of a created batch operation job |
ListJobs |
Querying jobs |
Lists created batch operation jobs |
UpdateJobPriority |
Updating job priority |
Updates the priority of a created job |
UpdateJobStatus |
Updating job status |
Updates the status of a created job |
Data Processing APIs
Basic image processing APIs
API |
Description |
Scaling |
Scales up/down an image |
Cropping |
Crops an image, including regular cropping, scaling and cropping, inscribed circle cropping, rounded corner cropping, and smart cropping |
Rotation |
Rotates an image, including common rotation and adaptive rotation |
Format conversion |
Converts the format of an image, optimizes GIF format, and performs progressive display |
Quality conversion |
Adjusts the quality of an image |
Gaussian blurring |
Blurs an image by a Gaussian function |
Sharpening |
Sharpens an image |
Image watermarks |
Adds a watermark to an image |
Text watermarks |
Adds a real-time text watermark to an image |
Obtaining basic image information |
Obtains the basic information (such as format, length, and height) about an image |
Obtaining image EXIF data |
Obtains the EXIF data of an image |
Obtaining the image average hue |
Obtains the average hue of an image |
Removing metadata |
Removes the image metadata, including the EXIF data |
Quick thumbnail template |
Provides an image processing template to generate thumbnails |
Pipeline operator |
Performs multiple operations on images in sequence |
Was this page helpful?