IoT / Client / list_things_in_thing_group

list_things_in_thing_group#

IoT.Client.list_things_in_thing_group(**kwargs)#

Lists the things in the specified group.

Requires permission to access the ListThingsInThingGroup action.

See also: AWS API Documentation

Request Syntax

response = client.list_things_in_thing_group(
    thingGroupName='string',
    recursive=True|False,
    nextToken='string',
    maxResults=123
)
Parameters:
  • thingGroupName (string) –

    [REQUIRED]

    The thing group name.

  • recursive (boolean) – When true, list things in this thing group and in all child groups as well.

  • nextToken (string) – To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

  • maxResults (integer) – The maximum number of results to return at one time.

Return type:

dict

Returns:

Response Syntax

{
    'things': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • things (list) –

      The things in the specified thing group.

      • (string) –

    • nextToken (string) –

      The token to use to get the next set of results, or null if there are no additional results.

Exceptions

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.InternalFailureException

  • IoT.Client.exceptions.ResourceNotFoundException

  • IoT.Client.exceptions.ThrottlingException