/AWS1/IF_R53=>LISTTRAFFICPOLICYVERSIONS()¶
About ListTrafficPolicyVersions¶
Gets information about all of the versions for a specified traffic policy.
Traffic policy versions are listed in numerical order by
VersionNumber.
Method Signature¶
METHODS /AWS1/IF_R53~LISTTRAFFICPOLICYVERSIONS
IMPORTING
!IV_ID TYPE /AWS1/R53TRAFFICPOLICYID OPTIONAL
!IV_TRAFFICPOLICYVRSMARKER TYPE /AWS1/R53TRAFPOLICYVRSMARKER OPTIONAL
!IV_MAXITEMS TYPE /AWS1/R53INTEGER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r53listtrafplyvrssrsp
RAISING
/AWS1/CX_R53INVALIDINPUT
/AWS1/CX_R53NOSUCHTRAFPOLICY
/AWS1/CX_R53CLIENTEXC
/AWS1/CX_R53SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/R53TRAFFICPOLICYID /AWS1/R53TRAFFICPOLICYID¶
Specify the value of
Idof the traffic policy for which you want to list all versions.
Optional arguments:¶
iv_trafficpolicyvrsmarker TYPE /AWS1/R53TRAFPOLICYVRSMARKER /AWS1/R53TRAFPOLICYVRSMARKER¶
For your first request to
ListTrafficPolicyVersions, don't include theTrafficPolicyVersionMarkerparameter.If you have more traffic policy versions than the value of
MaxItems,ListTrafficPolicyVersionsreturns only the first group ofMaxItemsversions. To get more traffic policy versions, submit anotherListTrafficPolicyVersionsrequest. For the value ofTrafficPolicyVersionMarker, specify the value ofTrafficPolicyVersionMarkerin the previous response.
iv_maxitems TYPE /AWS1/R53INTEGER /AWS1/R53INTEGER¶
The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for this request. If the specified traffic policy has more than
MaxItemsversions, the value ofIsTruncatedin the response istrue, and the value of theTrafficPolicyVersionMarkerelement is the ID of the first version that Route 53 will return if you submit another request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r53listtrafplyvrssrsp /AWS1/CL_R53LISTTRAFPLYVRSSRSP¶
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->listtrafficpolicyversions(
iv_id = |string|
iv_maxitems = 123
iv_trafficpolicyvrsmarker = |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_trafficpolicies( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_trafficpolicyid = lo_row_1->get_id( ).
lv_trafficpolicyversion = lo_row_1->get_version( ).
lv_trafficpolicyname = lo_row_1->get_name( ).
lv_rrtype = lo_row_1->get_type( ).
lv_trafficpolicydocument = lo_row_1->get_document( ).
lv_trafficpolicycomment = lo_row_1->get_comment( ).
ENDIF.
ENDLOOP.
lv_pagetruncated = lo_result->get_istruncated( ).
lv_trafficpolicyversionmar = lo_result->get_trafficpolicyvrsmarker( ).
lv_integer = lo_result->get_maxitems( ).
ENDIF.