tencent cloud

云点播

RestoreMedia

下载
聚焦模式
字号
最后更新时间: 2026-09-18 18:10:34

1. API Description

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

When the storage type of a media file is archive storage or deep archive storage, it is unreachable. If you need access, call this API to unfreeze it. The unfrozen media file is temporarily accessible and becomes unreachable after the validity period expires.

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: RestoreMedia.
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.
RestoreDay Yes Integer Accessible duration of thawed temporary media files. Must be greater than 0. Unit: day.
SubAppId No Integer VOD application ID. For customers who activate VOD services after December 25, 2023, this field must be set to the app ID when accessing resources in VOD applications (whether the default application or a newly created application).
RestoreTier No String Thawing mode. If the current storage type of the media file is archive storage, valid values:
  • Speed mode: Expedited. The unfreeze task is completed in 5 minutes.
  • Standard mode: Standard. The unfreeze task is completed after 5 hours.
  • Batch mode: Bulk. The unfreeze task is completed after 12 hours.

  • When the storage type of a media file is DEEP_ARCHIVE, the parameter values are as follows:
  • Standard mode: Standard. The unfreeze task is completed after 24 hours.
  • Batch mode: Bulk. The unfreeze task will be completed after 48 hours.
  • 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 Unfreeze a media file in speed mode

    Use speed mode to unfreeze media files

    Input Example

    https://vod.intl.tencentcloudapi.com/?Action=RestoreMedia
    &FileIds.0=5285485487985271487
    &RestoreDay=1
    &RestoreTier=Expedited
    &<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.NotRestorable Parameter error: The file does not support unfreezing.
    InvalidParameterValue.OriginalStorageClass Parameter value error. The original storage type of the file is abnormal.
    InvalidParameterValue.RestoreDay Parameter error: Invalid number of unfreeze days.
    InvalidParameterValue.RestoreTier Parameter error: Unsupported thawing mode.
    InvalidParameterValue.UnsupportedRestoreTier Parameter value error: The file does not support this unfreeze method.
    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.

    帮助和支持

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

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

    文档反馈