/AWS1/IF_OUT=>CREATESITE()¶
About CreateSite¶
Creates a site for an Outpost.
Method Signature¶
METHODS /AWS1/IF_OUT~CREATESITE
IMPORTING
!IV_NAME TYPE /AWS1/OUTSITENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/OUTSITEDESCRIPTION OPTIONAL
!IV_NOTES TYPE /AWS1/OUTSITENOTES OPTIONAL
!IT_TAGS TYPE /AWS1/CL_OUTTAGMAP_W=>TT_TAGMAP OPTIONAL
!IO_OPERATINGADDRESS TYPE REF TO /AWS1/CL_OUTADDRESS OPTIONAL
!IO_SHIPPINGADDRESS TYPE REF TO /AWS1/CL_OUTADDRESS OPTIONAL
!IO_RACKPHYSICALPROPERTIES TYPE REF TO /AWS1/CL_OUTRACKPHYSICALPRPS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_outcreatesiteoutput
RAISING
/AWS1/CX_OUTACCESSDENIEDEX
/AWS1/CX_OUTCONFLICTEXCEPTION
/AWS1/CX_OUTINTERNALSERVEREX
/AWS1/CX_OUTSERVICEQUOTAEXCDEX
/AWS1/CX_OUTVALIDATIONEX
/AWS1/CX_OUTCLIENTEXC
/AWS1/CX_OUTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/OUTSITENAME /AWS1/OUTSITENAME¶
Name
Optional arguments:¶
iv_description TYPE /AWS1/OUTSITEDESCRIPTION /AWS1/OUTSITEDESCRIPTION¶
Description
iv_notes TYPE /AWS1/OUTSITENOTES /AWS1/OUTSITENOTES¶
Additional information that you provide about site access requirements, electrician scheduling, personal protective equipment, or regulation of equipment materials that could affect your installation process.
it_tags TYPE /AWS1/CL_OUTTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags to apply to a site.
io_operatingaddress TYPE REF TO /AWS1/CL_OUTADDRESS /AWS1/CL_OUTADDRESS¶
The location to install and power on the hardware. This address might be different from the shipping address.
io_shippingaddress TYPE REF TO /AWS1/CL_OUTADDRESS /AWS1/CL_OUTADDRESS¶
The location to ship the hardware. This address might be different from the operating address.
io_rackphysicalproperties TYPE REF TO /AWS1/CL_OUTRACKPHYSICALPRPS /AWS1/CL_OUTRACKPHYSICALPRPS¶
Information about the physical and logistical details for the rack at this site. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_outcreatesiteoutput /AWS1/CL_OUTCREATESITEOUTPUT¶
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->createsite(
io_operatingaddress = new /aws1/cl_outaddress(
iv_addressline1 = |string|
iv_addressline2 = |string|
iv_addressline3 = |string|
iv_city = |string|
iv_contactname = |string|
iv_contactphonenumber = |string|
iv_countrycode = |string|
iv_districtorcounty = |string|
iv_municipality = |string|
iv_postalcode = |string|
iv_stateorregion = |string|
)
io_rackphysicalproperties = new /aws1/cl_outrackphysicalprps(
iv_fiberopticcabletype = |string|
iv_maximumsupportedweightlbs = |string|
iv_opticalstandard = |string|
iv_powerconnector = |string|
iv_powerdrawkva = |string|
iv_powerfeeddrop = |string|
iv_powerphase = |string|
iv_uplinkcount = |string|
iv_uplinkgbps = |string|
)
io_shippingaddress = new /aws1/cl_outaddress(
iv_addressline1 = |string|
iv_addressline2 = |string|
iv_addressline3 = |string|
iv_city = |string|
iv_contactname = |string|
iv_contactphonenumber = |string|
iv_countrycode = |string|
iv_districtorcounty = |string|
iv_municipality = |string|
iv_postalcode = |string|
iv_stateorregion = |string|
)
it_tags = VALUE /aws1/cl_outtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_outtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_outtagmap_w( |string| )
)
)
)
iv_description = |string|
iv_name = |string|
iv_notes = |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.