Skip to content

/AWS1/CL_FMS=>PUTAPPSLIST()

About PutAppsList

Creates an Firewall Manager applications list.

Method Signature

IMPORTING

Required arguments:

io_appslist TYPE REF TO /AWS1/CL_FMSAPPSLISTDATA /AWS1/CL_FMSAPPSLISTDATA

The details of the Firewall Manager applications list to be created.

Optional arguments:

it_taglist TYPE /AWS1/CL_FMSTAG=>TT_TAGLIST TT_TAGLIST

The tags associated with the resource.

RETURNING

oo_output TYPE REF TO /aws1/cl_fmsputappslistrsp /AWS1/CL_FMSPUTAPPSLISTRSP

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_fms~putappslist(
  io_appslist = new /aws1/cl_fmsappslistdata(
    it_appslist = VALUE /aws1/cl_fmsapp=>tt_appslist(
      (
        new /aws1/cl_fmsapp(
          iv_appname = |string|
          iv_port = 123
          iv_protocol = |string|
        )
      )
    )
    it_previousappslist = VALUE /aws1/cl_fmsapp=>tt_previousappslist(
      (
        VALUE /aws1/cl_fmsapp=>ts_previousappslist_maprow(
          value = VALUE /aws1/cl_fmsapp=>tt_appslist(
            (
              new /aws1/cl_fmsapp(
                iv_appname = |string|
                iv_port = 123
                iv_protocol = |string|
              )
            )
          )
          key = |string|
        )
      )
    )
    iv_createtime = '20150101000000.0000000'
    iv_lastupdatetime = '20150101000000.0000000'
    iv_listid = |string|
    iv_listname = |string|
    iv_listupdatetoken = |string|
  )
  it_taglist = VALUE /aws1/cl_fmstag=>tt_taglist(
    (
      new /aws1/cl_fmstag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_appslistdata = lo_result->get_appslist( ).
  IF lo_appslistdata IS NOT INITIAL.
    lv_listid = lo_appslistdata->get_listid( ).
    lv_resourcename = lo_appslistdata->get_listname( ).
    lv_updatetoken = lo_appslistdata->get_listupdatetoken( ).
    lv_timestamp = lo_appslistdata->get_createtime( ).
    lv_timestamp = lo_appslistdata->get_lastupdatetime( ).
    LOOP AT lo_appslistdata->get_appslist( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_resourcename = lo_row_1->get_appname( ).
        lv_protocol = lo_row_1->get_protocol( ).
        lv_ipportnumber = lo_row_1->get_port( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_appslistdata->get_previousappslist( ) into ls_row_2.
      lv_key = ls_row_2-key.
      LOOP AT ls_row_2-value into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_resourcename = lo_row_1->get_appname( ).
          lv_protocol = lo_row_1->get_protocol( ).
          lv_ipportnumber = lo_row_1->get_port( ).
        ENDIF.
      ENDLOOP.
    ENDLOOP.
  ENDIF.
  lv_resourcearn = lo_result->get_appslistarn( ).
ENDIF.