Retrieves the basic information and access URL of an image uploaded to ApsaraVideo VOD by using the image ID.
Operation description
This operation only supports querying image information for images uploaded to ApsaraVideo VOD. To query snapshot information generated from video snapshots, call the ListSnapshots operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetImageInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
Yes |
The image ID. You can obtain the image ID by using one of the following methods:
|
3e34733b40b9a96ccf5c1ff6f69**** |
| AuthTimeout |
integer |
No |
The expiration time of the image access URL. Unit: seconds.
|
3600 |
| OutputType |
string |
No |
The type of the output image access URL. Valid values:
|
cdn |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
AB99D4DF-FAFA-49DC-9C548C1E261E**** |
| ImageInfo |
object |
The list of image information. |
|
| CreationTime |
string |
The time when the image was created. The time follows the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in 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 value is a CDN URL. Otherwise, the value is an OSS URL. |
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 source 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 uploaded source image 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 file size. Unit: bytes. |
8932 |
Examples
Success response
JSON format
{
"RequestId": "AB99D4DF-FAFA-49DC-9C548C1E261E****",
"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": "Test",
"Description": "Test 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"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.