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
Examples
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 linesFor more information, see About Patch Baselines in the AWS Systems Manager User Guide.
Options
--baseline-idThe ID of the patch baseline to retrieve.