

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Descrivi Cluster
<a name="describe-cluster"></a>

Ottieni informazioni dettagliate su un cluster esistente.

**Topics**
+ [Sintassi della richiesta](#describe-cluster-request)
+ [Corpo di richiesta](#describe-cluster-request-body)
+ [Sintassi della risposta](#describe-cluster-response)
+ [Corpo di risposta](#describe-cluster-response-body)
+ [Esempio](#describe-cluster-example)

## Sintassi della richiesta
<a name="describe-cluster-request"></a>

```
GET /v3/clusters/{{{clusterName}}}
{
  "region": "string"
}
```

## Corpo di richiesta
<a name="describe-cluster-request-body"></a>

**ClusterName**  
Il nome del cluster.  
Tipo: stringa  
Campo obbligatorio: sì

**Regione**  
 Regione AWS Quello in cui si trova il cluster.  
Tipo: stringa  
Campo obbligatorio: no

## Sintassi della risposta
<a name="describe-cluster-response"></a>

**Nota**  
`failureReason`è passato alla versione 3.5.0 `failures` a partire dalla AWS ParallelCluster versione 3.5.0.

```
{
  "clusterName": "string",
  "region": "string",
  "version": "string",
  "cloudFormationStackStatus": "CREATE_IN_PROGRESS",
  "clusterStatus": "CREATE_IN_PROGRESS",
  "scheduler": {
    "type": "string",
    "metadata": {
      "name": "string",
      "version": "string"
    }
  },
  "cloudformationStackArn": "string",
  "creationTime": "2019-08-24T14:15:22Z",
  "lastUpdatedTime": "2019-08-24T14:15:22Z",
  "clusterConfiguration": {
    "url": "string"
  },
  "computeFleetStatus": "START_REQUESTED",
  "tags": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "headNode": {
    "instanceId": "string",
    "instanceType": "string",
    "launchTime": "2019-08-24T14:15:22Z",
    "privateIpAddress": "string",
    "publicIpAddress": "string",
    "state": "pending"
  },
  "failures": [
    {
      "failureCode": "string",
      "failureReason": "string"
    }
  ],
  "loginNodes": {      
    "status": "string",
    "address": "string",
    "poolName": "string",
    "scheme": "string",
    "healthyNodes": integer,
    "unhealthyNodes": integer
  }
}
```

## Corpo di risposta
<a name="describe-cluster-response-body"></a>

**ClusterName**  
Il nome del cluster.  
Tipo: stringa

**cloudformationStackArn**  
L'Amazon Resource Name (ARN) dello stack principale CloudFormation .  
Tipo: stringa

**cloudformationStackStatus**  
Lo stato dello CloudFormation stack.  
Tipo: stringa  
Valori validi: `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`

**Configurazione del cluster**    
**url**  
L'URL del file di configurazione del cluster.  
Tipo: stringa

**Stato del cluster**  
Lo stato del cluster.  
Tipo: stringa  
Valori validi: `CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | UPDATE_IN_PROGRESS | UPDATE_COMPLETE | UPDATE_FAILED`

**computeFleetStatus**  
Lo stato della flotta di elaborazione.  
Tipo: stringa  
Valori validi: `START_REQUESTED | STARTING | RUNNING | PROTECTED | STOP_REQUESTED | STOPPING | STOPPED | UNKNOWN | ENABLED | DISABLED`

**creationTime**  
Timestamp di quando è stato creato il cluster.  
Tipo: datetime

**lastUpdatedTime**  
Data/ora dell'ultimo aggiornamento del cluster.  
Tipo: datetime

**Regione**  
Il luogo Regione AWS in cui viene creato il cluster.  
Tipo: stringa

**tags**  
L'elenco dei tag associati al cluster.    
**Chiave**  
Nome del tag.  
Tipo: stringa  
**tag**  
Valore del tag.  
Tipo: stringa

**version**  
La AWS ParallelCluster versione utilizzata per creare il cluster.  
Tipo: stringa

**failures**  
L'elenco degli errori quando lo stack del cluster è in `CREATE_FAILED` stato.    
**Codice di errore**  
Il codice di errore quando lo stack del cluster è in stato. `CREATE_FAILED`  
Tipo: stringa  
**Motivo dell'errore**  
Il motivo dell'errore quando lo stack del cluster è in stato. `CREATE_FAILED`  
Tipo: stringa

**head\_node**  
Il nodo principale del cluster.    
**instanceId**  
L'ID dell' EC2 istanza Amazon.  
Tipo: stringa  
**instanceType**  
Il tipo di EC2 istanza Amazon.  
Tipo: stringa  
**launchTime**  
L'ora in cui è stata lanciata l' EC2 istanza Amazon.  
Tipo: datetime  
**privateIpAddress**  
L'indirizzo IP privato del cluster.  
Tipo: stringa  
**publicIpAddress**  
L'indirizzo IP pubblico del cluster.  
Tipo: stringa  
**stato**  
Lo stato dell'istanza del nodo principale.  
Tipo: stringa  
Valori validi: `pending | running | shutting-down | terminated | stopping | stopped`

**pianificatore**    
**metadata**  
I metadati dello scheduler.    
**nome**  
Il nome dello scheduler.  
Tipo: stringa  
**version**  
La versione dello scheduler.  
Tipo: stringa

**Nodi di accesso**    
stato  
Lo stato del nodo di accesso.  
Tipo: stringa  
Valori validi: `PENDING | FAILED | ACTIVE`  
address  
L'indirizzo del nodo di accesso.  
Tipo: stringa  
Nome del pool  
Il nome del pool del nodo di accesso.  
Tipo: stringa  
scheme  
Lo schema dei nodi di accesso.  
Tipo: stringa  
Nodi sani  
Il numero di nodi sani.  
Tipo: Integer  
Nodi non sani  
Il numero di nodi non sani.  
Tipo: Integer

**tipo**  
Il tipo di scheduler.  
Tipo: stringa

## Esempio
<a name="describe-cluster-example"></a>

------
#### [ Python ]

**Richiesta**

```
$ describe_cluster({{cluster_name_3x}})
```

**200 Risposta**

```
{
  "cloud_formation_stack_status": "CREATE_COMPLETE",
  "cloudformation_stack_arn": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/16b49540-aee5-11ec-8e18-0ac1d712b241",
  "cluster_configuration": {
    "url": "https://parallelcluster-...."
  },
  "cluster_name": "cluster_name_3x",
  "cluster_status": "CREATE_COMPLETE",
  "compute_fleet_status": "RUNNING",
  "creation_time": datetime.datetime(2022, 3, 28, 22, 19, 9, 661000, tzinfo=tzlocal()),
  "head_node": {
    "instance_id": "i-abcdef01234567890",
    "instance_type": "t2.micro",
    "launch_time": datetime.datetime(2022, 3, 28, 22, 21, 56, tzinfo=tzlocal()),
    "private_ip_address": "172.31.56.3",
    "public_ip_address": "107.23.100.164",
    "state": "running"
  },
  "last_updated_time": datetime.datetime(2022, 3, 28, 22, 19, 9, 661000, tzinfo=tzlocal()),
  "region": "us-east-1",
  "tags": [
    {
      "key": "parallelcluster:version", "value": "3.2.1"
    }
  ],
  "version": "3.2.1"
}
```

------