Restores media assets from frozen storage.
Operation description
Make sure that you are familiar with the billing methods and pricing of ApsaraVideo VOD before you call this operation. Restoring media assets incurs storage fees. For more information, see Media asset storage billing.
This operation applies only to Archive and Cold Archive audio and video files. After a file is restored, it can be accessed. The storage class of an audio or video file that is being restored cannot be changed. Restoration generates retrieval traffic. After a Cold Archive audio or video file is restored, a Standard storage copy of the file is generated for access. The file copy incurs Standard storage fees until the restoration period ends.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:RestoreMedia |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaIds |
string |
Yes |
The media IDs, which are audio or video IDs (VideoId). Separate multiple IDs with commas (,). A maximum of 20 IDs are supported. You can obtain the IDs by using the following methods:
|
8bc8e94fe4e55abde85718****,eb186180e989dd56**** |
| Scope |
string |
No |
The scope of the change. If this parameter is not specified, the default value All is used. Valid values:
|
All |
| RestoreDays |
string |
No |
The restoration duration. Default value: 1 day. Maximum value for Archive media assets: 7 days. Maximum value for Cold Archive media assets: 365 days. |
2 |
| RestoreTier |
string |
No |
The restoration priority. This parameter is required only for Cold Archive media assets. If this parameter is not specified, the default value Standard is used. Valid values:
|
Standard |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
8E70E3F8-E2EE-47BC-4677-379D6F28**** |
| Success |
boolean |
Indicates whether the operation was successful. |
true |
| IgnoredList |
object |
||
| MediaId |
array |
The list of media asset IDs that failed to be retrieved. |
|
|
string |
The media asset ID that failed to be retrieved. |
['7f29b8d0c5fa71ed9685e6f7d559****'] |
|
| ForbiddenList |
object |
||
| MediaForbiddenReasonDTO |
array<object> |
The list of media asset IDs that failed to be processed. |
|
|
object |
The information about the media asset that failed to be processed. |
||
| MediaId |
string |
The ID of the media asset. |
fa10ee70898671edb99f6eb3690d**** |
| Reason |
string |
The reason for the failure. |
Forbidden.RestoreMedia |
Examples
Success response
JSON format
{
"RequestId": "8E70E3F8-E2EE-47BC-4677-379D6F28****",
"Success": true,
"IgnoredList": {
"MediaId": [
"['7f29b8d0c5fa71ed9685e6f7d559****']"
]
},
"ForbiddenList": {
"MediaForbiddenReasonDTO": [
{
"MediaId": "fa10ee70898671edb99f6eb3690d****",
"Reason": "Forbidden.RestoreMedia"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.