This topic lists the operations available with Object Storage Service (OSS) SDK for Go.
Bucket-level operations
Category | Method | Scenario |
Basic operations | Creates a bucket. | |
Deletes a bucket. | ||
Queries all buckets. | ||
Determine whether buckets exist. | ||
Queries information about a bucket. | ||
Queries the region in which the bucket is located. | ||
Queries the storage capacity of a bucket and the number of objects in the bucket. | ||
Retention policy (WORM) | Creates a retention policy. | |
Deletes an unlocked retention policy. | ||
Locks a retention policy. | ||
Extends the retention period (days) of objects in a bucket for which a retention policy is locked. | ||
Queries the retention policies that are configured for a bucket. | ||
Access control list (ACL) | Configures the ACL of a bucket. | |
Queries the ACL of a bucket . | ||
Lifecycle management | Configures lifecycle rules for the objects in a bucket.. | |
Queries the lifecycle rules that are configured for objects in a bucket. | ||
Deletes the lifecycle rules that are configured for objects in a bucket. | ||
Transfer acceleration | Configures transfer acceleration for a bucket. | |
Queries the transfer acceleration configurations of the specified bucket. | ||
Versioning | Configures versioning status of a bucket. | |
Queries the versioning status of a bucket. | ||
Lists the versions of all objects in a bucket. | ||
Data replication | Enables and configures data replication rules for a bucket. | |
Enables or disables Replication Time Control (RTC) for existing cross-region replication (CRR) rules. | ||
Queries the data replication rules that are configured for a bucket. | ||
Queries the regions in which available destination buckets are located. | ||
Queries the data replication progress of a bucket. | ||
Stops the data replication tasks of a bucket and deletes the data replication configurations of the bucket. | ||
Policy | Configures a bucket policy. | |
Queries the policies configured for a bucket. | ||
Deletes a bucket policy. | ||
Bucket inventory | Configures inventory rules for a bucket. | |
Queries the specified inventories task configured for a bucket. | ||
Queries all inventories that are configured for a bucket. | ||
Deletes a specified inventory task configured for a bucket. | ||
Logging | Enables logging for a bucket. | |
Queries the logging configurations of a bucket. | ||
Disables the logging feature for a bucket. | ||
Static website | Enables static website hosting for a bucket. | |
Queries the status of the static website hosting for a bucket. | ||
Disables static website hosting for a bucket. | ||
Referer-based hotlink protection | Configures hotlink protection rules for a bucket. | |
Queries the hotlink protection configurations of a bucket. | ||
Tagging | Adds tags to a bucket or modifies the tags of a bucket. | |
Queries the tags of a bucket. | ||
Deletes the tags of a bucket. | ||
Server-side encryption | Configures encryption rules for a bucket. | |
Queries the encryption rules configured for a bucket. | ||
Deletes the encryption rules configured for a bucket. | ||
Pay-by-requester | Enables pay-by-requester for a bucket. | |
Queries the pay-by-requester configurations of a bucket. | ||
Cross-origin resource sharing (CORS) | Configures cross-origin resource sharing (CORS) rules for a bucket. | |
Queries the CORS rules that are configured for a bucket. | ||
Disable the CORS feature for the specified bucket and clears all CORS rules. | ||
Access tracking | Configures the access tracking status of a bucket. | |
Queries the access tracking status of a bucket. | ||
Data indexing | Enables the metadata management feature for a bucket. | |
Queries the metadata index library information of a specified bucket. | ||
Queries objects that meet specified conditions and lists the object information based on the specified fields and sorting methods. | ||
Disables the metadata management feature for a bucket. | ||
Resource group | Configures a resource group to which a bucket belongs. | |
Queries the ID of the resource group to which a bucket belongs. | ||
Custom domain name (CNAME) | Creates a CNAME token to verify the ownership of a domain name. | |
Queries the created CNAME tokens. | ||
Maps a custom domain name to a bucket. | ||
Queries the list of custom domain names mapped to a specified bucket. | ||
Deletes the custom domain names mapped to a specified bucket. | ||
Image processing | Processes a specified image. | |
Image style | Creates an image style. | |
Queries information about a specific image style in a bucket. | ||
Queries all image styles that are created in a bucket. | ||
Deletes a specific image from a bucket. |
Object-level operations
Category | Method | Scenario |
Basic operations | Uploads an object. | |
Queries an object. | ||
Copies an object. | ||
Uploads an object by using append upload. | ||
Deletes a single object. | ||
Deletes multiple objects. | ||
Queries only the basic metadata of an object, including the ETag, size, as well as date and time that the object was last modified. | ||
To configure upload callbacks, you only need to add the related callback parameters to the upload request that is sent to OSS. | ||
Restores Archive, Cold Archive, or Deep Cold Archive objects. | ||
Executes SQL statements on an object. After the SQL statements are executed, execution results are returned. | ||
Manage directories | Creates a directory. | |
Deletes a directory. | ||
Resumable upload | Uploads a large file by using resumable upload. | |
Multipart upload | Initiates a multipart upload task. | |
Uploads an object by part based on the specified object name and upload ID. | ||
Copies data from an existing object to upload a part by adding the x-oss-copy-source request header to an UploadPart request to call the UploadPartCopy operation. | ||
Completes the multipart upload task of an object by calling the CompleteMultipartUpload operation. | ||
Cancels a multipart upload task and deletes uploaded parts. | ||
Lists all ongoing multipart upload tasks, which include tasks that have been initiated but are not completed or canceled. | ||
Lists all parts that are uploaded by using a specific upload ID. | ||
Access control (ACL) | Modifies the ACL of an object. | |
Queries the ACL of an object. | ||
Symbolic link | Creates a symbolic link. | |
Queries a symbolic link. | ||
Tagging | Configures or updates the tags of an object. | |
Queries the tags of an object. | ||
Deletes specified tags of an object. |
LiveChannel operations
Category | Method | Scenario |
CreateLiveChannel | Creates a LiveChannel. | |
ListLiveChannel | Lists LiveChannels. | |
PutLiveChannelStatus | Configures the status of a LiveChannel. | |
SignRtmpURL | Queries the signed URL of a LiveChannel. | |
GetLiveChannelStat | Queries the status of a LiveChannel. | |
GetLiveChannelInfo | Queries the configurations of a LiveChannel. | |
PostVodPlaylist | Generates a playlist for a LiveChannel. | |
GetVodPlaylist | Queries the LiveChannel playlist. | |
GetLiveChannelHistory | Queries the stream ingest records of a LiveChannel. | |
DeleteLiveChannel | Deletes a LiveChannel. |