Method description
Lists images of the current user. Pagination is supported.
Parameter description
Parameter | Type | Required | Description |
---|---|---|---|
type | String | No | The overload method contains this parameter. If type is set to ListImagesRequest.SYSTEM, the image list provided by the system is returned |
marker | String | No | Start resource ID of the current page. Default value: Null string |
maxItemCount | int | No | Maximum number of returned items. The maximum value is 200. The default value is also 200 |
Response description
If the call succeeds, a ListImagesResponse instance is returned. You can use the getItems method of this instance to obtain the List object.
If a failure occurs, a ClientException is thrown.
Sample code
try{
ListImagesResponse response = client.listImages();
//Succeeded
List<Image> list = response.getItems();
}catch(ClientException e){
e.printStackTrace();
// Failed
}
Attributes of Image
Attribute | Type | Description |
---|---|---|
id | String | Image ID |
name | String | Image name |
ownerId | long | Owner ID |
description | String | Brief description |
type | String | Type. Optional values include System and Self |
ecsImageId | String | ECS image ID |
creationTime | Date | Creation time |
platform | String | Operating system. Optional values include Image.LINUX and Image.WINDOWS |