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
Examples
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-groupsIdentifyIts 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
--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.