/AWS1/IF_MPB=>GETRESPONDERGATEWAY()¶
About GetResponderGateway¶
Retrieves information about a responder gateway.
Method Signature¶
METHODS /AWS1/IF_MPB~GETRESPONDERGATEWAY
IMPORTING
!IV_GATEWAYID TYPE /AWS1/MPBGATEWAYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpbgetrespgatewayrsp
RAISING
/AWS1/CX_MPBACCESSDENIEDEX
/AWS1/CX_MPBINTERNALSERVEREX
/AWS1/CX_MPBRESOURCENOTFOUNDEX
/AWS1/CX_MPBTHROTTLINGEX
/AWS1/CX_MPBVALIDATIONEX
/AWS1/CX_MPBCLIENTEXC
/AWS1/CX_MPBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_gatewayid TYPE /AWS1/MPBGATEWAYID /AWS1/MPBGATEWAYID¶
The unique identifier of the gateway.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mpbgetrespgatewayrsp /AWS1/CL_MPBGETRESPGATEWAYRSP¶
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->getrespondergateway( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_vpcid = lo_result->get_vpcid( ).
LOOP AT lo_result->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.
LOOP AT lo_result->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_securitygroupid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_respondergatewaystatus = lo_result->get_status( ).
lv_string = lo_result->get_description( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
lv_domainname = lo_result->get_domainname( ).
lv_integer = lo_result->get_port( ).
lv_protocol = lo_result->get_protocol( ).
lo_truststoreconfiguration = lo_result->get_truststoreconfiguration( ).
IF lo_truststoreconfiguration IS NOT INITIAL.
LOOP AT lo_truststoreconfiguration->get_certauthoritycerts( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_base64encodedcertificat = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_managedendpointconfigur = lo_result->get_managedendpointconf( ).
IF lo_managedendpointconfigur IS NOT INITIAL.
lo_autoscalinggroupsconfig = lo_managedendpointconfigur->get_autoscalinggroups( ).
IF lo_autoscalinggroupsconfig IS NOT INITIAL.
LOOP AT lo_autoscalinggroupsconfig->get_autoscalinggroupnames( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_autoscalinggroupname = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_autoscalinggroupsconfig->get_rolearn( ).
ENDIF.
lo_eksendpointsconfigurati = lo_managedendpointconfigur->get_eksendpoints( ).
IF lo_eksendpointsconfigurati IS NOT INITIAL.
lv_kubernetesendpointsreso = lo_eksendpointsconfigurati->get_endpointsresourcename( ).
lv_kubernetesnamespace = lo_eksendpointsconfigurati->get_endptsresourcenamespace( ).
lv_uri = lo_eksendpointsconfigurati->get_clusterapiserverendpturi( ).
lv_base64encodedcertificat = lo_eksendpointsconfigurati->get_clustapisrvcacertchain( ).
lv_kubernetesclustername = lo_eksendpointsconfigurati->get_clustername( ).
lv_string = lo_eksendpointsconfigurati->get_rolearn( ).
ENDIF.
ENDIF.
lv_gatewayid = lo_result->get_gatewayid( ).
LOOP AT lo_result->get_tags( ) into ls_row_8.
lv_key = ls_row_8-key.
lo_value = ls_row_8-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_integer = lo_result->get_activelinkscount( ).
lv_integer = lo_result->get_totallinkscount( ).
lv_integer = lo_result->get_inboundlinkscount( ).
ENDIF.
Get responder gateway details¶
Get responder gateway
DATA(lo_result) = lo_client->getrespondergateway( |rtb-gw-12345678| ).