/AWS1/IF_DSY=>CREATELOCATIONFSXOPENZFS()¶
About CreateLocationFsxOpenZfs¶
Creates a transfer location for an Amazon FSx for OpenZFS file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses FSx for OpenZFS file systems.
Request parameters related to SMB aren't supported with the
CreateLocationFsxOpenZfs operation.
Method Signature¶
METHODS /AWS1/IF_DSY~CREATELOCATIONFSXOPENZFS
IMPORTING
!IV_FSXFILESYSTEMARN TYPE /AWS1/DSYFSXFILESYSTEMARN OPTIONAL
!IO_PROTOCOL TYPE REF TO /AWS1/CL_DSYFSXPROTOCOL OPTIONAL
!IT_SECURITYGROUPARNS TYPE /AWS1/CL_DSYEC2SECGRPARNLIST_W=>TT_EC2SECURITYGROUPARNLIST OPTIONAL
!IV_SUBDIRECTORY TYPE /AWS1/DSYFSXOPENZFSSUBDIRECT00 OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DSYTAGLISTENTRY=>TT_INPUTTAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dsycrelocfsxopenzfs01
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_fsxfilesystemarn TYPE /AWS1/DSYFSXFILESYSTEMARN /AWS1/DSYFSXFILESYSTEMARN¶
The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.
io_protocol TYPE REF TO /AWS1/CL_DSYFSXPROTOCOL /AWS1/CL_DSYFSXPROTOCOL¶
The type of protocol that DataSync uses to access your file system.
it_securitygrouparns TYPE /AWS1/CL_DSYEC2SECGRPARNLIST_W=>TT_EC2SECURITYGROUPARNLIST TT_EC2SECURITYGROUPARNLIST¶
The ARNs of the security groups that are used to configure the FSx for OpenZFS file system.
Optional arguments:¶
iv_subdirectory TYPE /AWS1/DSYFSXOPENZFSSUBDIRECT00 /AWS1/DSYFSXOPENZFSSUBDIRECT00¶
A subdirectory in the location's path that must begin with
/fsx. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).
it_tags TYPE /AWS1/CL_DSYTAGLISTENTRY=>TT_INPUTTAGLIST TT_INPUTTAGLIST¶
The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dsycrelocfsxopenzfs01 /AWS1/CL_DSYCRELOCFSXOPENZFS01¶
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->createlocationfsxopenzfs(
io_protocol = new /aws1/cl_dsyfsxprotocol(
io_nfs = new /aws1/cl_dsyfsxprotocolnfs( new /aws1/cl_dsynfsmountoptions( |string| ) )
io_smb = new /aws1/cl_dsyfsxprotocolsmb(
io_mountoptions = new /aws1/cl_dsysmbmountoptions( |string| )
iv_domain = |string|
iv_password = |string|
iv_user = |string|
)
)
it_securitygrouparns = VALUE /aws1/cl_dsyec2secgrparnlist_w=>tt_ec2securitygrouparnlist(
( new /aws1/cl_dsyec2secgrparnlist_w( |string| ) )
)
it_tags = VALUE /aws1/cl_dsytaglistentry=>tt_inputtaglist(
(
new /aws1/cl_dsytaglistentry(
iv_key = |string|
iv_value = |string|
)
)
)
iv_fsxfilesystemarn = |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.