describe_thing_group
(**kwargs)¶Describe a thing group.
Requires permission to access the DescribeThingGroup action.
See also: AWS API Documentation
Request Syntax
response = client.describe_thing_group(
thingGroupName='string'
)
[REQUIRED]
The name of the thing group.
{
'thingGroupName': 'string',
'thingGroupId': 'string',
'thingGroupArn': 'string',
'version': 123,
'thingGroupProperties': {
'thingGroupDescription': 'string',
'attributePayload': {
'attributes': {
'string': 'string'
},
'merge': True|False
}
},
'thingGroupMetadata': {
'parentGroupName': 'string',
'rootToParentThingGroups': [
{
'groupName': 'string',
'groupArn': 'string'
},
],
'creationDate': datetime(2015, 1, 1)
},
'indexName': 'string',
'queryString': 'string',
'queryVersion': 'string',
'status': 'ACTIVE'|'BUILDING'|'REBUILDING'
}
Response Structure
The name of the thing group.
The thing group ID.
The thing group ARN.
The version of the thing group.
The thing group properties.
The thing group description.
The thing group attributes in JSON format.
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
Specifies whether the list of attributes provided in the AttributePayload
is merged with the attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing
with an empty attribute value.
Note
The merge
attribute is only valid when calling UpdateThing
or UpdateThingGroup
.
Thing group metadata.
The parent thing group name.
The root parent thing group.
The name and ARN of a group.
The group name.
The group ARN.
The UNIX timestamp of when the thing group was created.
The dynamic thing group index name.
The dynamic thing group search query string.
The dynamic thing group query version.
The dynamic thing group status.
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.ResourceNotFoundException