CmdID

CmdID / aws / aws ssm

aws ssm list-association-versions

Retrieves all versions of an association for a specific association ID. AWS CLI reference

1 example 3 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 versions of an association for a specific association ID

The following list-association-versions example lists all versions of the specified associations.

aws ssm list-association-versions --association-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--association-idThe association ID for which you want to view all versions.
Its output
{
"AssociationVersions": [
        {
            "AssociationId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "AssociationVersion": "1",
            "CreatedDate": 1550505536.726,
            "Name": "AWS-UpdateSSMAgent",
            "Parameters": {
                "allowDowngrade": [
                    "false"
                ],
                "version": [
                    ""
                ]
            },
            "Targets": [
                {
                    "Key": "InstanceIds",
                    "Values": [
                        "i-1234567890abcdef0"
                    ]
                }
            ],
            "ScheduleExpression": "cron(0 00 12 ? * SUN *)",
            "AssociationName": "UpdateSSMAgent"
        }
    ]
}

For more information, see Working with associations in Systems Manager in the AWS Systems Manager User Guide.

Options

3 in the AWS CLI reference
--association-idThe association ID for which you want to view all versions.
--max-resultsThe maximum number of items to return for this call.
--next-tokenA token to start the list.