Skip to content

/AWS1/CL_IOX=>LISTMANAGEDTHINGS()

About ListManagedThings

Listing all managed things with provision for filters.

Method Signature

IMPORTING

Optional arguments:

iv_ownerfilter TYPE /AWS1/IOXOWNER /AWS1/IOXOWNER

Filter on device owners when listing managed things.

iv_credentiallockerfilter TYPE /AWS1/IOXCREDENTIALLOCKERID /AWS1/IOXCREDENTIALLOCKERID

Filter on a credential locker for a managed thing.

iv_rolefilter TYPE /AWS1/IOXROLE /AWS1/IOXROLE

Filter on the type of device used. This will be the Amazon Web Services hub controller, cloud device, or IoT device.

iv_parentcontrolleridfilter TYPE /AWS1/IOXPARENTCONTROLLERID /AWS1/IOXPARENTCONTROLLERID

Filter on a parent controller id for a managed thing.

iv_connectorpolicyidfilter TYPE /AWS1/IOXCONNECTORPOLICYID /AWS1/IOXCONNECTORPOLICYID

Filter on a connector policy id for a managed thing.

iv_connectordstidfilter TYPE /AWS1/IOXCONNECTORDSTID /AWS1/IOXCONNECTORDSTID

Filter managed things by the connector destination ID they are associated with.

iv_connectordeviceidfilter TYPE /AWS1/IOXCONNECTORDEVICEID /AWS1/IOXCONNECTORDEVICEID

Filter managed things by the connector device ID they are associated with. When specified, only managed things with this connector device ID will be returned.

iv_serialnumberfilter TYPE /AWS1/IOXSERIALNUMBER /AWS1/IOXSERIALNUMBER

Filter on the serial number of the device.

iv_provisioningstatusfilter TYPE /AWS1/IOXPROVISIONINGSTATUS /AWS1/IOXPROVISIONINGSTATUS

Filter on the status of the device.

iv_nexttoken TYPE /AWS1/IOXNEXTTOKEN /AWS1/IOXNEXTTOKEN

A token that can be used to retrieve the next set of results.

iv_maxresults TYPE /AWS1/IOXMAXRESULTS /AWS1/IOXMAXRESULTS

The maximum number of results to return at one time.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioxlistmanagedthgsrsp /AWS1/CL_IOXLISTMANAGEDTHGSRSP

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_iox~listmanagedthings(
  iv_connectordeviceidfilter = |string|
  iv_connectordstidfilter = |string|
  iv_connectorpolicyidfilter = |string|
  iv_credentiallockerfilter = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_ownerfilter = |string|
  iv_parentcontrolleridfilter = |string|
  iv_provisioningstatusfilter = |string|
  iv_rolefilter = |string|
  iv_serialnumberfilter = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_items( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_managedthingid = lo_row_1->get_id( ).
      lv_managedthingarn = lo_row_1->get_arn( ).
      lv_advertisedproductid = lo_row_1->get_advertisedproductid( ).
      lv_brand = lo_row_1->get_brand( ).
      lv_classification = lo_row_1->get_classification( ).
      lv_connectordeviceid = lo_row_1->get_connectordeviceid( ).
      lv_connectorpolicyid = lo_row_1->get_connectorpolicyid( ).
      lv_connectordestinationid = lo_row_1->get_connectordestinationid( ).
      lv_model = lo_row_1->get_model( ).
      lv_name = lo_row_1->get_name( ).
      lv_owner = lo_row_1->get_owner( ).
      lv_credentiallockerid = lo_row_1->get_credentiallockerid( ).
      lv_parentcontrollerid = lo_row_1->get_parentcontrollerid( ).
      lv_provisioningstatus = lo_row_1->get_provisioningstatus( ).
      lv_role = lo_row_1->get_role( ).
      lv_serialnumber = lo_row_1->get_serialnumber( ).
      lv_createdat = lo_row_1->get_createdat( ).
      lv_createdat = lo_row_1->get_updatedat( ).
      lv_setupat = lo_row_1->get_activatedat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.