

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

# `pcluster describe-cluster-instances`
<a name="pcluster.describe-cluster-instances-v3"></a>

描述叢集中的執行個體。

```
pcluster describe-cluster-instances [-h] 
                 --cluster-name {{CLUSTER_NAME}}
                [--debug]
                [--next-token {{NEXT_TOKEN}}]
                [--node-type {HeadNode,ComputeNode,LoginNode}]
                [--query {{QUERY}}]
                [--queue-name {{QUEUE_NAME}}]
                [--region {{REGION}}]
```

## 具名引數
<a name="pcluster-v3.describe-cluster-instances.namedargs"></a>

**-h, --help**  
顯示 的說明文字`pcluster describe-cluster-instances`。

**--cluster-name, -n {{CLUSTER\_NAME}}**  
指定叢集的名稱。

**--debug**  
啟用偵錯記錄。

**--next-token {{NEXT\_TOKEN}}**  
下一組結果的字符。

**--node-type {`HeadNode`,`ComputeNode`,`LoginNode`}**  
指定要列出的節點類型。支援的值為 `HeadNode`、 `ComputeNode`和 `LoginNode`。如果未指定此參數，則會描述 `HeadNode``ComputeNode`和 `LoginNode`執行個體。

**--query {{QUERY}}**  
指定要在輸出上執行的 JMESPath 查詢。

**--queue-name {{QUEUE\_NAME}}**  
指定要列出的佇列名稱。如果未指定此參數，則會描述所有佇列中的執行個體。

**--region, -r {{REGION}}**  
指定 AWS 區域 要使用的 。 AWS 區域 必須使用 `AWS_DEFAULT_REGION`環境變數、 `~/.aws/config` 檔案 `[default]`區段中的 `region`設定或 `--region` 參數來指定 。

**使用 3.1.4 AWS ParallelCluster 版的範例：**

```
$ pcluster describe-cluster-instances -n {{cluster-v3}}
{
  "instances": [
    {
      "launchTime": "2022-07-12T17:22:21.000Z",
      "instanceId": "i-1234567890abcdef0",
      "publicIpAddress": "198.51.100.44",
      "instanceType": "t2.micro",
      "state": "running",
      "nodeType": "HeadNode",
      "privateIpAddress": "192.0.2.0.196"
    },
    {
      "launchTime": "2022-07-12T17:37:42.000Z",
      "instanceId": "i-021345abcdef6789",
      "queueName": "queue1",
      "publicIpAddress": "198.51.100.44",
      "instanceType": "t2.micro",
      "state": "pending",
      "nodeType": "ComputeNode",
      "privateIpAddress": "192.0.2.0.196"
    },
    {
        "launchTime": "2022-07-12T17:37:42.000Z", 
        "instanceId": "i-021345abcdef6789", 
        "poolName": "pool1", 
        "publicIpAddress": "198.51.100.44", 
        "instanceType": "t2.micro", 
        "state": "pending", 
        "nodeType": "loginNode", 
        "privateIpAddress": "192.0.2.0.196" 
    }
  ]
}
```