CmdID

CmdID / aws / aws greengrass

aws greengrass list-group-versions

Lists the versions of a group. 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 the versions of a Greengrass group

The following list-group-versions example lists the versions of the specified Greengrass group.

aws greengrass list-group-versions --group-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--group-idThe ID of the Greengrass group.
Its output, shortened
{
    "Versions": [
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
            "CreationTimestamp": "2019-06-18T17:04:30.915Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
        },
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
            "CreationTimestamp": "2019-06-18T17:03:52.663Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
        },
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE44444",
            "CreationTimestamp": "2019-06-18T17:02:44.189Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE44444"
        },
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE55555",
            "CreationTimestamp": "2019-06-18T17:01:42.401Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Version": "a1b2c3d4-5678-90ab-cdef-EXAMPLE55555"
        },
        {
            "Arn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/versions/a1b2c3d4-5678-90ab-cdef-EXAMPLE66666",
            "CreationTimestamp": "2019-06-18T16:21:21.457Z",
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
… 4 more lines

For more information, see Overview of the AWS IoT Greengrass group object model in the AWS IoT Greengrass Version 1 Developer Guide.

Options

3 in the AWS CLI reference
--group-idThe ID of the Greengrass group.
--max-resultsThe maximum number of results to be returned per request.
--next-tokenThe token for the next set of results, or ''null'' if there are no additional results.