/AWS1/IF_SAG=>UPDATETARGETDOMAIN()¶
About UpdateTargetDomain¶
Updates a target domain record
Method Signature¶
METHODS /AWS1/IF_SAG~UPDATETARGETDOMAIN
IMPORTING
!IV_TARGETDOMAINID TYPE /AWS1/SAGTARGETDOMAINID OPTIONAL
!IV_VERIFICATIONMETHOD TYPE /AWS1/SAGDOMAINVERIFMETHOD OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagupdatetgtdomoutput
RAISING
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_targetdomainid TYPE /AWS1/SAGTARGETDOMAINID /AWS1/SAGTARGETDOMAINID¶
Unique identifier of the target domain to update
iv_verificationmethod TYPE /AWS1/SAGDOMAINVERIFMETHOD /AWS1/SAGDOMAINVERIFMETHOD¶
Verification method for the target domain
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagupdatetgtdomoutput /AWS1/CL_SAGUPDATETGTDOMOUTPUT¶
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->updatetargetdomain(
iv_targetdomainid = |string|
iv_verificationmethod = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_targetdomainid = lo_result->get_targetdomainid( ).
lv_string = lo_result->get_domainname( ).
lv_targetdomainstatus = lo_result->get_verificationstatus( ).
lo_verificationdetails = lo_result->get_verificationdetails( ).
IF lo_verificationdetails IS NOT INITIAL.
lv_domainverificationmetho = lo_verificationdetails->get_method( ).
lo_dnsverification = lo_verificationdetails->get_dnstxt( ).
IF lo_dnsverification IS NOT INITIAL.
lv_string = lo_dnsverification->get_token( ).
lv_string = lo_dnsverification->get_dnsrecordname( ).
lv_dnsrecordtype = lo_dnsverification->get_dnsrecordtype( ).
ENDIF.
lo_httpverification = lo_verificationdetails->get_httproute( ).
IF lo_httpverification IS NOT INITIAL.
lv_string = lo_httpverification->get_token( ).
lv_string = lo_httpverification->get_routepath( ).
ENDIF.
ENDIF.
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_verifiedat( ).
ENDIF.