Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

listImages

Focus mode
listImages - AWS ParallelCluster

Retrieve the list of existing custom images.

Request syntax

GET /images/custom { "imageStatus": "string", "nextToken": "string", "region": "string" }

Request body

imageStatus

Filter images by the status provided.

Type: string

Valid values: AVAILABLE | PENDING | FAILED

Required: Yes

nextToken

The token for the next set of results.

Type: string

Required: No

region

The AWS Region that images are in.

Type: string

Required: No

Response syntax

{ "nextToken": "string", "images": [ { "imageId": "string", "ec2AmiInfo": { "amiId": "string" }, "region": "string", "version": "string", "cloudformationStackArn": "string", "imageBuildStatus": "BUILD_IN_PROGRESS", "cloudformationStackStatus": "CREATE_IN_PROGRESS" } ] }

Response body

images

A list of images.

cloudformationStackArn

The Amazon Resource Name (ARN) of the main CloudFormation stack.

Type: string

cloudformationStackStatus

The CloudFormation stack status.

Type: string

Valid values: CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | ROLLBACK_IN_PROGRESS | ROLLBACK_FAILED | ROLLBACK_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | UPDATE_IN_PROGRESS | UPDATE_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_COMPLETE | UPDATE_ROLLBACK_IN_PROGRESS | UPDATE_ROLLBACK_FAILED | UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_ROLLBACK_COMPLETE

ec2AmiInfo
ami_id

The Amazon EC2 AMI ID.

Type: string

imageBuildStatus

The image build status.

Valid values: BUILD_IN_PROGRESS | BUILD_FAILED | BUILD_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE

Type: string

imageId

The ID of the image.

Type: string

region

The AWS Region in which the image is created.

Type: string

version

The AWS ParallelCluster version that's used to build the image.

Type: string

nextToken

A token that can be used to retrieve the next set of results, or null if there are no additional results.

Type: string

Example

Python

Request

$ list_images("AVAILABLE")

200 Response

{ 'images': [ { 'ec2_ami_info': { 'ami_id': 'ami-abcdef01234567890' }, 'image_build_status': 'BUILD_COMPLETE', 'image_id': 'custom-image', 'region': 'us-east-1', 'version': '3.2.1' } ] }

Request

$ list_images("AVAILABLE")

200 Response

{ 'images': [ { 'ec2_ami_info': { 'ami_id': 'ami-abcdef01234567890' }, 'image_build_status': 'BUILD_COMPLETE', 'image_id': 'custom-image', 'region': 'us-east-1', 'version': '3.2.1' } ] }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.