Skip to content

/AWS1/CL_NWF=>DESCRIBEFLOWOPERATION()

About DescribeFlowOperation

Returns key information about a specific flow operation.

Method Signature

IMPORTING

Required arguments:

iv_firewallarn TYPE /AWS1/NWFRESOURCEARN /AWS1/NWFRESOURCEARN

The Amazon Resource Name (ARN) of the firewall.

iv_flowoperationid TYPE /AWS1/NWFFLOWOPERATIONID /AWS1/NWFFLOWOPERATIONID

A unique identifier for the flow operation. This ID is returned in the responses to start and list commands. You provide to describe commands.

Optional arguments:

iv_availabilityzone TYPE /AWS1/NWFAVAILABILITYZONE /AWS1/NWFAVAILABILITYZONE

The ID of the Availability Zone where the firewall is located. For example, us-east-2a.

Defines the scope a flow operation. You can use up to 20 filters to configure a single flow operation.

iv_vpcendpointassociationarn TYPE /AWS1/NWFRESOURCEARN /AWS1/NWFRESOURCEARN

The Amazon Resource Name (ARN) of a VPC endpoint association.

iv_vpcendpointid TYPE /AWS1/NWFVPCENDPOINTID /AWS1/NWFVPCENDPOINTID

A unique identifier for the primary endpoint associated with a firewall.

RETURNING

oo_output TYPE REF TO /aws1/cl_nwfdescrflowoprsp /AWS1/CL_NWFDESCRFLOWOPRSP

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_nwf~describeflowoperation(
  iv_availabilityzone = |string|
  iv_firewallarn = |string|
  iv_flowoperationid = |string|
  iv_vpcendpointassociationarn = |string|
  iv_vpcendpointid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_resourcearn = lo_result->get_firewallarn( ).
  lv_availabilityzone = lo_result->get_availabilityzone( ).
  lv_resourcearn = lo_result->get_vpcendptassociationarn( ).
  lv_vpcendpointid = lo_result->get_vpcendpointid( ).
  lv_flowoperationid = lo_result->get_flowoperationid( ).
  lv_flowoperationtype = lo_result->get_flowoperationtype( ).
  lv_flowoperationstatus = lo_result->get_flowoperationstatus( ).
  lv_statusreason = lo_result->get_statusmessage( ).
  lv_flowrequesttimestamp = lo_result->get_flowrequesttimestamp( ).
  lo_flowoperation = lo_result->get_flowoperation( ).
  IF lo_flowoperation IS NOT INITIAL.
    lv_age = lo_flowoperation->get_minimumflowageinseconds( ).
    LOOP AT lo_flowoperation->get_flowfilters( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lo_address = lo_row_1->get_sourceaddress( ).
        IF lo_address IS NOT INITIAL.
          lv_addressdefinition = lo_address->get_addressdefinition( ).
        ENDIF.
        lo_address = lo_row_1->get_destinationaddress( ).
        IF lo_address IS NOT INITIAL.
          lv_addressdefinition = lo_address->get_addressdefinition( ).
        ENDIF.
        lv_port = lo_row_1->get_sourceport( ).
        lv_port = lo_row_1->get_destinationport( ).
        LOOP AT lo_row_1->get_protocols( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_protocolstring = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.