CmdID

CmdID / aws / aws ssm

aws ssm describe-maintenance-windows-for-target

Retrieves information about the maintenance window targets or tasks that a managed node is associated with. AWS CLI reference

1 example 4 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 list all maintenance windows associated with a specific instance

The following describe-maintenance-windows-for-target example lists the maintenance windows that have targets or tasks associated with the specified instance.

aws ssm describe-maintenance-windows-for-target --targets Key=InstanceIds,Values=i-1234567890EXAMPLE --resource-type INSTANCEIdentify
--targetsThe managed node ID or key-value pair to retrieve information about.
--resource-typeThe type of resource you want to retrieve information about.
Its output
{
    "WindowIdentities": [
        {
            "WindowId": "mw-0c5ed765acEXAMPLE",
            "Name": "My-First-Maintenance-Window"
        }
    ]
}

For more information, see View Information About Maintenance Windows (AWS CLI) in the AWS Systems Manager User Guide.

Options

4 in the AWS CLI reference
--max-resultsThe maximum number of items to return for this call.
--next-tokenThe token for the next set of items to return.
--resource-typeThe type of resource you want to retrieve information about.
--targetsThe managed node ID or key-value pair to retrieve information about.