HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/ssm/describe-instance-patch-states.rst
**To get the patch summary states for instances**

The following ``describe-instance-patch-states`` example retrieves details about the patch summary states for the specified instance. ::

    aws ssm describe-instance-patch-states \
        --instance-ids "i-1234567890abcdef0"

Output::

    {
        "InstancePatchStates": [
            {
                "InstanceId": "i-1234567890abcdef0",
                "PatchGroup": "",
                "BaselineId": "pb-0713accee01234567",
                "SnapshotId": "521c3536-930c-4aa9-950e-01234567abcd",
                "OwnerInformation": "",
                "InstalledCount": 2,
                "InstalledOtherCount": 12,
                "InstalledRejectedCount": 0,
                "MissingCount": 1,
                "FailedCount": 0,
                "NotApplicableCount": 675,
                "OperationStartTime": 1548438382.462,
                "OperationEndTime": 1548438392.176,
                "Operation": "Scan"
            }
        ]
    }

For more information, see `About Patch Compliance <https://docs.aws.amazon.com/systems-manager/latest/userguide/about-patch-compliance.html>`__ in the *AWS Systems Manager User Guide*.