tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Versioning Configuration

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2025-12-08 16:27:55

Application Scenarios

Versioning allows you to store multiple versions of objects in a bucket and retrieve, delete, and restore specified version objects.
To learn about version control details, see the Version Control Overview document.
Note:
Only the root account and authorized sub-accounts can configure the versioning status of a bucket.

Usage

Using the COS Console

1. Log in to the COS console.
2. In the left sidebar, click Bucket List to go to the bucket list page.
3. Click the bucket that requires configuration for version control to enter the bucket details page.
4. Select Fault Tolerance and Disaster Recovery > Versioning, find the version control configuration item, change the current status to "enabled", then click Save. In the confirmation pop-up, click OK to enable version control.
Note:
Once you enable versioning for a storage bucket, it cannot revert to unversioned state (initial status). However, you can suspend versioning for the bucket (by changing the current status from "on" to "off"). This way, subsequent overwrite, delete or modify operations will not generate earlier versions.
Since enabling version control will occupy storage space with historical versions of objects, these historical versions also incur storage capacity fees. If you do not need to retain older object versions, it is recommended to enable periodic cleanup of historical versions. This shortcut will create a lifecycle rule for periodic deletion of historical versions (default: execute the rule 3 days after file modification). The rule name follows the format RegularlyClean_HistoricalVersions_timestamp, which you can query on the lifecycle page. Alternatively, you can customize a more granular lifecycle rule according to your business needs. For details, see Set Lifecycle.
5. After enabling version control, enter the File List interface, toggle on the List Historical Versions option. You can view all versions of files with the same name and manage them.
If you upload a file with the same name to the bucket, you can view the uploaded files at different time points.
If you delete a file without specifying a version ID, a deletion marker will be inserted for the current version (latest version) after deletion. This marker means "objects have been deleted." When listing historical versions, you will see records of deleted files, while the existing files with the same name before deletion are retained. You can search historical files based on version ID or last modified time to restore, download, or delete them.
Note:
To permanently delete a certain earlier version, retrieve and specify a version ID to delete it completely. In the console bucket file list, List Historical Versions of the file, then delete the specified version.
The number of historical versions of an object is without any limitations.


Using REST API/SDK

Use the REST API to configure bucket versioning and manage objects in buckets with different versioning states. See the following API documentation:
You can directly call the version control method in the SDK. See the SDK documentation for different languages:

Using Tools

You can use tools to set version control, such as COSBrowser, COSCMD, COSCLI. For more tool introduction, see Tool Overview.


Ajuda e Suporte

Esta página foi útil?

comentários