

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 `DescribeUpdate` dengan CLI
<a name="eks_example_eks_DescribeUpdate_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`DescribeUpdate`.

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

**AWS CLI**  
**Contoh 1: Untuk menjelaskan pembaruan untuk klaster**  
`describe-update`Contoh berikut menjelaskan pembaruan untuk cluster bernama.  

```
aws eks describe-update \
    --name my-eks-cluster \
    --update-id 10bddb13-a71b-425a-b0a6-71cd03e59161
```
Output:  

```
{
    "update": {
        "id": "10bddb13-a71b-425a-b0a6-71cd03e59161",
        "status": "Successful",
        "type": "EndpointAccessUpdate",
        "params": [
            {
                "type": "EndpointPublicAccess",
                "value": "false"
            },
            {
                "type": "EndpointPrivateAccess",
                "value": "true"
            }
        ],
        "createdAt": "2024-03-14T10:01:26.297000-04:00",
        "errors": []
    }
}
```
Untuk informasi selengkapnya, lihat [Memperbarui versi Kubernetes klaster Amazon EKS di Panduan](https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html) Pengguna *Amazon EKS*.  
**Contoh 2: Untuk menjelaskan pembaruan untuk klaster**  
`describe-update`Contoh berikut menjelaskan pembaruan untuk cluster bernama.  

```
aws eks describe-update \
    --name my-eks-cluster \
    --update-id e4994991-4c0f-475a-a040-427e6da52966
```
Output:  

```
{
    "update": {
        "id": "e4994991-4c0f-475a-a040-427e6da52966",
        "status": "Successful",
        "type": "AssociateEncryptionConfig",
        "params": [
            {
                "type": "EncryptionConfig",
                "value": "[{\"resources\":[\"secrets\"],\"provider\":{\"keyArn\":\"arn:aws:kms:region-code:account:key/key\"}}]"
            }
        ],
        "createdAt": "2024-03-14T11:01:26.297000-04:00",
        "errors": []
    }
}
```
Untuk informasi selengkapnya, lihat [Memperbarui versi Kubernetes klaster Amazon EKS di Panduan](https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html) Pengguna *Amazon EKS*.  
**Contoh 3: Untuk menjelaskan pembaruan untuk klaster**  
`describe-update`Contoh berikut menjelaskan pembaruan untuk cluster bernama.  

```
aws eks describe-update \
    --name my-eks-cluster \
    --update-id b5f0ba18-9a87-4450-b5a0-825e6e84496f
```
Output:  

```
{
    "update": {
        "id": "b5f0ba18-9a87-4450-b5a0-825e6e84496f",
        "status": "Successful",
        "type": "VersionUpdate",
        "params": [
            {
                "type": "Version",
                "value": "1.29"
            },
            {
                "type": "PlatformVersion",
                "value": "eks.1"
            }
        ],
        "createdAt": "2024-03-14T12:05:26.297000-04:00",
        "errors": []
    }
}
```
Untuk informasi selengkapnya, lihat [Memperbarui versi Kubernetes klaster Amazon EKS di Panduan](https://docs.aws.amazon.com/eks/latest/userguide/update-cluster.html) Pengguna *Amazon EKS*.  
+  Untuk detail API, lihat [DescribeUpdate](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/describe-update.html)di *Referensi AWS CLI Perintah*. 

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

**Alat untuk PowerShell V4**  
**Contoh 1: Cmdlet ini menampilkan informasi deskriptif tentang pembaruan terhadap klaster Amazon EKS atau grup node terkelola terkait.**  

```
Get-EKSUpdate -Name "PROD" -UpdateId "ee708232-7d2e-4ed7-9270-d0b5176f0726"
```
**Output:**  

```
CreatedAt : 12/25/2019 5:03:07 PM
Errors    : {}
Id        : ee708232-7d2e-4ed7-9270-d0b5176f0726
Params    : {Amazon.EKS.Model.UpdateParam}
Status    : Successful
Type      : LoggingUpdate
```
+  Untuk detail API, lihat [DescribeUpdate](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Cmdlet ini menampilkan informasi deskriptif tentang pembaruan terhadap klaster Amazon EKS atau grup node terkelola terkait.**  

```
Get-EKSUpdate -Name "PROD" -UpdateId "ee708232-7d2e-4ed7-9270-d0b5176f0726"
```
**Output:**  

```
CreatedAt : 12/25/2019 5:03:07 PM
Errors    : {}
Id        : ee708232-7d2e-4ed7-9270-d0b5176f0726
Params    : {Amazon.EKS.Model.UpdateParam}
Status    : Successful
Type      : LoggingUpdate
```
+  Untuk detail API, lihat [DescribeUpdate](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------