HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/ssm/describe-maintenance-window-executions.rst
**Example 1: To list all executions for a maintenance window**

The following ``describe-maintenance-window-executions`` example lists all of the executions for the specified maintenance window. ::

    aws ssm describe-maintenance-window-executions \
        --window-id "mw-ab12cd34eEXAMPLE"

Output::

    {
        "WindowExecutions": [
            {
                "WindowId": "mw-ab12cd34eEXAMPLE",
                "WindowExecutionId": "6027b513-64fe-4cf0-be7d-1191aEXAMPLE",
                "Status": "IN_PROGRESS",
                "StartTime": "2021-08-04T11:00:00.000000-07:00"
                
            },
            {            
                "WindowId": "mw-ab12cd34eEXAMPLE",
                "WindowExecutionId": "ff75b750-4834-4377-8f61-b3cadEXAMPLE",
                "Status": "SUCCESS",
                "StartTime": "2021-08-03T11:00:00.000000-07:00",
                "EndTime": "2021-08-03T11:37:21.450000-07:00"
            },
            {            
                "WindowId": "mw-ab12cd34eEXAMPLE",
                "WindowExecutionId": "9fac7dd9-ff21-42a5-96ad-bbc4bEXAMPLE",
                "Status": "FAILED",
                "StatusDetails": "One or more tasks in the orchestration failed.",
                "StartTime": "2021-08-02T11:00:00.000000-07:00",
                "EndTime": "2021-08-02T11:22:36.190000-07:00"
            }
        ]
    }

**Example 2: To list all executions for a maintenance window before a specified date**

The following ``describe-maintenance-window-executions`` example lists all of the executions for the specified maintenance window before the specified date. ::

    aws ssm describe-maintenance-window-executions \
        --window-id "mw-ab12cd34eEXAMPLE" \
        --filters "Key=ExecutedBefore,Values=2021-08-03T00:00:00Z"

Output::

    {
        "WindowExecutions": [
            {            
            "WindowId": "mw-ab12cd34eEXAMPLE",
            "WindowExecutionId": "9fac7dd9-ff21-42a5-96ad-bbc4bEXAMPLE",
            "Status": "FAILED",
            "StatusDetails": "One or more tasks in the orchestration failed.",
            "StartTime": "2021-08-02T11:00:00.000000-07:00",
            "EndTime": "2021-08-02T11:22:36.190000-07:00"
        }
        ]
    }

**Example 3: To list all executions for a maintenance window after a specified date**

The following ``describe-maintenance-window-executions`` example lists all of the executions for the specified maintenance window after the specified date. ::

    aws ssm describe-maintenance-window-executions \
        --window-id "mw-ab12cd34eEXAMPLE" \
        --filters "Key=ExecutedAfter,Values=2021-08-04T00:00:00Z"

Output::

    {
        "WindowExecutions": [
            {
            "WindowId": "mw-ab12cd34eEXAMPLE",
            "WindowExecutionId": "6027b513-64fe-4cf0-be7d-1191aEXAMPLE",
            "Status": "IN_PROGRESS",
            "StartTime": "2021-08-04T11:00:00.000000-07:00"
            }
        ]
    }

For more information, see `View information about tasks and task executions (AWS CLI)  <https://docs.aws.amazon.com/systems-manager/latest/userguide/mw-cli-tutorial-task-info.html>`__ in the *AWS Systems Manager User Guide*.