AWS 문서 AWS SDK SDK 예제
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
GetMaintenanceWindow
OR와 함께 사용 AWS SDK CLI
다음 코드 예제는 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) 를 참조하십시오.
-
자세한 API 내용은 AWS CLI 명령 GetMaintenanceWindow
참조를 참조하십시오.
-
- PowerShell
-
- 에 대한 도구 PowerShell
-
예제 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 참조를 참조하십시오 GetMaintenanceWindow.
-
GetInventorySchema
GetMaintenanceWindowExecution