Skip to content

/AWS1/IF_EVS=>ASSOCIATEEIPTOVLAN()

About AssociateEipToVlan

Associates an Elastic IP address with a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.

Method Signature

IMPORTING

Required arguments:

iv_environmentid TYPE /AWS1/EVSENVIRONMENTID /AWS1/EVSENVIRONMENTID

A unique ID for the environment containing the VLAN that the Elastic IP address associates with.

iv_vlanname TYPE /AWS1/EVSSTRING /AWS1/EVSSTRING

The name of the VLAN. hcx is the only accepted VLAN name at this time.

iv_allocationid TYPE /AWS1/EVSALLOCATIONID /AWS1/EVSALLOCATIONID

The Elastic IP address allocation ID.

Optional arguments:

iv_clienttoken TYPE /AWS1/EVSCLIENTTOKEN /AWS1/EVSCLIENTTOKEN

This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.

A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.

RETURNING

oo_output TYPE REF TO /aws1/cl_evsassoceiptovlanrsp /AWS1/CL_EVSASSOCEIPTOVLANRSP

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_evs~associateeiptovlan(
  iv_allocationid = |string|
  iv_clienttoken = |string|
  iv_environmentid = |string|
  iv_vlanname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_vlan = lo_result->get_vlan( ).
  IF lo_vlan IS NOT INITIAL.
    lv_vlanid = lo_vlan->get_vlanid( ).
    lv_cidr = lo_vlan->get_cidr( ).
    lv_string = lo_vlan->get_availabilityzone( ).
    lv_string = lo_vlan->get_functionname( ).
    lv_subnetid = lo_vlan->get_subnetid( ).
    lv_timestamp = lo_vlan->get_createdat( ).
    lv_timestamp = lo_vlan->get_modifiedat( ).
    lv_vlanstate = lo_vlan->get_vlanstate( ).
    lv_statedetails = lo_vlan->get_statedetails( ).
    LOOP AT lo_vlan->get_eipassociations( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_associationid = lo_row_1->get_associationid( ).
        lv_allocationid = lo_row_1->get_allocationid( ).
        lv_ipaddress = lo_row_1->get_ipaddress( ).
      ENDIF.
    ENDLOOP.
    lv_boolean = lo_vlan->get_ispublic( ).
    lv_networkaclid = lo_vlan->get_networkaclid( ).
  ENDIF.
ENDIF.