Skip to content

/AWS1/IF_BDA=>GETVPCCONFIGURATION()

About GetVpcConfiguration

Returns the details and current status of a single VPC configuration. Use this operation to poll for the outcome of an asynchronous create or delete.

Method Signature

METHODS /AWS1/IF_BDA~GETVPCCONFIGURATION
  IMPORTING
    !IV_KNOWLEDGEBASEID TYPE /AWS1/BDAID OPTIONAL
    !IV_VPCCONFIGURATIONID TYPE /AWS1/BDAVPCCONFIGURATIONID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdagetvpcconfresponse
  RAISING
    /AWS1/CX_BDAACCESSDENIEDEX
    /AWS1/CX_BDAINTERNALSERVEREX
    /AWS1/CX_BDARESOURCENOTFOUNDEX
    /AWS1/CX_BDATHROTTLINGEX
    /AWS1/CX_BDAVALIDATIONEX
    /AWS1/CX_BDACLIENTEXC
    /AWS1/CX_BDASERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_knowledgebaseid TYPE /AWS1/BDAID /AWS1/BDAID

The unique identifier of the knowledge base that owns the VPC configuration.

iv_vpcconfigurationid TYPE /AWS1/BDAVPCCONFIGURATIONID /AWS1/BDAVPCCONFIGURATIONID

The unique identifier of the VPC configuration to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdagetvpcconfresponse /AWS1/CL_BDAGETVPCCONFRESPONSE

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->getvpcconfiguration(
  iv_knowledgebaseid = |string|
  iv_vpcconfigurationid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_vpcconfiguration = lo_result->get_vpcconfiguration( ).
  IF lo_vpcconfiguration IS NOT INITIAL.
    lv_vpcconfigurationid = lo_vpcconfiguration->get_vpcconfigurationid( ).
    lv_vpcconfigurationstatus = lo_vpcconfiguration->get_status( ).
    lv_vpcconfigurationstatusm = lo_vpcconfiguration->get_statusmessage( ).
    lv_vpcid = lo_vpcconfiguration->get_vpcid( ).
    LOOP AT lo_vpcconfiguration->get_subnetids( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_subnetid = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_resourcetarget = lo_vpcconfiguration->get_resourcetarget( ).
    lv_port = lo_vpcconfiguration->get_port( ).
    lv_vpcprotocol = lo_vpcconfiguration->get_protocol( ).
    lv_vpcresolutionmode = lo_vpcconfiguration->get_resolutionmode( ).
    lv_hostheader = lo_vpcconfiguration->get_hostheader( ).
    lv_tlsservername = lo_vpcconfiguration->get_tlsservername( ).
    lv_vpcconfigurationname = lo_vpcconfiguration->get_name( ).
    lv_vpcconfigurationdescrip = lo_vpcconfiguration->get_description( ).
    lv_datetimestamp = lo_vpcconfiguration->get_createdat( ).
    lv_datetimestamp = lo_vpcconfiguration->get_updatedat( ).
  ENDIF.
ENDIF.