

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Gunakan `ReportInstanceStatus` dengan CLI
<a name="ec2_example_ec2_ReportInstanceStatus_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`ReportInstanceStatus`.

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

**AWS CLI**  
**Untuk melaporkan umpan balik status untuk sebuah instans**  
Perintah contoh ini melaporkan umpan balik status untuk instance yang ditentukan.  
Perintah:  

```
aws ec2 report-instance-status --instances i-1234567890abcdef0 --status impaired --reason-codes unresponsive
```
+  Untuk detail API, lihat [ReportInstanceStatus](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/report-instance-status.html)di *Referensi AWS CLI Perintah*. 

------
#### [ PowerShell ]

**Alat untuk PowerShell V4**  
**Contoh 1: Contoh ini melaporkan umpan balik status untuk contoh yang ditentukan.**  

```
Send-EC2InstanceStatus -Instance i-12345678 -Status impaired -ReasonCode unresponsive
```
+  Untuk detail API, lihat [ReportInstanceStatus](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Contoh ini melaporkan umpan balik status untuk contoh yang ditentukan.**  

```
Send-EC2InstanceStatus -Instance i-12345678 -Status impaired -ReasonCode unresponsive
```
+  Untuk detail API, lihat [ReportInstanceStatus](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------