Creating Buckets

Last updated: 2020-12-28 15:04:57

    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.

    Use Limits

    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 must be unique under the same root account and cannot be changed.
    4. A bucket name can contain 1-50 characters. Only lowercase letters (a-z), digits (0-9), and hyphens (-) are allowed.
    5. A bucket name cannot start or end with "-".

    Directions

    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, please see PUT Bucket.

    Using SDKs

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