describeClusterInstances - AWS ParallelCluster

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

describeClusterInstances

說明屬於叢集的執行個體。

請求語法

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

請求內文

叢集名稱

叢集的名稱。

類型:字串

必要:是

nextToken

用於分頁請求的令牌。

類型:字串

必要:否

節點類型

依節點類型篩選執行個體。

類型:字串

有效值:HeadNodeComputeNodeLoginNode

必要:否

佇列名稱

依佇列名稱篩選執行個體。

類型:字串

必要:否

region

叢集所在的。 AWS 區域

類型:字串

必要:否

回應語法

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

回應內文

執行個體

叢集執行個體的清單。

instanceId

亞馬遜 EC2 執行個體識別碼。

類型:字串

instanceType

Amazon EC2 實例類型。

類型:字串

launchTime

啟動亞馬遜 EC2 執行個體的時間。

類型:日期時間

節點類型

節點類型。

類型:字串

有效值:HeadNodeComputeNodeLoginNode

publicIpAddress

叢集公用 IP 位址。

類型:字串

佇列名稱

Amazon EC2 執行個體支援節點的佇列名稱。

類型:字串

state

節點亞馬遜 EC2 執行個體狀態。

類型:字串

有效值:pending | running | shutting-down | terminated | stopping | stopped

nextToken

用於分頁請求的令牌。

類型:字串

範例

Python

請求

$ describe_cluster_instances(cluster_name_3x)

二百個回應

{ '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' } ] }