describeClusterInstances - Amazon ParallelCluster
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

describeClusterInstances

Describe the instances that belong to a cluster.

Request syntax

GET /v3/clusters/{clusterName}/instances { "nextToken": "string", "nodeType": "string", "queueName": "string", "region": "string" }

Request body

clusterName

The name of the cluster.

Type: string

Required: Yes

nextToken

A token that's used for paginated requests.

Type: string

Required: No

nodeType

Filter the instances by node type.

Type: string

Valid values: HeadNode, ComputeNode, LoginNode

Required: No

queueName

Filter the instances by queue name.

Type: string

Required: No

region

The Amazon Web Services Region that the cluster is in.

Type: string

Required: No

Response syntax

{ "nextToken": "string", "instances": [ { "instanceId": "string", "instanceType": "string", "launchTime": "2019-08-24T14:15:22Z", "privateIpAddress": "string", "publicIpAddress": "string", "state": "pending", "nodeType": "HeadNode", "queueName": "string" } ] }

Response body

instances

The list of cluster instances.

instanceId

The EC2 instance ID.

Type: string

instanceType

The EC2 instance type.

Type: string

launchTime

The time when the EC2 instance was launched.

Type: datetime

nodeType

The node type.

Type: string

Valid values: HeadNode, ComputeNode, LoginNode

publicIpAddress

The cluster public IP address.

Type: string

queueName

The name of the queue that the EC2 instance is backing a node in.

Type: string

state

The node EC2 instance status.

Type: string

Valid values: pending | running | shutting-down | terminated | stopping | stopped

nextToken

A token that's used for paginated requests.

Type: string

Example

Python

Request

$ describe_cluster_instances(cluster_name_3x)

200 Response

{ 'instances': [ { 'instance_id': 'i-abcdef01234567890', 'instance_type': 't2.micro', 'launch_time': datetime.datetime(2022, 3, 30, 14, 2, 7, tzinfo=tzlocal()), 'node_type': 'HeadNode', 'private_ip_address': '192.0.2.5', 'public_ip_address': '198.51.100.180', 'state': 'running' } ] }