CmdID

CmdID / aws / aws ssm

aws ssm describe-association-executions

Views all executions for a specific association ID. AWS CLI reference

2 examples 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

Example 1: To get details of all executions for an association

The following describe-association-executions example describes all executions of the specified association.

aws ssm describe-association-executions --association-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--association-idThe association ID for which you want to view execution history details.
Its output
{
    "AssociationExecutions": [
        {
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "AssociationVersion": "1",
            "ExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "Status": "Success",
            "DetailedStatus": "Success",
            "CreatedTime": 1550505827.119,
            "ResourceCountByStatus": "{Success=1}"
        },
        {
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "AssociationVersion": "1",
            "ExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "Status": "Success",
            "DetailedStatus": "Success",
            "CreatedTime": 1550505536.843,
            "ResourceCountByStatus": "{Success=1}"
        }
    ]
}

For more information, see Viewing association histories in the AWS Systems Manager User Guide.

Example 2: To get details of all executions for an association after a specific date and time

The following describe-association-executions example describes all executions of an association after the specified date and time.

aws ssm describe-association-executions --association-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --filters "Key=CreatedTime,Value=2019-02-18T16:00:00Z,Type=GREATER_THAN"Identify
--association-idThe association ID for which you want to view execution history details.
--filtersFilters for the request.
Its output
{
    "AssociationExecutions": [
        {
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "AssociationVersion": "1",
            "ExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "Status": "Success",
            "DetailedStatus": "Success",
            "CreatedTime": 1550505827.119,
            "ResourceCountByStatus": "{Success=1}"
        },
        {
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "AssociationVersion": "1",
            "ExecutionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "Status": "Success",
            "DetailedStatus": "Success",
            "CreatedTime": 1550505536.843,
            "ResourceCountByStatus": "{Success=1}"
        }
    ]
}

For more information, see Viewing association histories in the AWS Systems Manager User Guide.

Options

4 in the AWS CLI reference
--association-idThe association ID for which you want to view execution history details.
--filtersFilters for the request.
--max-resultsThe maximum number of items to return for this call.
--next-tokenA token to start the list.