

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# PCS AWS でコンピューティングノードグループの詳細を取得する
<a name="working-with_cng_get-details"></a>

 AWS マネジメントコンソール または を使用して、コンピューティングノードグループ ID、Amazon リソースネーム (ARN)、Amazon マシンイメージ (AMI) ID など、コンピューティングノードグループの詳細 AWS CLI を取得できます。これらの詳細は、多くの場合、PCS API AWS アクションと設定に必要な値です。

------
#### [ AWS マネジメントコンソール ]

**コンピューティングノードグループの詳細を取得するには**

1.  [AWS PCS コンソール](https://console.aws.amazon.com/pcs/home#/clusters)を開きます。

1. クラスターを選択します。

1. **Compute ノードグループ**を選択します。

1.  リストからコンピューティングノードグループを選択します。

------
#### [ AWS CLI ]

**コンピューティングノードグループの詳細を取得するには**

1. [ListClusters](https://docs.aws.amazon.com/pcs/latest/APIReference/API_ListClusters.html) API アクションを使用して、クラスター名または ID を検索します。

   ```
   aws pcs list-clusters
   ```

   **出力例:**

   ```
   {
       "clusters": [
           {
               "name": "get-started-cfn",
               "id": "pcs_abc1234567",
               "arn": "arn:aws:pcs:us-east-1:111122223333:cluster/pcs_abc1234567",
               "createdAt": "2025-04-01T20:11:22+00:00",
               "modifiedAt": "2025-04-01T20:11:22+00:00",
               "status": "ACTIVE"
           }
       ]
   }
   ```

1. [ListComputeNodeGroups](https://docs.aws.amazon.com/pcs/latest/APIReference/API_ListComputeNodeGroups.html) API アクションを使用して、クラスター内のコンピューティングノードグループを一覧表示します。

   ```
   aws pcs list-compute-node-groups --cluster-identifier cluster-name-or-id
   ```

   **呼び出しの例:**

   ```
   aws pcs list-compute-node-groups --cluster-identifier get-started-cfn
   ```

   **出力例:**

   ```
   {
       "computeNodeGroups": [
           {
               "name": "compute-1",
               "id": "pcs_abc123abc1",
               "arn": "arn:aws:pcs:us-east-1:111122223333:cluster/pcs_abc1234567/computenodegroup/pcs_abc123abc1",
               "clusterId": "pcs_abc1234567",
               "createdAt": "2025-04-01T20:19:25+00:00",
               "modifiedAt": "2025-04-01T20:19:25+00:00",
               "status": "ACTIVE"
           },
           {
               "name": "login",
               "id": "pcs_abc456abc7",
               "arn": "arn:aws:pcs:us-east-1:111122223333:cluster/pcs_abc1234567/computenodegroup/pcs_abc456abc7",
               "clusterId": "pcs_abc1234567",
               "createdAt": "2025-04-01T20:19:31+00:00",
               "modifiedAt": "2025-04-01T20:19:31+00:00",
               "status": "ACTIVE"
           }
       ]
   }
   ```

1. [GetComputeNodeGroup](https://docs.aws.amazon.com/pcs/latest/APIReference/API_GetComputeNodeGroup.html) API アクションを使用して、コンピューティングノードグループの追加の詳細を取得します。

   ```
   aws pcs get-compute-node-group --cluster-identifier cluster-name-or-id --compute-node-group-identifier compute-node-group-name-or-id
   ```

   **呼び出しの例:**

   ```
   aws pcs get-compute-node-group --cluster-identifier get-started-cfn --compute-node-group-identifier compute-1
   ```

   **出力例:**

   ```
   {
       "computeNodeGroup": {
           "name": "compute-1",
           "id": "pcs_abc123abc1",
           "arn": "arn:aws:pcs:us-east-1:111122223333:cluster/pcs_abc1234567/computenodegroup/pcs_abc123abc1",
           "clusterId": "pcs_abc1234567",
           "createdAt": "2025-04-01T20:19:25+00:00",
           "modifiedAt": "2025-04-01T20:19:25+00:00",
           "status": "ACTIVE",
           "amiId": "ami-0123456789abcdef0",
           "subnetIds": [
               "subnet-abc012345789abc12"
           ],
           "purchaseOption": "ONDEMAND",
           "customLaunchTemplate": {
               "id": "lt-012345abcdef01234",
               "version": "1"
           },
           "iamInstanceProfileArn": "arn:aws:iam::111122223333:instance-profile/AWSPCS-get-started-cfn-us-east-1",
           "scalingConfiguration": {
               "minInstanceCount": 0,
               "maxInstanceCount": 4
           },
           "instanceConfigs": [
               {
                   "instanceType": "c6i.xlarge"
               }
           ]
       }
   }
   ```

------