All Products
Search
Document Center

GetImageInfo

Last Updated: Mar 04, 2019

Description

You can call this operation to obtain the basic information about an image based on the image ID. The basic information includes the title, type, creation time, and tags of the image.

Request parameters

NameTypeRequiredDescription
ActionStringYesThe operation that you want to perform. Set the value to GetImageInfo.
ImageIdStringYesThe image ID.
AuthTimeoutLongNoThe expiration time of the image.

Response parameters

NameTypeDescription
RequestId StringThe GUID generated by Alibaba Cloud for the request.
ImageInfo ImageInfoThe image information.

Examples

Sample requests

  1. http://vod.cn-shanghai.aliyuncs.com/?Action=GetImageInfo&ImageId=3e34733b40bd46719a96ccf5c1ff6f69&Format=JSON&<Common request parameters>

Note: For more information about common request parameters, see Common parameters.

Sample responses

JSON format

  1. {
  2. "RequestId": "5FFCED85-7ACD-4D62-A533-20A59A481730",
  3. "ImageInfo": {
  4. "Description": "Test description",
  5. "Mezzanine": {
  6. "OriginalFileName": "9AB9E51BD8024DFAB0484AE1E5E3EB74-6-2.gif",
  7. "Height": 200,
  8. "Width": 200,
  9. "FileSize": 8932
  10. },
  11. "CreationTime": "2018-11-21T02:37:23Z",
  12. "ImageId": "5fdc93c6473e4043b9b34d9cc699f00d",
  13. "Title": "Image uploaded in an open API test",
  14. "CateId": 254766071,
  15. "CateName": "Test",
  16. "StorageLocation": "out-20171212185527975-62nnembf1e.oss-cn-shanghai.aliyuncs.com",
  17. "Tags": "Tag 1,Tag 2,Tag 3",
  18. "URL": "http://vodtest.alicdn.com/image/default/9AB9E51BD8024DFAB0484AE1E5E3EB74-6-2.gif?auth_key=1542774471-0-0-f0f5fe3efce3b60be55f9f3776880dc3",
  19. "ImageType": "default"
  20. }
  21. }

Error codes

The following table lists the error code that this operation can return. For more information, see Error codes.

Error codeError messageHTTP status codeDescription
NoSuchResourceThe specified resource does not exist.404The error message returned when the specified image does not exist.