Retrieves multiple media assets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:BatchGetYikeAssetMediaInfos |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaIds |
string |
No |
The media asset IDs, separated by commas. |
******b48fb04483915d4f2cd8******,******c48fb37407365d4f2cd8****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| MediaInfos |
array<object> |
The list of matched media assets. |
|
|
array<object> |
A media asset object. |
||
| MediaId |
string |
The ID of the media asset. |
******c48fb37407365d4f2cd8****** |
| MediaBasicInfo |
object |
The basic information about the media asset. |
|
| MediaId |
string |
The ID of the media asset. |
*****64623a94eca8516569c8f***** |
| InputURL |
string |
The source URL of the media asset. |
https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| MediaType |
string |
The type of the media asset. |
video |
| BusinessType |
string |
The business type. |
general |
| Source |
string |
The source of the media asset. |
oss |
| Title |
string |
The title of the media asset. |
title |
| Description |
string |
The description of the media asset. |
sample_description |
| Category |
string |
The category of the media asset. |
category |
| MediaTags |
string |
The tags of the media asset. |
tag1,tag2 |
| CoverURL |
string |
The URL of the cover image. |
https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg |
| UserData |
string |
The custom user data. |
UserData |
| Snapshots |
string |
The snapshots. |
[] |
| Status |
string |
The status of the media asset. |
Normal |
| TranscodeStatus |
string |
The transcoding status. |
Init |
| CreateTime |
string |
The time when the media asset was created. |
2020-12-26T04:11:08Z |
| ModifiedTime |
string |
The time when the media asset was last modified. |
2021-01-08T16:52:04Z |
| DeletedTime |
string |
The time when the media asset was deleted. |
2021-01-08T16:52:07Z |
| SpriteImages |
string |
The sprite images. |
[{"bucket":"example-bucket","count":"32","iceJobId":"******83ec44d58b2069def2e******","location":"oss-cn-shanghai","snapshotRegular":"example/example-{Count}.jpg","spriteRegular":"example/example-{TileCount}.jpg","templateId":"******e438b14ff39293eaec25******","tileCount":"1"}] |
| Biz |
string |
The business to which the media asset belongs. |
ICE |
| FileInfoList |
array<object> |
The list of file information. |
|
|
array<object> |
The file information. |
||
| FileBasicInfo |
object |
The basic information about the file, including the duration and size. |
|
| FileName |
string |
The name of the file. |
example.mp4 |
| FileStatus |
string |
The status of the file. |
Normal |
| FileType |
string |
The type of the file. |
source_file |
| FileSize |
string |
The size of the file, in bytes. |
191 |
| FileUrl |
string |
The OSS URL of the file. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires= |
| Region |
string |
The region where the file is stored. |
cn-shanghai |
| FormatName |
string |
The container format of the file. |
jpg |
| Duration |
string |
The duration of the file. |
200 |
| Bitrate |
string |
The bitrate. |
30 |
| Width |
string |
The width. |
640 |
| Height |
string |
The height. |
416 |
| BizData |
object |
The business data. |
|
| FolderId |
string |
The ID of the folder. |
pd_0617169475 |
| ProductionId |
string |
The ID of the production. |
pd_0617169475 |
| AuditBlockedLabel |
string |
The audit label. |
Label |
| AuditStatus |
string |
The audit status. |
pass |
| MediaAssetType |
string |
The type of the media asset. |
HistoricalUpload |
| MediaAssetSubType |
string |
The sub-type of the media asset. |
Image |
| SourceType |
string |
The source type. |
MainBody |
| SourceId |
string |
The source ID. |
f4a26390f02371f0a1f4e6e7c7586706 |
| SourceName |
string |
The source name. |
name |
| IsFavorite |
string |
Indicates whether the media asset is a favorite. |
1 |
| IsLogicalDeleted |
string |
Indicates whether the media asset is logically deleted. |
1 |
| CreationJobId |
string |
The ID of the creation job. |
ID |
| IgnoredList |
array |
The list of IDs of media assets that failed to be obtained. |
|
|
string |
The ID of the media asset that failed to be obtained. |
****fb2101bf24bf41cb318787dc**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"MediaInfos": [
{
"MediaId": "******c48fb37407365d4f2cd8******",
"MediaBasicInfo": {
"MediaId": "*****64623a94eca8516569c8f*****",
"InputURL": "https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4",
"MediaType": "video",
"BusinessType": "general",
"Source": "oss",
"Title": "title",
"Description": "sample_description",
"Category": "category",
"MediaTags": "tag1,tag2",
"CoverURL": "https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg",
"UserData": "UserData",
"Snapshots": "[]",
"Status": "Normal",
"TranscodeStatus": "Init",
"CreateTime": "2020-12-26T04:11:08Z",
"ModifiedTime": "2021-01-08T16:52:04Z",
"DeletedTime": "2021-01-08T16:52:07Z",
"SpriteImages": "[{\"bucket\":\"example-bucket\",\"count\":\"32\",\"iceJobId\":\"******83ec44d58b2069def2e******\",\"location\":\"oss-cn-shanghai\",\"snapshotRegular\":\"example/example-{Count}.jpg\",\"spriteRegular\":\"example/example-{TileCount}.jpg\",\"templateId\":\"******e438b14ff39293eaec25******\",\"tileCount\":\"1\"}]",
"Biz": "ICE"
},
"FileInfoList": [
{
"FileBasicInfo": {
"FileName": "example.mp4",
"FileStatus": "Normal",
"FileType": "source_file",
"FileSize": "191",
"FileUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token=",
"Region": "cn-shanghai",
"FormatName": "jpg",
"Duration": "200",
"Bitrate": "30",
"Width": "640",
"Height": "416"
}
}
],
"BizData": {
"FolderId": "pd_0617169475",
"ProductionId": "pd_0617169475",
"AuditBlockedLabel": "Label",
"AuditStatus": "pass",
"MediaAssetType": "HistoricalUpload",
"MediaAssetSubType": "Image",
"SourceType": "MainBody",
"SourceId": "f4a26390f02371f0a1f4e6e7c7586706",
"SourceName": "name",
"IsFavorite": "1",
"IsLogicalDeleted": "1",
"CreationJobId": "ID"
}
}
],
"IgnoredList": [
"****fb2101bf24bf41cb318787dc****"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.