tencent cloud

云点播

ModifyMediaStorageClass

下载
聚焦模式
字号
最后更新时间: 2026-09-18 15:59:48

1. API Description

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

Modify the storage type of media files.
When the storage type of a media file is standard storage, it can be modified to the following types:

  • Infrequent storage
  • Archive storage
  • DEEP_ARCHIVE
  • When the current storage type of a media file is infrequent storage, it can be modified to the following types:
  • Standard storage
  • Archive storage
  • DEEP_ARCHIVE
  • When the current storage type of a media file is archive storage, it can be modified to the following types:
  • Standard storage
  • When the current storage type of a media file is DEEP_ARCHIVE, it can be modified to the following types:
  • Standard storage
  • 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: ModifyMediaStorageClass.
    Version Yes String Common Params. The value used for this API: 2018-07-17.
    Region No String Common Params. This parameter is not required.
    FileIds.N Yes Array of String Unique identifier list of media files. Maximum length: 100.
    StorageClass Yes String Destination storage class. Optional values:
  • STANDARD: standard storage.
  • STANDARD_IA: Infrequent storage.
  • ARCHIVE: Archive storage.
  • DEEP_ARCHIVE: deep archive storage.
  • SubAppId No Integer VOD application ID. For customers who activate VOD services after December 25, 2023, when accessing resources in VOD applications (whether the default application or a newly created application), this field must be set to the app ID.
    RestoreTier No String Retrieval mode. When converting the file storage type from archive or deep archive to standard storage, you need to specify the retrieval (also known as unfreeze) operation mode. For details, see Data Retrieval and Retrieval Mode.
    When the current storage type of the media file is archive storage, the parameter values are as follows:
  • Expedited: speed mode.
  • Standard: standard mode.
  • Bulk: batch mode.

  • When the current storage type of a media file is DEEP_ARCHIVE, the following values are available:
  • Standard: standard mode.
  • Bulk: batch mode.
  • 3. Output Parameters

    Parameter Name Type Description
    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 Change media files from standard storage to infrequent storage

    Change media files from standard storage to infrequent storage

    Input Example

    https://vod.intl.tencentcloudapi.com/?Action=ModifyMediaStorageClass
    &FileIds.0=5285485487985271487
    &StorageClass=STANDARD_IA
    &<Common request parameters>

    Output Example

    {
        "Response": {
            "RequestId": "requestId"
        }
    }

    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 Operation failed.
    InternalError Internal error.
    InvalidParameter Parameter error.
    InvalidParameterValue Parameter value error.
    InvalidParameterValue.FileIds FileIds parameter error.
    InvalidParameterValue.OriginalStorageClass Parameter value error. The original storage type of the file is abnormal.
    InvalidParameterValue.StorageClass Parameter value error. The target storage type is not in the available values.
    InvalidParameterValue.UnsupportedRestoreTier Parameter value error: The file does not support this unfreeze method.
    InvalidParameterValue.UnsupportedStorageClass Parameter value error. Unsupported target storage type. Deep archive is only supported in select parks.
    InvalidParameterValue.UnsupportedTransition Parameter value error. Unsupported storage type switch.
    MissingParameter Parameters are missing.
    ResourceNotFound The resource does not exist.
    ResourceNotFound.FileNotExist Resource does not exist: file not found.
    ResourceUnavailable Resources are unavailable.
    UnauthorizedOperation Unauthorized operation.
    UnknownParameter Unknown parameter error.
    UnsupportedOperation The operation is not supported.

    帮助和支持

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

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

    文档反馈