/AWS1/IF_ESS=>GETUPGRADEHISTORY()¶
About GetUpgradeHistory¶
Retrieves the complete history of the last 10 upgrades that were performed on the domain.
Method Signature¶
METHODS /AWS1/IF_ESS~GETUPGRADEHISTORY
IMPORTING
!IV_DOMAINNAME TYPE /AWS1/ESSDOMAINNAME OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ESSMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ESSNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_essgetupgradehistor01
RAISING
/AWS1/CX_ESSBASEEXCEPTION
/AWS1/CX_ESSDISABLEDOPEX
/AWS1/CX_ESSINTERNALEXCEPTION
/AWS1/CX_ESSRESOURCENOTFOUNDEX
/AWS1/CX_ESSVALIDATIONEX
/AWS1/CX_ESSCLIENTEXC
/AWS1/CX_ESSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainname TYPE /AWS1/ESSDOMAINNAME /AWS1/ESSDOMAINNAME¶
The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
Optional arguments:¶
iv_maxresults TYPE /AWS1/ESSMAXRESULTS /AWS1/ESSMAXRESULTS¶
Set this value to limit the number of results returned.
iv_nexttoken TYPE /AWS1/ESSNEXTTOKEN /AWS1/ESSNEXTTOKEN¶
Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_essgetupgradehistor01 /AWS1/CL_ESSGETUPGRADEHISTOR01¶
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->getupgradehistory(
iv_domainname = |string|
iv_maxresults = 123
iv_nexttoken = |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_upgradehistories( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_upgradename = lo_row_1->get_upgradename( ).
lv_starttimestamp = lo_row_1->get_starttimestamp( ).
lv_upgradestatus = lo_row_1->get_upgradestatus( ).
LOOP AT lo_row_1->get_stepslist( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_upgradestep = lo_row_3->get_upgradestep( ).
lv_upgradestatus = lo_row_3->get_upgradestepstatus( ).
LOOP AT lo_row_3->get_issues( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_issue = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_double = lo_row_3->get_progresspercent( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.