/AWS1/IF_R5D=>LISTDOMAINS()¶
About ListDomains¶
This operation returns all the domain names registered with Amazon Route 53 for the current Amazon Web Services account if no filtering conditions are used.
Method Signature¶
METHODS /AWS1/IF_R5D~LISTDOMAINS
IMPORTING
!IT_FILTERCONDITIONS TYPE /AWS1/CL_R5DFILTERCONDITION=>TT_FILTERCONDITIONS OPTIONAL
!IO_SORTCONDITION TYPE REF TO /AWS1/CL_R5DSORTCONDITION OPTIONAL
!IV_MARKER TYPE /AWS1/R5DPAGEMARKER OPTIONAL
!IV_MAXITEMS TYPE /AWS1/R5DPAGEMAXITEMS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5dlistdomainsrsp
RAISING
/AWS1/CX_R5DINVALIDINPUT
/AWS1/CX_R5DCLIENTEXC
/AWS1/CX_R5DSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_filterconditions TYPE /AWS1/CL_R5DFILTERCONDITION=>TT_FILTERCONDITIONS TT_FILTERCONDITIONS¶
A complex type that contains information about the filters applied during the
ListDomainsrequest. The filter conditions can include domain name and domain expiration.
io_sortcondition TYPE REF TO /AWS1/CL_R5DSORTCONDITION /AWS1/CL_R5DSORTCONDITION¶
A complex type that contains information about the requested ordering of domains in the returned list.
iv_marker TYPE /AWS1/R5DPAGEMARKER /AWS1/R5DPAGEMARKER¶
For an initial request for a list of domains, omit this element. If the number of domains that are associated with the current Amazon Web Services account is greater than the value that you specified for
MaxItems, you can useMarkerto return additional domains. Get the value ofNextPageMarkerfrom the previous response, and submit another request that includes the value ofNextPageMarkerin theMarkerelement.Constraints: The marker must match the value specified in the previous request.
iv_maxitems TYPE /AWS1/R5DPAGEMAXITEMS /AWS1/R5DPAGEMAXITEMS¶
Number of domains to be returned.
Default: 20
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5dlistdomainsrsp /AWS1/CL_R5DLISTDOMAINSRSP¶
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->listdomains(
io_sortcondition = new /aws1/cl_r5dsortcondition(
iv_name = |string|
iv_sortorder = |string|
)
it_filterconditions = VALUE /aws1/cl_r5dfiltercondition=>tt_filterconditions(
(
new /aws1/cl_r5dfiltercondition(
it_values = VALUE /aws1/cl_r5dvalues_w=>tt_values(
( new /aws1/cl_r5dvalues_w( |string| ) )
)
iv_name = |string|
iv_operator = |string|
)
)
)
iv_marker = |string|
iv_maxitems = 123
).
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_domains( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_domainname = lo_row_1->get_domainname( ).
lv_boolean = lo_row_1->get_autorenew( ).
lv_boolean = lo_row_1->get_transferlock( ).
lv_timestamp = lo_row_1->get_expiry( ).
ENDIF.
ENDLOOP.
lv_pagemarker = lo_result->get_nextpagemarker( ).
ENDIF.