Sono disponibili altri esempi AWS SDK nel repository AWS Doc SDK
Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Utilizzare RegisterPatchBaselineForPatchGroup con una CLI
Gli esempi di codice seguenti mostrano come utilizzare RegisterPatchBaselineForPatchGroup.
- CLI
-
- AWS CLI
-
Per registrare una baseline delle patch per un gruppo di patch
L'esempio seguente
register-patch-baseline-for-patch-groupregistra una baseline delle patch per un gruppo di patch.aws ssm register-patch-baseline-for-patch-group \ --baseline-id"pb-045f10b4f382baeda"\ --patch-group"Production"Output:
{ "BaselineId": "pb-045f10b4f382baeda", "PatchGroup": "Production" }Per ulteriori informazioni, vedere Create a Patch Group < https://docs.aws.amazon.com/systems-manager/ latest/userguide/sysman - patch-group-tagging .html>__ e Aggiungere un gruppo di patch a una Patch Baseline nella Systems Manager AWS User Guide.
-
Per i dettagli sull'API, vedere in Command Reference. RegisterPatchBaselineForPatchGroup
AWS CLI
-
- PowerShell
-
- Strumenti per PowerShell V4
-
Esempio 1: questo esempio registra una baseline delle patch per un gruppo di patch.
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"Output:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production-
Per i dettagli sull'API, vedere RegisterPatchBaselineForPatchGroupin AWS Strumenti per PowerShell Cmdlet Reference (V4).
-
- Strumenti per V5 PowerShell
-
Esempio 1: questo esempio registra una baseline delle patch per un gruppo di patch.
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"Output:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production-
Per i dettagli sull'API, vedere RegisterPatchBaselineForPatchGroupin AWS Strumenti per PowerShell Cmdlet Reference (V5).
-