CmdID

CmdID / aws / aws ssm

aws ssm get-patch-baseline

Retrieves information about a patch baseline. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To display a patch baseline

The following get-patch-baseline example retrieves the details for the specified patch baseline.

aws ssm get-patch-baseline --baseline-id "pb-0123456789abcdef0"Identify
--baseline-idThe ID of the patch baseline to retrieve.
Its output, shortened
{
    "BaselineId": "pb-0123456789abcdef0",
    "Name": "WindowsPatching",
    "OperatingSystem": "WINDOWS",
    "GlobalFilters": {
        "PatchFilters": []
    },
    "ApprovalRules": {
        "PatchRules": [
            {
                "PatchFilterGroup": {
                    "PatchFilters": [
                        {
                            "Key": "PRODUCT",
                            "Values": [
                                "WindowsServer2016"
                            ]
                        }
                    ]
                },
                "ComplianceLevel": "CRITICAL",
                "ApproveAfterDays": 0,
                "EnableNonSecurity": false
            }
        ]
    },
    "ApprovedPatches": [],
    "ApprovedPatchesComplianceLevel": "UNSPECIFIED",
    "ApprovedPatchesEnableNonSecurity": false,
    "RejectedPatches": [],
… 10 more lines

For more information, see About Patch Baselines in the AWS Systems Manager User Guide.

Options

1 in the AWS CLI reference
--baseline-idThe ID of the patch baseline to retrieve.