Retrieves the basic information and access URLs of multiple auxiliary media assets in a batch by specifying their IDs after the assets such as watermark images, subtitle files, and materials are uploaded to ApsaraVideo VOD.
Operation description
You can retrieve information about up to 20 auxiliary media assets at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetAttachedMediaInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaIds |
string |
Yes |
The auxiliary media asset IDs.
|
eb1861d2c9a842340e989dd56****,0222e203cf80f9c22870a4d2c**** |
| AuthTimeout |
integer |
No |
The validity period of the auxiliary media asset URL. Unit: seconds.
|
3600 |
| OutputType |
string |
No |
The type of the output URL. Valid values:
|
oss |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
221BCB57-B217-42BF-619BD13378F9**** |
| NonExistMediaIds |
array |
The IDs of the auxiliary media assets that do not exist. |
|
|
string |
The IDs of the auxiliary media assets that do not exist. |
eb1861d2c9a842340e989dd56**** |
|
| AttachedMediaList |
array<object> |
The information about the auxiliary media assets. |
|
|
array<object> |
The details of the auxiliary media asset. |
||
| Type |
string |
The type of the auxiliary media asset. Valid values:
|
subtitle |
| StorageLocation |
string |
The storage address of the auxiliary media asset. |
outin-bfefbb9*****c7426.oss-cn-shanghai.aliyuncs.com |
| CreationTime |
string |
The time when the auxiliary media asset was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2019-01-01T10:00:00Z |
| Status |
string |
The status of the auxiliary media asset. Valid values:
|
Normal |
| Tags |
string |
The tags. Note
This parameter is returned only if the auxiliary media asset has tag information. |
tag1,tag2 |
| ModificationTime |
string |
The time when the auxiliary media asset was last updated. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2020-05-31T11:42:20Z |
| MediaId |
string |
The auxiliary media asset ID. |
0222e203cf80f9c22870a4d2c**** |
| Description |
string |
The description. Note
This parameter is returned only if the auxiliary media asset has a description. |
Description test |
| AppId |
string |
The application ID. |
app-***** |
| URL |
string |
The access URL of the auxiliary media asset. Note
If a CDN domain name is configured in ApsaraVideo VOD, the CDN URL is returned. Otherwise, the OSS URL is returned. |
https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59**** |
| Title |
string |
The title. |
Subtitle test |
| Categories |
array<object> |
The list of categories. |
|
|
object |
The details of the category. |
||
| ParentId |
integer |
The ID of the parent category. |
1000224336 |
| CateName |
string |
The name of the category. |
Test |
| CateId |
integer |
The ID of the category. |
1000224338 |
| Level |
integer |
The level of the category. |
0 |
Examples
Success response
JSON format
{
"RequestId": "221BCB57-B217-42BF-619BD13378F9****",
"NonExistMediaIds": [
"eb1861d2c9a842340e989dd56****"
],
"AttachedMediaList": [
{
"Type": "subtitle",
"StorageLocation": "outin-bfefbb9*****c7426.oss-cn-shanghai.aliyuncs.com",
"CreationTime": "2019-01-01T10:00:00Z",
"Status": "Normal",
"Tags": "tag1,tag2",
"ModificationTime": "2020-05-31T11:42:20Z",
"MediaId": "0222e203cf80f9c22870a4d2c****",
"Description": "Description test",
"AppId": "app-*****",
"URL": "https://al*****.cn/subtitle/9843C2*****4E186F19B6.vtt?auth_key=159099f60e0b7fd59****",
"Title": "Subtitle test",
"Categories": [
{
"ParentId": 1000224336,
"CateName": "Test",
"CateId": 1000224338,
"Level": 0
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.