Creating Buckets

Last updated: 2021-11-19 14:25:03

    To store objects in COS, you first need to create a bucket through the console, tools, APIs, or SDKs.

    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 guidelines, please see Console Overview.


    1. One root account can create up to 200 buckets.
    2. Once a bucket is created successfully, its name and region cannot be modified.
    3. Bucket names under the same root account must be unique and cannot be changed.
    4. A bucket name can contain letters, digits, and hyphens (-). The number of characters a bucket name is allowed to contain is limited by the length of the region abbreviation and APPID. The combined domain name can be up to 60 characters. For example, the domain name contains 60 characters.
    5. A bucket name cannot start or end with "-".


    Using COS console

    You can create a bucket in the COS console. For more information, please see Creating Buckets.

    Using tools

    You can use tools such as COSBrowser and COSCMD to create buckets. For more information, please see Tool Overview.

    Using REST APIs

    You can use the REST API directly to initiate a bucket creating request. For more information, see PUT Bucket.

    Using SDKs

    You can directly call the bucket creating method in the SDK. For more information, see the SDK documentation for the corresponding programming language below: