Sono disponibili altri esempi AWS SDK nel repository AWS Doc SDK
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à.
Utilizzare DescribeConfigurationRecorderStatus
con una CLI
Gli esempi di codice seguenti mostrano come utilizzare DescribeConfigurationRecorderStatus
.
- CLI
-
- AWS CLI
-
Per ottenere informazioni sullo stato del registratore di configurazione
Il comando seguente restituisce lo stato del registratore di configurazione predefinito:
aws configservice describe-configuration-recorder-status
Output:
{ "ConfigurationRecordersStatus": [ { "name": "default", "lastStatus": "SUCCESS", "recording": true, "lastStatusChangeTime": 1452193834.344, "lastStartTime": 1441039997.819, "lastStopTime": 1441039992.835 } ] }
-
Per i dettagli sull'API, consulta DescribeConfigurationRecorderStatus AWS CLI
Command Reference.
-
- PowerShell
-
- Strumenti per PowerShell V4
-
Esempio 1: Questo esempio restituisce lo stato dei registratori di configurazione.
Get-CFGConfigurationRecorderStatus
Output:
LastErrorCode : LastErrorMessage : LastStartTime : 10/11/2019 10:13:51 AM LastStatus : Success LastStatusChangeTime : 12/31/2019 6:14:12 AM LastStopTime : 10/11/2019 10:13:46 AM Name : default Recording : True
-
Per i dettagli sull'API, vedere DescribeConfigurationRecorderStatusin AWS Strumenti per PowerShell Cmdlet Reference (V4).
-
- Strumenti per V5 PowerShell
-
Esempio 1: Questo esempio restituisce lo stato dei registratori di configurazione.
Get-CFGConfigurationRecorderStatus
Output:
LastErrorCode : LastErrorMessage : LastStartTime : 10/11/2019 10:13:51 AM LastStatus : Success LastStatusChangeTime : 12/31/2019 6:14:12 AM LastStopTime : 10/11/2019 10:13:46 AM Name : default Recording : True
-
Per i dettagli sull'API, vedere DescribeConfigurationRecorderStatusin AWS Strumenti per PowerShell Cmdlet Reference (V5).
-