/AWS1/IF_OUT=>UPDATESITE()¶
About UpdateSite¶
Updates the specified site.
Method Signature¶
METHODS /AWS1/IF_OUT~UPDATESITE
IMPORTING
!IV_SITEID TYPE /AWS1/OUTSITEID OPTIONAL
!IV_NAME TYPE /AWS1/OUTSITENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/OUTSITEDESCRIPTION OPTIONAL
!IV_NOTES TYPE /AWS1/OUTSITENOTES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_outupdatesiteoutput
RAISING
/AWS1/CX_OUTACCESSDENIEDEX
/AWS1/CX_OUTCONFLICTEXCEPTION
/AWS1/CX_OUTINTERNALSERVEREX
/AWS1/CX_OUTNOTFOUNDEXCEPTION
/AWS1/CX_OUTVALIDATIONEX
/AWS1/CX_OUTCLIENTEXC
/AWS1/CX_OUTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_siteid TYPE /AWS1/OUTSITEID /AWS1/OUTSITEID¶
The ID or the Amazon Resource Name (ARN) of the site.
Optional arguments:¶
iv_name TYPE /AWS1/OUTSITENAME /AWS1/OUTSITENAME¶
Name
iv_description TYPE /AWS1/OUTSITEDESCRIPTION /AWS1/OUTSITEDESCRIPTION¶
Description
iv_notes TYPE /AWS1/OUTSITENOTES /AWS1/OUTSITENOTES¶
Notes about a site.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_outupdatesiteoutput /AWS1/CL_OUTUPDATESITEOUTPUT¶
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->updatesite(
iv_description = |string|
iv_name = |string|
iv_notes = |string|
iv_siteid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_site = lo_result->get_site( ).
IF lo_site IS NOT INITIAL.
lv_siteid = lo_site->get_siteid( ).
lv_accountid = lo_site->get_accountid( ).
lv_sitename = lo_site->get_name( ).
lv_sitedescription = lo_site->get_description( ).
LOOP AT lo_site->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_sitearn = lo_site->get_sitearn( ).
lv_sitenotes = lo_site->get_notes( ).
lv_countrycode = lo_site->get_operatingaddressctrycode( ).
lv_stateorregion = lo_site->get_operatingaddressstateo00( ).
lv_city = lo_site->get_operatingaddresscity( ).
lo_rackphysicalproperties = lo_site->get_rackphysicalproperties( ).
IF lo_rackphysicalproperties IS NOT INITIAL.
lv_powerdrawkva = lo_rackphysicalproperties->get_powerdrawkva( ).
lv_powerphase = lo_rackphysicalproperties->get_powerphase( ).
lv_powerconnector = lo_rackphysicalproperties->get_powerconnector( ).
lv_powerfeeddrop = lo_rackphysicalproperties->get_powerfeeddrop( ).
lv_uplinkgbps = lo_rackphysicalproperties->get_uplinkgbps( ).
lv_uplinkcount = lo_rackphysicalproperties->get_uplinkcount( ).
lv_fiberopticcabletype = lo_rackphysicalproperties->get_fiberopticcabletype( ).
lv_opticalstandard = lo_rackphysicalproperties->get_opticalstandard( ).
lv_maximumsupportedweightl = lo_rackphysicalproperties->get_maxsupportedweightlbs( ).
ENDIF.
ENDIF.
ENDIF.