CmdID

CmdID / aws / aws ssm

aws ssm get-maintenance-window-execution-task

Retrieves the details about a specific task run as part of a maintenance window execution. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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 "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --task-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"Identify
--window-execution-idThe ID of the maintenance window execution that includes the task.
--task-idThe ID of the specific task execution in the maintenance window task that should be retrieved.
Its output, shortened
{
    "WindowExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "TaskExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
    "TaskArn": "AWS-RunPatchBaseline",
    "ServiceRole": "arn:aws:iam::123456789012:role/aws-service-role/ssm.amazonaws.com/AWSServiceRoleForAmazonSSM",
    "Type": "RUN_COMMAND",
    "TaskParameters": [
        {
            "BaselineOverride": {
                "Values": [
                    ""
                ]
            },
            "InstallOverrideList": {
                "Values": [
                    ""
                ]
            },
            "Operation": {
                "Values": [
                    "Scan"
                ]
            },
            "RebootOption": {
                "Values": [
                    "RebootIfNeeded"
                ]
            },
            "SnapshotId": {
                "Values": [
… 19 more lines

For more information, see View information about tasks and task executions (AWS CLI) in the AWS Systems Manager User Guide.

Options

2 in the AWS CLI reference
--task-idThe ID of the specific task execution in the maintenance window task that should be retrieved.
--window-execution-idThe ID of the maintenance window execution that includes the task.