/AWS1/IF_DSY=>CREATELOCATIONNFS()¶
About CreateLocationNfs¶
Creates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses NFS file servers.
Method Signature¶
METHODS /AWS1/IF_DSY~CREATELOCATIONNFS
IMPORTING
!IV_SUBDIRECTORY TYPE /AWS1/DSYNFSSUBDIRECTORY OPTIONAL
!IV_SERVERHOSTNAME TYPE /AWS1/DSYSERVERHOSTNAME OPTIONAL
!IO_ONPREMCONFIG TYPE REF TO /AWS1/CL_DSYONPREMCONFIG OPTIONAL
!IO_MOUNTOPTIONS TYPE REF TO /AWS1/CL_DSYNFSMOUNTOPTIONS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DSYTAGLISTENTRY=>TT_INPUTTAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dsycreatelocnfsrsp
RAISING
/AWS1/CX_DSYINTERNALEXCEPTION
/AWS1/CX_DSYINVALIDREQUESTEX
/AWS1/CX_DSYCLIENTEXC
/AWS1/CX_DSYSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_subdirectory TYPE /AWS1/DSYNFSSUBDIRECTORY /AWS1/DSYNFSSUBDIRECTORY¶
Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
iv_serverhostname TYPE /AWS1/DSYSERVERHOSTNAME /AWS1/DSYSERVERHOSTNAME¶
Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.
io_onpremconfig TYPE REF TO /AWS1/CL_DSYONPREMCONFIG /AWS1/CL_DSYONPREMCONFIG¶
Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple DataSync agents.
Optional arguments:¶
io_mountoptions TYPE REF TO /AWS1/CL_DSYNFSMOUNTOPTIONS /AWS1/CL_DSYNFSMOUNTOPTIONS¶
Specifies the options that DataSync can use to mount your NFS file server.
it_tags TYPE /AWS1/CL_DSYTAGLISTENTRY=>TT_INPUTTAGLIST TT_INPUTTAGLIST¶
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dsycreatelocnfsrsp /AWS1/CL_DSYCREATELOCNFSRSP¶
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->createlocationnfs(
io_mountoptions = new /aws1/cl_dsynfsmountoptions( |string| )
io_onpremconfig = new /aws1/cl_dsyonpremconfig(
it_agentarns = VALUE /aws1/cl_dsyagentarnlist_w=>tt_agentarnlist(
( new /aws1/cl_dsyagentarnlist_w( |string| ) )
)
)
it_tags = VALUE /aws1/cl_dsytaglistentry=>tt_inputtaglist(
(
new /aws1/cl_dsytaglistentry(
iv_key = |string|
iv_value = |string|
)
)
)
iv_serverhostname = |string|
iv_subdirectory = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_locationarn = lo_result->get_locationarn( ).
ENDIF.