aws ssm describe-available-patches
Lists all patches eligible to be included in a patch baseline. AWS CLI reference
2 examples 3 options Its page in the AWS CLI reference
Examples
Example 1: To get available patches
The following describe-available-patches example retrieves details about all available patches for Windows Server 2019 that have a MSRC severity of Critical.
aws ssm describe-available-patches --filters "Key=PRODUCT,Values=WindowsServer2019" "Key=MSRC_SEVERITY,Values=Critical"Identify--filtersEach element in the array is a structure containing a key-value pair.Its output, shortened
{
"Patches": [
{
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"ReleaseDate": 1544047205.0,
"Title": "2018-11 Update for Windows Server 2019 for x64-based Systems (KB4470788)",
"Description": "Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.",
"ContentUrl": "https://support.microsoft.com/en-us/kb/4470788",
"Vendor": "Microsoft",
"ProductFamily": "Windows",
"Product": "WindowsServer2019",
"Classification": "SecurityUpdates",
"MsrcSeverity": "Critical",
"KbNumber": "KB4470788",
"MsrcNumber": "",
"Language": "All"
},
{
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"ReleaseDate": 1549994410.0,
"Title": "2019-02 Security Update for Adobe Flash Player for Windows Server 2019 for x64-based Systems (KB4487038)",
"Description": "A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.",
"ContentUrl": "https://support.microsoft.com/en-us/kb/4487038",
"Vendor": "Microsoft",
"ProductFamily": "Windows",
"Product": "WindowsServer2019",
"Classification": "SecurityUpdates",
"MsrcSeverity": "Critical",
"KbNumber": "KB4487038",
"MsrcNumber": "",
… 4 more linesExample 2: To get details of a specific patch
The following describe-available-patches example retrieves details about the specified patch.
aws ssm describe-available-patches --filters "Key=PATCH_ID,Values=KB4480979"Identify--filtersEach element in the array is a structure containing a key-value pair.Its output
{
"Patches": [
{
"Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
"ReleaseDate": 1546970408.0,
"Title": "2019-01 Security Update for Adobe Flash Player for Windows Server 2016 for x64-based Systems (KB4480979)",
"Description": "A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.",
"ContentUrl": "https://support.microsoft.com/en-us/kb/4480979",
"Vendor": "Microsoft",
"ProductFamily": "Windows",
"Product": "WindowsServer2016",
"Classification": "SecurityUpdates",
"MsrcSeverity": "Critical",
"KbNumber": "KB4480979",
"MsrcNumber": "",
"Language": "All"
}
]
}For more information, see How Patch Manager Operations Work in the AWS Systems Manager User Guide.
Options
--filtersEach element in the array is a structure containing a key-value pair.--max-resultsThe maximum number of patches to return (per page).--next-tokenThe token for the next set of items to return.