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: //usr/share/doc/awscli/examples/ssm/get-maintenance-window-execution-task.rst
**To get information about a maintenance window task execution**

The following ``get-maintenance-window-execution-task`` example lists information about a task that is part of the specified maintenance window execution. ::

    aws ssm get-maintenance-window-execution-task \
        --window-execution-id "518d5565-5969-4cca-8f0e-da3b2EXAMPLE" \
        --task-id "ac0c6ae1-daa3-4a89-832e-d3845EXAMPLE"

Output::

    {
        "WindowExecutionId": "518d5565-5969-4cca-8f0e-da3b2EXAMPLE",
        "TaskExecutionId": "ac0c6ae1-daa3-4a89-832e-d3845EXAMPLE",
        "TaskArn": "AWS-RunPatchBaseline",
        "ServiceRole": "arn:aws:iam::111222333444:role/aws-service-role/ssm.amazonaws.com/AWSServiceRoleForAmazonSSM",
        "Type": "RUN_COMMAND",
        "TaskParameters": [
            {
                "BaselineOverride": {
                    "Values": [
                        ""
                    ]
                },
                "InstallOverrideList": {
                    "Values": [
                        ""
                    ]
                },
                "Operation": {
                    "Values": [
                        "Scan"
                    ]
                },
                "RebootOption": {
                    "Values": [
                        "RebootIfNeeded"
                    ]
                },
                "SnapshotId": {
                    "Values": [
                        "{{ aws:ORCHESTRATION_ID }}"
                    ]
                },
                "aws:InstanceId": {
                    "Values": [
                        "i-02573cafcfEXAMPLE",
                        "i-0471e04240EXAMPLE",
                        "i-07782c72faEXAMPLE"
                    ]
                }
            }
        ],
        "Priority": 1,
        "MaxConcurrency": "1",
        "MaxErrors": "3",
        "Status": "SUCCESS",
        "StartTime": "2021-08-04T11:45:35.088000-07:00",
        "EndTime": "2021-08-04T11:53:09.079000-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*.