/AWS1/IF_OWC=>UPDATESERVER()¶
About UpdateServer¶
Updates settings for a server.
This operation is synchronous.
Method Signature¶
METHODS /AWS1/IF_OWC~UPDATESERVER
IMPORTING
!IV_DISABLEAUTOMATEDBACKUP TYPE /AWS1/OWCBOOLEAN OPTIONAL
!IV_BACKUPRETENTIONCOUNT TYPE /AWS1/OWCINTEGER OPTIONAL
!IV_SERVERNAME TYPE /AWS1/OWCSERVERNAME OPTIONAL
!IV_PREFERREDMAINTENANCEWIN00 TYPE /AWS1/OWCTIMEWINDOWDEFINITION OPTIONAL
!IV_PREFERREDBACKUPWINDOW TYPE /AWS1/OWCTIMEWINDOWDEFINITION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_owcupdateserverrsp
RAISING
/AWS1/CX_OWCINVALIDSTATEEX
/AWS1/CX_OWCRESOURCENOTFOUNDEX
/AWS1/CX_OWCVALIDATIONEX
/AWS1/CX_OWCCLIENTEXC
/AWS1/CX_OWCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_servername TYPE /AWS1/OWCSERVERNAME /AWS1/OWCSERVERNAME¶
The name of the server to update.
Optional arguments:¶
iv_disableautomatedbackup TYPE /AWS1/OWCBOOLEAN /AWS1/OWCBOOLEAN¶
Setting DisableAutomatedBackup to
truedisables automated or scheduled backups. Automated backups are enabled by default.
iv_backupretentioncount TYPE /AWS1/OWCINTEGER /AWS1/OWCINTEGER¶
Sets the number of automated backups that you want to keep.
iv_preferredmaintenancewin00 TYPE /AWS1/OWCTIMEWINDOWDEFINITION /AWS1/OWCTIMEWINDOWDEFINITION¶
PreferredMaintenanceWindow
iv_preferredbackupwindow TYPE /AWS1/OWCTIMEWINDOWDEFINITION /AWS1/OWCTIMEWINDOWDEFINITION¶
PreferredBackupWindow
RETURNING¶
oo_output TYPE REF TO /aws1/cl_owcupdateserverrsp /AWS1/CL_OWCUPDATESERVERRSP¶
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->updateserver(
iv_backupretentioncount = 123
iv_disableautomatedbackup = ABAP_TRUE
iv_preferredbackupwindow = |string|
iv_preferredmaintenancewin00 = |string|
iv_servername = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_server = lo_result->get_server( ).
IF lo_server IS NOT INITIAL.
lv_boolean = lo_server->get_associatepublicipaddress( ).
lv_integer = lo_server->get_backupretentioncount( ).
lv_string = lo_server->get_servername( ).
lv_timestamp = lo_server->get_createdat( ).
lv_string = lo_server->get_cloudformationstackarn( ).
lv_customdomain = lo_server->get_customdomain( ).
lv_boolean = lo_server->get_disableautomatedbackup( ).
lv_string = lo_server->get_endpoint( ).
lv_string = lo_server->get_engine( ).
lv_string = lo_server->get_enginemodel( ).
LOOP AT lo_server->get_engineattributes( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_engineattributename = lo_row_1->get_name( ).
lv_engineattributevalue = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_server->get_engineversion( ).
lv_string = lo_server->get_instanceprofilearn( ).
lv_string = lo_server->get_instancetype( ).
lv_string = lo_server->get_keypair( ).
lv_maintenancestatus = lo_server->get_maintenancestatus( ).
lv_timewindowdefinition = lo_server->get_preferredmaintenancewi00( ).
lv_timewindowdefinition = lo_server->get_preferredbackupwindow( ).
LOOP AT lo_server->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_server->get_servicerolearn( ).
lv_serverstatus = lo_server->get_status( ).
lv_string = lo_server->get_statusreason( ).
LOOP AT lo_server->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_server->get_serverarn( ).
ENDIF.
ENDIF.