将 RegisterPatchBaselineForPatchGroup
与 CLI 配合使用
以下代码示例演示如何使用 RegisterPatchBaselineForPatchGroup
。
- CLI
-
- Amazon CLI
-
为补丁组注册补丁基准
以下
register-patch-baseline-for-patch-group
示例为补丁组注册补丁基准。aws ssm register-patch-baseline-for-patch-group \ --baseline-id
"pb-045f10b4f382baeda"
\ --patch-group"Production"
输出:
{ "BaselineId": "pb-045f10b4f382baeda", "PatchGroup": "Production" }
有关更多信息,请参阅《Amazon Systems Manager 用户指南》中的创建补丁组 <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-patch-group-tagging.html>__ 和将补丁组添加到补丁基准。
-
有关 API 详细信息,请参阅《Amazon CLI Command Reference》中的 RegisterPatchBaselineForPatchGroup
。
-
- PowerShell
-
- Tools for PowerShell V4
-
示例 1:此示例为补丁组注册补丁基准。
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"
输出:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production
-
有关 API 详细信息,请参阅《Amazon Tools for PowerShell Cmdlet 参考(V4)》中的 RegisterPatchBaselineForPatchGroup。
-
- Tools for PowerShell V5
-
示例 1:此示例为补丁组注册补丁基准。
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"
输出:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production
-
有关 API 详细信息,请参阅《Amazon Tools for PowerShell Cmdlet 参考 (V5)》中的 RegisterPatchBaselineForPatchGroup。
-
有关 Amazon SDK 开发人员指南和代码示例的完整列表,请参阅 将此服务与 Amazon SDK 结合使用。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。
RegisterDefaultPatchBaseline
RegisterTargetWithMaintenanceWindow