Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh SDK AWS Doc
Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Gunakan RegisterPatchBaselineForPatchGroup dengan CLI
Contoh kode berikut menunjukkan cara menggunakanRegisterPatchBaselineForPatchGroup.
- CLI
-
- AWS CLI
-
Untuk mendaftarkan baseline patch untuk grup patch
register-patch-baseline-for-patch-groupContoh berikut mendaftarkan baseline patch untuk grup patch.aws ssm register-patch-baseline-for-patch-group \ --baseline-id"pb-045f10b4f382baeda"\ --patch-group"Production"Output:
{ "BaselineId": "pb-045f10b4f382baeda", "PatchGroup": "Production" }Untuk informasi selengkapnya, lihat Membuat Grup Patch < https://docs.aws.amazon.com/systems-manager/ latest/userguide/sysman - patch-group-tagging .html>__ dan Menambahkan Grup Patch ke Garis Dasar Patch di Panduan Pengguna Systems Manager AWS .
-
Untuk detail API, lihat RegisterPatchBaselineForPatchGroup
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell V4
-
Contoh 1: Contoh ini mendaftarkan baseline patch untuk grup patch.
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"Output:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production-
Untuk detail API, lihat RegisterPatchBaselineForPatchGroupdi Referensi Alat AWS untuk PowerShell Cmdlet (V4).
-
- Alat untuk PowerShell V5
-
Contoh 1: Contoh ini mendaftarkan baseline patch untuk grup patch.
Register-SSMPatchBaselineForPatchGroup -BaselineId "pb-03da896ca3b68b639" -PatchGroup "Production"Output:
BaselineId PatchGroup ---------- ---------- pb-03da896ca3b68b639 Production-
Untuk detail API, lihat RegisterPatchBaselineForPatchGroupdi Referensi Alat AWS untuk PowerShell Cmdlet (V5).
-