tencent cloud

云点播

CreateStorage

PDF
聚焦模式
字号
最后更新时间: 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.

    帮助和支持

    本页内容是否解决了您的问题?

    填写满意度调查问卷,共创更好文档体验。

    文档反馈