tencent cloud

Cloud Object Storage

General

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-04-07 18:05:02

What is COS?

Tencent Cloud Cloud Object Storage (COS) is a cloud-based non-hierarchical distributed storage service that provides cost-effective, fast, and reliable data storage solutions. COS stores your data across multiple AZs, incorporating redundant storage to ensure data reliability, and allows multiple clients or application threads to read or write data at the same time.
You can use web APIs to store and retrieve data through CVM instances or over the internet. You can also use the URL of a specified domain name to store and retrieve individual data object in COS through HTTP or HTTPS protocol.
For more information about COS, please see COS Documentation.

How to enable COS?

For details, see Console Quick Start.

How to Use the COS Self-Diagnosis Tool?

The Cloud Object Storage (COS) Self-Diagnosis Tool is a web-based utility provided by Tencent Cloud Object Storage to assist users in troubleshooting erroneous requests. On the tool's interface, you can input the RequestId of the request (refer to the Guide to Obtaining RequestId for retrieval methods). After clicking "Diagnose," the tool will perform an intelligent analysis of the request, displaying its basic information along with guidance and diagnostic tips. This helps you swiftly pinpoint issues when using COS APIs.
For more details, please refer to the Self-Diagnosis Tool.

What is the difference between Cloud Object Storage (COS) and Cloud File Storage (CFS)?

COS has no limit on directory hierarchy or data format and can store any amount of data. There is no upper limit on the storage capacity of buckets where no partitioning is required. It supports HA deployment to ensure the eventual consistency of data but not features such as file locking. Its APIs are provided for data access using the HTTP or HTTPS protocol, and its SDKs and tools can be integrated into your businesses. Objects uploaded to COS can be accessed or downloaded directly through URL.
Cloud File Storage (CFS) uses common network file transfer protocols, can create file systems and implement large-scale expansion, but needs to be mounted onto CVM. It can store data for a wide range of applications such as websites, online distribution, and archiving. Featuring high computing throughput and extremely high availability and persistence, it is also suitable for scenarios demanding high concurrency or shared storage.

What is the difference between COS and CBS?

COS has no limits on file systems, directory structure, number of files, and storage capacity. It needs to be managed and accessed via web APIs. It offers various SDKs and tools for integration, which can also be used separately without CVM. COS supports access to massive amount of data but is not suitable for scenarios involving millisecond-level response or random I/O.
Cloud Block Storage (CBS) needs to be used together with CVM and can only be mounted and used after the file system is partitioned or formatted. It comes in different types with various performance metrics such as IOPS and throughput for different scenarios.
If you use an access link with a temporary signature, the link expires when the temporary signature expires, regardless of whether the file is public-read.
If you want your public-read file to be always accessible, we recommend you use an unsigned access link, which is the object URL on the object details page of the COS console.
Note:
Buckets created after January 1, 2024 will no longer be accessible via COS default domain names (including static website endpoints). For details, see COS Bucket Domain Name Security Management Notice (Effective January 2024).

What is a "folder" or "directory" in COS?

The concepts of folder and directory do not apply to COS. However, taking into account the usage habits of different users, COS displays “folders” in the console and COSBrowser just like in the directory structure of traditional file management. For more information, see Folder and directory.

Can COS files be recovered after being deleted?

The data redundancy storage mechanism of Tencent Cloud Object Storage (COS) is designed to address scenarios requiring data recovery in the event of hardware failures such as server malfunctions. If you manually delete or configure the deletion of COS data without enabling version control, Tencent Cloud will execute the deletion as instructed, and the data cannot be recovered.
The following methods can be used to actively delete data:
Deleting files using COS tools such as COSCMD or COSBrowser.
Removing files via COS APIs or SDKs.
Periodically deleting files through COS lifecycle management.
Overwriting or deleting files in the destination bucket due to synchronization operations (additions, modifications, or deletions) between cross-region buckets via COS bucket replication.

How can I avoid accidental deletion?

