All Products
Search
Document Center

listImages

Last Updated: May 11, 2018

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

  1. try{
  2. ListImagesResponse response = client.listImages();
  3. //Succeeded
  4. List<Image> list = response.getItems();
  5. }catch(ClientException e){
  6. e.printStackTrace();
  7. // Failed
  8. }

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