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.
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: When the storage type of a media file is DEEP_ARCHIVE, the parameter values are as follows: |
| 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. |
Use speed mode to unfreeze media files
https://vod.intl.tencentcloudapi.com/?Action=RestoreMedia
&FileIds.0=5285485487985271487
&RestoreDay=1
&RestoreTier=Expedited
&<Common request parameters>
{
"Response": {
"RequestId": "requestId"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
文档反馈