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:
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: 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: |
| 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: When the current storage type of a media file is DEEP_ARCHIVE, the following values are available: |
| 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. |
Change media files from standard storage to infrequent storage
https://vod.intl.tencentcloudapi.com/?Action=ModifyMediaStorageClass
&FileIds.0=5285485487985271487
&StorageClass=STANDARD_IA
&<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.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. |
文档反馈