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

Creating a Bucket

PDF
Focus Mode
Font Size
Last updated: 2026-03-03 18:09:40
To store files in Cloud Object Storage (COS), you need to create a bucket to store objects. You can create a bucket via the console, tools, API, or SDK. For the bucket concept, please refer to Bucket Overview. The following is a detailed introduction on how to create a bucket.
After creating a bucket, you can upload objects to it and configure other features for it, such as setting up a static website, setting bucket tags, and setting bucket encryption. For more configuration instructions, see Console Overview.

Description

One root account can create up to 200 buckets.
Once a bucket is created successfully, its name and region cannot be modified.
Bucket names must be unique under the same root account and cannot be changed.
Bucket names can only contain lowercase letters, numbers, and hyphens, i.e., [a-z, 0-9], and their combinations. The maximum allowed characters for a bucket name are influenced by the region abbreviation and APPID, with a total of up to 60 characters for the complete request domain name. For example, the request domain 123456789012345678901-1250000000.cos.ap-beijing.myqcloud.com has a total of 60 characters.
A bucket name cannot start or end with "-".

How to Use

Using COS console

1. Log in to the COS Console.
2. In the left sidebar, click bucket list.
3. On the bucket list page, click Create Bucket.
4. In the pop-up Create Bucket dialog box, configure the following information:
4.1 Information
Region: Please select the COS region corresponding to the physical area where your business (or number of users) is concentrated. This setting cannot be modified after creation. For more information, see regions and access endpoints.
Name: Enter a custom bucket name. It cannot be modified after creation. For naming specifications, see naming specification for buckets.
Access Permission: Buckets provide three types of access permissions by default: Private Read/Write, Public Read/Private Write, and Public Read/Write. These can still be modified after setting. For details, see bucket access permissions.
Endpoint: Automatically generated. After bucket creation, you can use that domain name to access the bucket.
MAZ configuration: The Multi-AZ feature is an identifier for buckets. When you enable the multi-AZ configuration, your data will be stored in different IDCs within the same region, providing intra-city disaster recovery. Currently, this feature is applicable only to partial regions such as Beijing, Shanghai, Guangzhou, Hong Kong (China), and Singapore region. For more applicable regions and feature introduction, see the Multi-AZ feature overview document.
Note:
Multi-AZ storage incurs higher storage capacity fees than single-AZ. For details, see product pricing in each region.
After enabling multi-AZ configuration for a bucket, it cannot be modified. Once enabled, data will be stored in the bucket with storage types that support multi-AZ features (such as MAZ_STANDARD and MAZ_STANDARD_IA). Configure with caution. If version control is also enabled, its status cannot be modified.
The COS bucket you created cannot enable multi-AZ configuration. It can only be enabled when creating a new bucket.
4.2 Advanced optional configuration
Note:
This setting item is selectable, configure as needed.
Versioning: Once enabled, uploading objects with the same name or performing operations like add, delete, modify will save earlier versions, convenient for you to retrieve object history.
Note:
If version control and the Multi-AZ feature are enabled simultaneously, the version control state cannot be changed. Configure with caution.
Metadata Acceleration: This configuration item is currently only applicable to allowlisted users. For details, see overview of metadata acceleration function.
Smart Compression: Once enabled, each time you access images of specified format in the bucket, they will be compressed in real time without changing the image format, drastically saving traffic. For details, see introduction to smart compression.
Logging: Records various request logs related to bucket operations for you.
Bucket Tag: A bucket tag serves as an identifier for managing buckets. You can set tags for buckets, making it easy to group and manage them. For details, see set bucket tags.
Server-Side Encryption: You can choose the server encryption method. For the server-side encryption overview and supported regions, see server-side encryption overview.
4.3 Confirm
Confirm the bucket configuration information. If modification is needed, click Back.
5. After confirming the information is correct, click Create to create a bucket. In the bucket list interface, you can see the newly created bucket.

Note:
The bucket list only shows buckets created by Data Lake Compute (DLC). Configuration is not currently supported. To configure, go to the DLC console. For details, see managed storage configuration.

Using REST API/SDK

You can directly use the REST API to trigger a bucket creation request. For details, see the PUT Bucket API document.
You can directly call the SDK to create a bucket. For details, see the following language SDK documents:

Using Tools

You can use tools to create a bucket, such as COSBrowser, COSCMD, COSCLI. For more tool introduction, see Tool Overview.



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback