CmdID

CmdID / aws / aws iot

aws iot list-thing-groups

List the thing groups in your account. AWS CLI reference

1 example 5 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 thing groups defined in your AWS account

The following list-thing-groups example lists all thing groups defined in your AWS account.

aws iot list-thing-groupsIdentify
Its output
{
    "thingGroups": [
        {
            "groupName": "HalogenBulbs",
            "groupArn": "arn:aws:iot:us-west-2:123456789012:thinggroup/HalogenBulbs"
        },
        {
            "groupName": "LightBulbs",
            "groupArn": "arn:aws:iot:us-west-2:123456789012:thinggroup/LightBulbs"
        }
    ]
}

For more information, see Thing Groups in the AWS IoT Developers Guide.

Options

5 in the AWS CLI reference
--max-resultsThe maximum number of results to return at one time.
--name-prefix-filterA filter that limits the results to those with the specified name prefix.
--next-tokenTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.
--parent-groupA filter that limits the results to those with the specified parent group.
--recursiveIf true, return child groups as well.