Method description
Obtains information about an image by specifying the image ID.
Parameter description
Parameter | Type | Description |
---|---|---|
imageId | String | ID of an image |
Response description
If the call succeeds, a GetImageResponse instance is returned. You can use the getImage() method of this instance to obtain the Image object.
If a failure occurs, a ClientException is thrown.
Sample code
try{
GetImageResponse response = client.getImage("img-6vilcufsfd31i010");
//Succeeded
Image image = response.getImage();
}catch(ClientException e){
e.printStackTrace();
// Failed
}