/AWS1/IF_DCO=>DSCDIRECTCNCTGWASSOCIATIONS()¶
About DescribeDirectConnectGatewayAssociations¶
Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:
-
A Direct Connect gateway
The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.
-
A virtual private gateway
The response contains the Direct Connect gateway.
-
A transit gateway
The response contains the Direct Connect gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway and a transit gateway
The response contains the association between the Direct Connect gateway and transit gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway association to a Cloud WAN core network
The response contains the Cloud WAN core network ID that the Direct Connect gateway is associated to.
Method Signature¶
METHODS /AWS1/IF_DCO~DSCDIRECTCNCTGWASSOCIATIONS
IMPORTING
!IV_ASSOCIATIONID TYPE /AWS1/DCODIRECTCNCTGWASSOCIA02 OPTIONAL
!IV_ASSOCIATEDGATEWAYID TYPE /AWS1/DCOASSOCIATEDGATEWAYID OPTIONAL
!IV_DIRECTCONNECTGATEWAYID TYPE /AWS1/DCODIRECTCNCTGATEWAYID OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DCOMAXRESULTSETSIZE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DCOPAGINATIONTOKEN OPTIONAL
!IV_VIRTUALGATEWAYID TYPE /AWS1/DCOVIRTUALGATEWAYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dcodscdirectcnctgwa03
RAISING
/AWS1/CX_DCODIRECTCNCTCLIENTEX
/AWS1/CX_DCODIRECTCNCTSERVEREX
/AWS1/CX_DCOCLIENTEXC
/AWS1/CX_DCOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_associationid TYPE /AWS1/DCODIRECTCNCTGWASSOCIA02 /AWS1/DCODIRECTCNCTGWASSOCIA02¶
The ID of the Direct Connect gateway association.
iv_associatedgatewayid TYPE /AWS1/DCOASSOCIATEDGATEWAYID /AWS1/DCOASSOCIATEDGATEWAYID¶
The ID of the associated gateway.
iv_directconnectgatewayid TYPE /AWS1/DCODIRECTCNCTGATEWAYID /AWS1/DCODIRECTCNCTGATEWAYID¶
The ID of the Direct Connect gateway.
iv_maxresults TYPE /AWS1/DCOMAXRESULTSETSIZE /AWS1/DCOMAXRESULTSETSIZE¶
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.If
MaxResultsis given a value larger than 100, only 100 results are returned.
iv_nexttoken TYPE /AWS1/DCOPAGINATIONTOKEN /AWS1/DCOPAGINATIONTOKEN¶
The token provided in the previous call to retrieve the next page.
iv_virtualgatewayid TYPE /AWS1/DCOVIRTUALGATEWAYID /AWS1/DCOVIRTUALGATEWAYID¶
The ID of the virtual private gateway or transit gateway.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dcodscdirectcnctgwa03 /AWS1/CL_DCODSCDIRECTCNCTGWA03¶
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->dscdirectcnctgwassociations(
iv_associatedgatewayid = |string|
iv_associationid = |string|
iv_directconnectgatewayid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_virtualgatewayid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_directcnctgwassociations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_directconnectgatewayid = lo_row_1->get_directconnectgatewayid( ).
lv_owneraccount = lo_row_1->get_directcnctgwowneraccount( ).
lv_directconnectgatewayass = lo_row_1->get_associationstate( ).
lv_statechangeerror = lo_row_1->get_statechangeerror( ).
lo_associatedgateway = lo_row_1->get_associatedgateway( ).
IF lo_associatedgateway IS NOT INITIAL.
lv_gatewayidentifier = lo_associatedgateway->get_id( ).
lv_gatewaytype = lo_associatedgateway->get_type( ).
lv_owneraccount = lo_associatedgateway->get_owneraccount( ).
lv_region = lo_associatedgateway->get_region( ).
ENDIF.
lv_directconnectgatewayass_1 = lo_row_1->get_associationid( ).
LOOP AT lo_row_1->get_alwedprefixestodirectc00( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_cidr = lo_row_3->get_cidr( ).
ENDIF.
ENDLOOP.
lo_associatedcorenetwork = lo_row_1->get_associatedcorenetwork( ).
IF lo_associatedcorenetwork IS NOT INITIAL.
lv_corenetworkidentifier = lo_associatedcorenetwork->get_id( ).
lv_owneraccount = lo_associatedcorenetwork->get_owneraccount( ).
lv_corenetworkattachmentid = lo_associatedcorenetwork->get_attachmentid( ).
ENDIF.
lv_virtualgatewayid = lo_row_1->get_virtualgatewayid( ).
lv_virtualgatewayregion = lo_row_1->get_virtualgatewayregion( ).
lv_owneraccount = lo_row_1->get_vgwowneraccount( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.