The best way to avoid accidental deletion is to back up the files in your bucket on a regular basis. You can protect your data in the following ways:
Download the objects in COS to your local file system or third-party servers using the COSCMD tool.
Perform intra-region or Cross-Region bucket data backup using the COS Migration Tool or the cross-region replication feature.
Regularly backing up your data to other COS buckets using COS APIs or SDKs.
Saving your past versions of data using versioning.
Use COS permission management. For more information, see Cloud Access Management Practices:
Separating read permission and write permission. For businesses where it is only necessary to read data, use a sub-account with read permission or a temporary key to access the data.
Separating permissions for different buckets. For different businesses, only authorize permissions for buckets, directories, and operations within the scope of that particular business.
Not using a root account to access COS.
Accessing COS using a temporary key.
Properly managing your data access credentials, such as your Tencent Cloud account password, CAM sub-account access credentials, and TencentCloud API key.

Does COS support statistics collection?

COS provides monitoring capabilities for stored data, allowing users to understand the status and trends of various data through monitoring dashboards. To view global data trends, you can navigate to the COS console's Overview page, where storage usage, requests, traffic, and other metrics are displayed categorized by different storage types.
To view the statistics of a single bucket, see Viewing Monitoring Reports.
In addition, you can also view monitoring information for different buckets on the TCOP page and configure different alarm policies based on business requirements.

Does COS support image processing, image compression, thumbnail generation, or video transcoding?

CI is integrated in the COS console to implement data processing features such as image processing, image compression, thumbnail generation, and video transcoding. For more information, see Data Processing.

What formats of audio/video files can COS process?

COS is a distributed storage service for unstructured data and cannot support image compression or audio/video file processing on its own. For more information on rich media file processing (MP4, AVI, TS, HLS, MP3, AAC, etc.), see Cloud Infinite.

Does COS support the auto decompression of uploaded files?

COS is a distributed storage service for unstructured data and does not support file decompression; however, you can use the SCF service to decompress files. For more information, see Setting File Decompression.

What are the specifications and limits of COS?

For more information, see Specifications and Limits.

What is a bucket?

A bucket is a carrier of objects, which can be considered as a "container" for storing objects. You can manage buckets and configure attributes of buckets in various methods such as the Tencent Cloud console, APIs, and SDKs. For example, you can set a bucket for hosting a static website or set access permission on a bucket. For more information on buckets, see Bucket Overview.

What is the length limit on a bucket name?

The bucket length limit has been changed since the COS console update in September 2021. According to the new policy, the length of a bucket name is affected by the number of characters in the region abbreviation and APPID, as the combined full domain can contain 60 characters at most. Note that previous bucket names will not be affected. If you need longer names to meet special requirements, contact us.

Why is there a "Permission Denied" prompt when a DLC bucket is operated in the COS console?

The bucket list only displays buckets created by your DLC and does not currently support configuration. If you need to configure, please go to the DLC console to perform operations. For details, see Managed Storage Configuration.

How do I monitor error code information?

You can use TCOP to obtain different types of HTTP return code information. For details, see the Monitoring and Alarms documentation. For the usage of TCOP and how to obtain related data, see the Console Guide or API Documentation of TCOP.

How to view the COS error code list?

You can view the document List of COS Error Codes, which includes error codes and corresponding error messages returned when COS requests fail.Additionally, Object Storage provides a RequestId Diagnostic Tool, which assists developers in swiftly identifying errors while offering diagnostic messages and actionable recommendations for resolution.

What is the logic behind the console's statistics for Global Acceleration downstream traffic?

Global Acceleration downstream traffic does not differentiate between storage types. In other words, the statistical value represents the sum of all Global Acceleration downstream traffic across all storage types.
Additionally, the "Total Monthly Traffic" calculation does not include "Current Month's Global Acceleration Downstream Traffic."

How do I calculate the availability of COS?

Please reference the following example for information on how to calculate COS availability: Tom uses Tencent Cloud COS to run his e-commerce business. Assume that his business consumed a total of 100 USD in the service period from Nov. 1 to Nov. 30, 2018, during which two unavailability events occurred, as shown below:
Unavailability Event No.
Request object Type
Duration
5-Minute Record of Unavailability Event
HTTP Return Code
Number of Failing Requests
Number of Valid Requests
1

