

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à.

# getClusterStackEventi
<a name="get-cluster-stack-events"></a>

Recupera gli eventi associati allo stack di un cluster.

**Nota**  
A partire dalla versione 3.6.0, AWS ParallelCluster utilizza gli stack annidati per creare le risorse associate alle code e alle risorse di calcolo. L'`GetClusterStackEvents`API e il `pcluster get-cluster-stack-events` comando restituiscono solo gli eventi dello stack principale del cluster. È possibile visualizzare gli eventi dello stack del cluster, inclusi quelli relativi alle code e alle risorse di calcolo, nella console. CloudFormation 

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

## Sintassi della richiesta
<a name="get-cluster-stack-events-request"></a>

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

## Corpo di richiesta
<a name="get-cluster-stack-events-request-body"></a>

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

**nextToken**  
Token per il set di risultati successivo.  
Tipo: stringa  
Campo obbligatorio: no

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

## Sintassi della risposta
<a name="get-cluster-stack-events-response"></a>

```
{
  "nextToken": "string",
  "events": [
    {
      "stackId": "string",
      "eventId": "string",
      "stackName": "string",
      "logicalResourceId": "string",
      "physicalResourceId": "string",
      "resourceType": "string",
      "timestamp": "2019-08-24T14:15:22Z",
      "resourceStatus": "CREATE_IN_PROGRESS",
      "resourceStatusReason": "string",
      "resourceProperties": "string",
      "clientRequestToken": "string"
    }
  ]
}
```

## Corpo di risposta
<a name="get-cluster-stack-events-response-body"></a>

**eventi**  
Elenco degli eventi filtrati.    
**clientRequestToken**  
Il token passato all'azione che ha generato questo evento.  
Tipo: stringa  
**eventId**  
L'ID univoco di questo evento.  
Tipo: stringa  
**logicalResourceId**  
Il nome logico della risorsa specificata nel modello.  
Tipo: stringa  
**physicalResourceId**  
Il nome o l'identificatore univoco associato all'istanza fisica della risorsa.  
Tipo: stringa  
**Proprietà della risorsa**  
Un BLOB delle proprietà utilizzate per creare la risorsa.  
Tipo: stringa  
**Stato delle risorse**  
Lo stato della risorsa.  
Tipo: stringa  
Valori validi: `CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | DELETE_SKIPPED | UPDATE_IN_PROGRESS | UPDATE_FAILED | UPDATE_COMPLETE | IMPORT_FAILED | IMPORT_COMPLETE | IMPORT_IN_PROGRESS | IMPORT_ROLLBACK_IN_PROGRESS | IMPORT_ROLLBACK_FAILED | IMPORT_ROLLBACK_COMPLETE`  
**resourceStatusReason**  
Un messaggio di successo o di fallimento associato alla risorsa.  
Tipo: stringa  
**resourceType**  
Il tipo di risorsa.  
Tipo: stringa  
**StackID**  
Il nome ID univoco dell'istanza dello stack.  
Tipo: stringa  
**StackName**  
Il nome associato a uno stack.  
Tipo: stringa  
**timestamp**  
L'ora in cui lo stato è stato aggiornato.  
Tipo: datetime

**nextToken**  
Token che è possibile usare per recuperare il set di risultati successivo oppure `null` se non ci sono risultati aggiuntivi.  
Tipo: stringa

## Esempio
<a name="get-cluster-stack-events-example"></a>

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

**Richiesta**

```
$ get_cluster_stack_events({{cluster_name_3x}})
```

**200 Risposta**

```
{
  "events": [
    {
      "event_id": "590b3820-b081-11ec-985e-0a7af5751497",
      "logical_resource_id": "cluster_name_3x",
      "physical_resource_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9",
      "resource_status": "CREATE_COMPLETE",
      "resource_type": "AWS::CloudFormation::Stack",
      "stack_id": "arn:aws:cloudformation:us-east-1:123456789012:stack/cluster_name_3x/11a59710-b080-11ec-b8bd-129def1380e9",
      "stack_name": "cluster_name_3x",
      "timestamp": datetime.datetime(2022, 3, 30, 23, 30, 13, 268000, tzinfo=tzlocal())
    },
    ...
  ]
}
```

------