Skip to content

/AWS1/CL_IOG=>GETSYSTEMINSTANCE()

About GetSystemInstance

Gets a system instance.

Method Signature

IMPORTING

Required arguments:

iv_id TYPE /AWS1/IOGURN /AWS1/IOGURN

The ID of the system deployment instance. This value is returned by CreateSystemInstance.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:deployment:DEPLOYMENTNAME

RETURNING

oo_output TYPE REF TO /aws1/cl_ioggetsysteminstrsp /AWS1/CL_IOGGETSYSTEMINSTRSP

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_iog~getsysteminstance( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_systeminstancedescripti = lo_result->get_description( ).
  IF lo_systeminstancedescripti IS NOT INITIAL.
    lo_systeminstancesummary = lo_systeminstancedescripti->get_summary( ).
    IF lo_systeminstancesummary IS NOT INITIAL.
      lv_urn = lo_systeminstancesummary->get_id( ).
      lv_arn = lo_systeminstancesummary->get_arn( ).
      lv_systeminstancedeploymen = lo_systeminstancesummary->get_status( ).
      lv_deploymenttarget = lo_systeminstancesummary->get_target( ).
      lv_groupname = lo_systeminstancesummary->get_greengrassgroupname( ).
      lv_timestamp = lo_systeminstancesummary->get_createdat( ).
      lv_timestamp = lo_systeminstancesummary->get_updatedat( ).
      lv_greengrassgroupid = lo_systeminstancesummary->get_greengrassgroupid( ).
      lv_greengrassgroupversioni = lo_systeminstancesummary->get_greengrassgroupversionid( ).
    ENDIF.
    lo_definitiondocument = lo_systeminstancedescripti->get_definition( ).
    IF lo_definitiondocument IS NOT INITIAL.
      lv_definitionlanguage = lo_definitiondocument->get_language( ).
      lv_definitiontext = lo_definitiondocument->get_text( ).
    ENDIF.
    lv_s3bucketname = lo_systeminstancedescripti->get_s3bucketname( ).
    lo_metricsconfiguration = lo_systeminstancedescripti->get_metricsconfiguration( ).
    IF lo_metricsconfiguration IS NOT INITIAL.
      lv_enabled = lo_metricsconfiguration->get_cloudmetricenabled( ).
      lv_rolearn = lo_metricsconfiguration->get_metricrulerolearn( ).
    ENDIF.
    lv_version = lo_systeminstancedescripti->get_vldtdnamespaceversion( ).
    LOOP AT lo_systeminstancedescripti->get_vldtddependencyrevisions( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_urn = lo_row_1->get_id( ).
        lv_version = lo_row_1->get_revisionnumber( ).
      ENDIF.
    ENDLOOP.
    lv_rolearn = lo_systeminstancedescripti->get_flowactionsrolearn( ).
  ENDIF.
ENDIF.