Queries the basic information and access URLs of multiple images by image ID after the images are uploaded to ApsaraVideo VOD.
Operation description
This operation only supports querying information about images uploaded to ApsaraVideo VOD. To query information about snapshots generated from video snapshots, call the ListSnapshots operation.
You can query information about up to 20 images at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetImageInfos |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageIds |
string |
Yes |
The list of image IDs. Separate multiple IDs with commas (,). A maximum of 20 IDs are supported. You can obtain image IDs by using the following methods:
|
bbc65bba53fed90de118a7849****,594228cdd14b4d069fc17a8c4a**** |
| AuthTimeout |
integer |
No |
The validity period of the image access URL. Unit: seconds.
|
3600 |
| OutputType |
string |
No |
The type of the image access URL to return. Valid values:
|
cdn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58***** |
| ImageInfo |
array<object> |
The image information list. |
|
|
array<object> |
The image information list. |
||
| CreationTime |
string |
The time when the image was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2018-11-21T02:37:23Z |
| StorageLocation |
string |
The storage address of the image file. |
outin-****..oss-cn-shanghai.aliyuncs.com |
| Status |
string |
The image status. Valid values:
|
Uploading |
| CateId |
integer |
The category ID. |
254766071 |
| Tags |
string |
The image tags. Multiple tags are separated by commas (,). |
tag1,tag2,tag3 |
| ImageType |
string |
The image type. Valid values:
|
default |
| CateName |
string |
The category name. |
Test |
| Description |
string |
The image description. |
Test description |
| AppId |
string |
The application ID. |
app-**** |
| URL |
string |
The image access URL. If a CDN domain name is configured, the CDN URL is returned. Otherwise, the OSS URL is returned. |
http://example.aliyundoc.com/image/default/****.gif?auth_key=**** |
| Title |
string |
The image title. |
this is a sample |
| ImageId |
string |
The image ID. |
bbc65bba53f9*****ed90de118a7849 |
| Mezzanine |
object |
The mezzanine information of the image. |
|
| FileURL |
string |
The OSS URL of the image file. |
https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D |
| OriginalFileName |
string |
The URL of the source file. |
****.gif |
| Width |
integer |
The width of the image. Unit: pixels. |
200 |
| Height |
integer |
The height of the image. Unit: pixels. |
200 |
| FileSize |
string |
The size of the file to be uploaded. Unit: bytes. |
8932 |
| NonExistImageIds |
array |
The list of image IDs that do not exist. |
|
|
string |
The list of image IDs that do not exist. |
f45cf4eba5c80233389558c39**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58*****",
"ImageInfo": [
{
"CreationTime": "2018-11-21T02:37:23Z",
"StorageLocation": "outin-****..oss-cn-shanghai.aliyuncs.com",
"Status": "Uploading",
"CateId": 254766071,
"Tags": "tag1,tag2,tag3",
"ImageType": "default",
"CateName": "测试",
"Description": "测试描述",
"AppId": "app-****",
"URL": "http://example.aliyundoc.com/image/default/****.gif?auth_key=****",
"Title": "this is a sample",
"ImageId": "bbc65bba53f9*****ed90de118a7849",
"Mezzanine": {
"FileURL": "https://outin-bfefbb*****163e1c7426.oss-cn-XXXXXXXX.aliyuncs.com/image/default/5E84CD536*****D4DAD.png?Expires=1590982353&OSSAccessKeyId=*****&Signature=ALPET74o*****c%3D",
"OriginalFileName": "****.gif",
"Width": 200,
"Height": 200,
"FileSize": "8932"
}
}
],
"NonExistImageIds": [
"f45cf4eba5c80233389558c39****"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.