Retrieves the patch baseline that should be used for the specified patch group.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
get-patch-baseline-for-patch-group
--patch-group <value>
[--operating-system <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--cli-auto-prompt <value>]
--patch-group
(string)
The name of the patch group whose patch baseline should be retrieved.
--operating-system
(string)
Returns he operating system rule specified for patch groups using the patch baseline.
Possible values:
WINDOWS
AMAZON_LINUX
AMAZON_LINUX_2
UBUNTU
REDHAT_ENTERPRISE_LINUX
SUSE
CENTOS
ORACLE_LINUX
DEBIAN
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
--cli-auto-prompt
(boolean)
Automatically prompt for CLI input parameters.
See ‘aws help’ for descriptions of global parameters.
To display the patch baseline for a patch group
The following get-patch-baseline-for-patch-group
example retrieves details about the patch baseline for the specified patch group.
aws ssm get-patch-baseline-for-patch-group \
--patch-group "DEV"
Output:
{
"PatchGroup": "DEV",
"BaselineId": "pb-0123456789abcdef0",
"OperatingSystem": "WINDOWS"
}
For more information, see Create a Patch Group <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-patch-group-tagging.html>__ and Add a Patch Group to a Patch Baseline in the AWS Systems Manager User Guide.
BaselineId -> (string)
The ID of the patch baseline that should be used for the patch group.
PatchGroup -> (string)
The name of the patch group.
OperatingSystem -> (string)
The operating system rule specified for patch groups using the patch baseline.