Currently, there are two archive storage modes: Cloud Archive Storage (CAS) and archive storage in Cloud Object Storage (COS) through lifecycle transition. We will unify those two modes in the future by removing the former and retaining the latter. In addition, we have implemented direct upload archiving in COS, i.e., directly uploading objects to COS in the archive storage class.
You can use the console, API, SDK, or COSCMD tool for direct upload archiving in COS.
Upload via the console
After selecting the object to be uploaded through Upload a File in the COS Console, select the storage class as Archive Storage in the "Set Object Properties" tab.
Upload via API
Direct upload archiving can be implemented by setting x-cos-storage-class to ARCHIVE in the PUT Object, POST Object, or Initiate Multipart Upload APIs.
The Append Object API does not support direct upload archiving.
Upload via SDK
Currently, all SDKs of COS support direct upload archiving by setting the StorageClass parameter to ARCHIVE during file upload.
Upload via COSCMD
The COSCMD tool supports direct upload archiving by adding the header field x-cos-storage-class and setting it to ARCHIVE during file upload.
Downloading the archive storage is different from the standard and standard infrequent access storage. You need to restore it first before you can download it. The restoration can be performed in the following three ways:
In addition, the console, API, SDK, and COSCMD tool all support archive storage restoration and download.