tencent cloud

CreateStorage
Last updated: 2025-10-30 22:08:09
CreateStorage
Last updated: 2025-10-30 22:08:09

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

This API is used to create storage for professional applications.

Note:

  • This API is exclusively for professional applications.
  • When a customer creates a VOD professional application, the system automatically enables storage in certain regions by default. If the customer needs to enable storage in other regions, they can do so using this API.
  • All storage regions and the regions where storage have already been enabled can be queried using the DescribeStorageRegions API.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateStorage.
Version Yes String Common Params. The value used for this API: 2024-07-18.
Region No String Common Params. This parameter is not required.
SubAppId Yes Integer The ID of VOD Professional Application.
StorageRegion Yes String Storage region, which must be a region supported by the system. All storage regions and the regions where storage buckets have already been enabled can be queried using the DescribeStorageRegions API.
StorageName Yes String The name of the storage.
  • Only lowercase English letters, numbers, hyphens "-", and their combinations are supported.
  • The storage name cannot start or end with a "-".
  • The maximum length of the storage name is 64 characters.
  • 3. Output Parameters

    Parameter Name Type Description
    BucketId String The unique identifier ID of the storage bucket.
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Create the professional application storage.

    Create the professional application storage in ap-chongqing.

    Input Example

    {
      "SubAppId": 1020304056,
      "StorageRegion": "ap-chongqing",
      "StorageName": "my-storage"
    }

    Output Example

    {
        "Response": {
            "BucketId": "bucketid123",
            "RequestId": "f13e691e-8df1-demo-b734-ac63af4b9a64"
        }
    }

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    FailedOperation.StorageRegionBucketOverLimit The storage capacity in this region has exceeded the limit.
    InternalError Internal error.
    InvalidParameter Invalid parameter.
    InvalidParameterValue Incorrect parameter value.
    InvalidParameterValue.UnsupportedStorageRegion Unsupported storage region.
    Was this page helpful?
    You can also Contact Sales or Submit a Ticket for help.
    Yes
    No

    Feedback