Parameter description
| Attribute |
Type |
Description |
| next_marker |
str |
Start resource ID on the next page. The value is null for the last page |
| max_item_count |
int |
Maximum number of actually returned resources. The default value is 50, and the maximum value is 100 |
| type_ |
str |
The default value is null. The optional value is System. If the parameter is set to System, the list of images provided by the system is returned |
Response description
The list_images method returns a ListResponse object, which contains a set of Image objects. For more information about attributes of the Image object, see the description of the Image class.
| Attribute |
Type |
Description |
| NextMarker |
str |
Start resource ID on the next page. The value is null for the last page |
| Items |
list |
List of Image classes |
Example
try: # Get a Client object. client = Client(... ... marker = "" max_item = 100 round = 0 while marker or round != 0: response = client.list_images(marker, max_item) marker = response.NextMarker for image in response.Items: print (image.Id, image.Platform) round += 1except ClientError, e: print(e)