/AWS1/IF_R53=>LISTTRAFFICPOLICIES()¶
About ListTrafficPolicies¶
Gets information about the latest version for every traffic policy that is associated with the current Amazon Web Services account. Policies are listed in the order that they were created in.
For information about how of deleting a traffic policy affects the response from
ListTrafficPolicies, see DeleteTrafficPolicy.
Method Signature¶
METHODS /AWS1/IF_R53~LISTTRAFFICPOLICIES
IMPORTING
!IV_TRAFFICPOLICYIDMARKER TYPE /AWS1/R53TRAFFICPOLICYID OPTIONAL
!IV_MAXITEMS TYPE /AWS1/R53INTEGER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53listtrafficpolrsp
RAISING
/AWS1/CX_R53INVALIDINPUT
/AWS1/CX_R53CLIENTEXC
/AWS1/CX_R53SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_trafficpolicyidmarker TYPE /AWS1/R53TRAFFICPOLICYID /AWS1/R53TRAFFICPOLICYID¶
(Conditional) For your first request to
ListTrafficPolicies, don't include theTrafficPolicyIdMarkerparameter.If you have more traffic policies than the value of
MaxItems,ListTrafficPoliciesreturns only the firstMaxItemstraffic policies. To get the next group of policies, submit another request toListTrafficPolicies. For the value ofTrafficPolicyIdMarker, specify the value ofTrafficPolicyIdMarkerthat was returned in the previous response.
iv_maxitems TYPE /AWS1/R53INTEGER /AWS1/R53INTEGER¶
(Optional) The maximum number of traffic policies that you want Amazon Route 53 to return in response to this request. If you have more than
MaxItemstraffic policies, the value ofIsTruncatedin the response istrue, and the value ofTrafficPolicyIdMarkeris the ID of the first traffic policy that Route 53 will return if you submit another request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r53listtrafficpolrsp /AWS1/CL_R53LISTTRAFFICPOLRSP¶
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->listtrafficpolicies(
iv_maxitems = 123
iv_trafficpolicyidmarker = |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_trafficpolicysummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_trafficpolicyid = lo_row_1->get_id( ).
lv_trafficpolicyname = lo_row_1->get_name( ).
lv_rrtype = lo_row_1->get_type( ).
lv_trafficpolicyversion = lo_row_1->get_latestversion( ).
lv_trafficpolicyversion = lo_row_1->get_trafficpolicycount( ).
ENDIF.
ENDLOOP.
lv_pagetruncated = lo_result->get_istruncated( ).
lv_trafficpolicyid = lo_result->get_trafficpolicyidmarker( ).
lv_integer = lo_result->get_maxitems( ).
ENDIF.