Skip to content

/AWS1/CL_IOT=>DESCRIBETHINGGROUP()

About DescribeThingGroup

Describe a thing group.

Requires permission to access the DescribeThingGroup action.

Method Signature

IMPORTING

Required arguments:

iv_thinggroupname TYPE /AWS1/IOTTHINGGROUPNAME /AWS1/IOTTHINGGROUPNAME

The name of the thing group.

RETURNING

oo_output TYPE REF TO /aws1/cl_iotdescrthinggrouprsp /AWS1/CL_IOTDESCRTHINGGROUPRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_iot~describethinggroup( |string| ).

This is an example of reading all possible response values

lv_thinggroupname = lo_result->get_thinggroupname( ).
lv_thinggroupid = lo_result->get_thinggroupid( ).
lv_thinggrouparn = lo_result->get_thinggrouparn( ).
lv_version = lo_result->get_version( ).
lv_thinggroupdescription = lo_thinggroupproperties->get_thinggroupdescription( ).
LOOP AT lo_attributepayload->get_attributes( ) into ls_row.
  lv_key = ls_row-key.
  lv_attributevalue = lo_value->get_value( ).
ENDLOOP.
lv_flag = lo_attributepayload->get_merge( ).
lv_thinggroupname = lo_thinggroupmetadata->get_parentgroupname( ).
LOOP AT lo_thinggroupmetadata->get_roottoparentthinggroups( ) into lo_row_1.
  lv_thinggroupname = lo_row_2->get_groupname( ).
  lv_thinggrouparn = lo_row_2->get_grouparn( ).
ENDLOOP.
lv_creationdate = lo_thinggroupmetadata->get_creationdate( ).
lv_indexname = lo_result->get_indexname( ).
lv_querystring = lo_result->get_querystring( ).
lv_queryversion = lo_result->get_queryversion( ).
lv_dynamicgroupstatus = lo_result->get_status( ).