CLI로 GetMaintenanceWindow 사용 - AWS Systems Manager

AWS Systems Manager Change Manager는 더 이상 신규 고객에게 공개되지 않습니다. 기존 고객은 정상적으로 서비스를 계속 이용할 수 있습니다. 자세한 내용은 AWS Systems Manager Change Manager 가용성 변경을 참조하세요.

CLI로 GetMaintenanceWindow 사용

다음 코드 예시는 GetMaintenanceWindow의 사용 방법을 보여 줍니다.

CLI
AWS CLI

유지 관리 기간에 대한 정보를 가져오는 방법

다음 get-maintenance-window 예제에서는 지정된 유지 관리 기간에 대한 세부 정보를 검색합니다.

aws ssm get-maintenance-window \ --window-id "mw-03eb9db428EXAMPLE"

결과:

{ "AllowUnassociatedTargets": true, "CreatedDate": 1515006912.957, "Cutoff": 1, "Duration": 6, "Enabled": true, "ModifiedDate": 2020-01-01T10:04:04.099Z, "Name": "My-Maintenance-Window", "Schedule": "rate(3 days)", "WindowId": "mw-03eb9db428EXAMPLE", "NextExecutionTime": "2020-02-25T00:08:15.099Z" }

자세한 내용은 AWS Systems Manager 사용 설명서의 유지 관리 기간에 대한 정보 보기(AWS CLI)를 참조하세요.

PowerShell
Tools for PowerShell V4

예제 1: 이 예제에서는 유지 관리 기간에 대한 세부 정보를 가져옵니다.

Get-SSMMaintenanceWindow -WindowId "mw-03eb9db42890fb82d"

출력:

AllowUnassociatedTargets : False CreatedDate : 2/20/2017 6:14:05 PM Cutoff : 1 Duration : 2 Enabled : True ModifiedDate : 2/20/2017 6:14:05 PM Name : TestMaintWin Schedule : cron(0 */30 * * * ? *) WindowId : mw-03eb9db42890fb82d
  • API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V4)GetMaintenanceWindow를 참조하세요.

Tools for PowerShell V5

예제 1: 이 예제에서는 유지 관리 기간에 대한 세부 정보를 가져옵니다.

Get-SSMMaintenanceWindow -WindowId "mw-03eb9db42890fb82d"

출력:

AllowUnassociatedTargets : False CreatedDate : 2/20/2017 6:14:05 PM Cutoff : 1 Duration : 2 Enabled : True ModifiedDate : 2/20/2017 6:14:05 PM Name : TestMaintWin Schedule : cron(0 */30 * * * ? *) WindowId : mw-03eb9db42890fb82d
  • API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V5)GetMaintenanceWindow를 참조하세요.

AWS SDK 개발자 가이드 및 코드 예시의 전체 목록은 AWS SDK와 함께 이 서비스 사용 섹션을 참조하세요. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.