Queries the basic information and access URL of an image based on the image ID.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ImageId | string | Yes | The ID of the image. You can use one of the following methods to obtain the ID:
| 3e34733b40b9a96ccf5c1ff6f69**** |
AuthTimeout | long | No | The time when the image URL expires. Unit: seconds.
| 3600 |
OutputType | string | No | The type of the output image URL. Valid values:
| cdn |
Response parameters
Examples
Sample success responses
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": "NormalSnapshot",
"CateName": "test name",
"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
For a list of error codes, visit the Service error codes.