Restores media assets.
Operation description
You can call this operation to restore only Archive and Cold Archive audio and video files. You can access the audio and video files after the files are restored. You cannot change the storage class of an audio or video file that is being restored. You are charged for the retrieval traffic generated during restoration. After a Cold Archive audio or video file is restored, a Standard replica of the file is generated for access. You are charged for the storage of the replica before the file returns to the frozen state.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vod:RestoreMedia | update | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MediaIds | string | Yes | The ID of the media asset (VideoId). Separate multiple IDs with commas (,). You can specify a maximum of 20 IDs. You can use one of the following methods to obtain the ID of the media asset:
| 8bc8e94fe4e55abde85718****,eb186180e989dd56**** |
Scope | string | No | The modification range. Valid values:
| All |
RestoreDays | string | No | The number of days during which media assets remain in the restored state. Default value: 1. The maximum validity period of a restored Archive media asset is 7 days and the maximum validity period of a restored Cold Archive media asset is 365 days. | 2 |
RestoreTier | string | No | The restoration priority. This parameter is required only when you restore a Cold Archive media file. Valid values:
| Standard |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8E70E3F8-E2EE-47BC-4677-379D6F28****",
"Success": true,
"IgnoredList": {
"MediaId": [
"['7f29b8d0c5fa71ed9685e6f7d559****']"
]
},
"ForbiddenList": {
"MediaForbiddenReasonDTO": [
{
"MediaId": "fa10ee70898671edb99f6eb3690d****",
"Reason": "Forbidden.RestoreMedia"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-11 | The internal configuration of the API is changed, but the call is not affected | View Change Details |