STANDARD Storage
15 min
November 15, 2018, 10:00 - 10:05
503
100
100
November 15, 2018, 10:05 - 10:10
503
99
100
November 15, 2018, 10:10 - 10:15
503
98
100
2

STANDARD Storage
15 min
November 20, 2018, 16:00 - 16:05
500
150
150
November 20, 2018, 16:05 - 16:10
500
148
150
November 20, 2018, 16:10 - 16:15
500
140
150

In all other periods, Tom's requests were successful and a 200 status code was returned.
In this case, the overall availability for the service period is as follows:
(1) Calculate the per-5-minute error rate for the current month
According to the case details: when Tom's business is normal, the per-5-minute error rate is 0%.
Unavailability event 1: This event occurred on November 15, 2018 and lasted from 10:00 - 10:15. The per-5-minute error rate was:
100 / 100 * 100% = 100% from 10:00 - 10:05
99 / 100 * 100% = 99% from 10:05 - 10:10
98 / 100 * 100% = 98% from 10:10 - 10:15
Unavailability event 2: This event occurred on November 20, 2018 and lasted from 16:00 - 16:15. The per-5-minute error rate was:
150 / 150 * 100% = 100% from 16:00 - 16:05
148 / 150 * 100% = 98.67% from 16:05 - 16:10
140 / 150 * 100% = 93.33% from 16:10 - 16:15
(2) Calculate the service availability for the current month
In this case:
Total duration of the service period: 30 days * 24 hours/day * 60 minutes/hour=43,200 minutes.
Total number of 5-minute periods: 43,200 minutes / 5 minutes = 8,640.
Total number of unavailable 5-minute periods: (15 + 15) minutes / 5 minutes = 6.
Sum of the per-5-minute error rates: (100% + 99% + 98% + 100% + 98.67% + 93.33%) + (8640 - 6) * 0% = 589%
The service availability for this month: (1 - 589% / 8640) * 100% = 99.93%
(3) Calculate relevant compensation
(3) Calculate relevant compensation
In this example, the service availability is 99.93%, which is lower than the standard 99.95% but higher than 99.9%. According to compensation standards, Tom is eligible for compensation equivalent to 20% of the total monthly service fees, that is, 20 USD.
Xiao Ming only needs to contact us within sixty (60) natural days after the end of the service month, that is, before January 29, 2019, to apply for compensation, and Tencent Cloud will compensate Xiao Ming for the corresponding losses by issuing vouchers.
Note:
For more information on service availability, see the COS Service Level Agreement (SLA).

How do I deactivate the COS service and stop being charged?

You can deactivate COS or stop its billing as follows:
1. If you decide to stop using COS, you can avoid any further billing by permanently deleting all of your COS data (including incomplete multipart uploads and object versions) as instructed in Payment Overdue. There is no need to remove your account, and if you use other Tencent Cloud products, avoid doing so as it will affect your other services.
2. If you don't use COS for more than one month, you can set lifecycle rules to transition data in STANDARD storage class in the bucket to a colder class such as STANDARD_IA, ARCHIVE, or DEEP ARCHIVE to reduce storage fees. For more information, see Setting Lifecycle. The transition will generate read requests in the original storage class and write requests in the target storage class, so transition by lifecycle will incur read/write request fees.
Note
Data, once deleted from the bucket, cannot be recovered, so make backups accordingly.
If versioning is enabled for the bucket, disable it before deleting data.
Check your billing cycle to avoid overdue payments. If all your billable items are settled daily, the bill for the day of data deletion will be generated on the next day. After the data is completely cleared, the system will stop billing. For more information, see Billing Cycle.
If your account has overdue payment (i.e., your account balance is below 0), COS services will be suspended after 24 hours, regardless of whether your resource pack is within the validity period.
If your account has overdue payment and COS services are suspended, the free tier for which your account is eligible won't be available.
If data in your bucket is blocked for the second time due to non-compliance, it cannot be deleted. Contact us if you have any questions.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan