create_location_fsx_ontap
¶
create_location_fsx_ontap(
protocol: FsxProtocol,
security_group_arns: Ec2SecurityGroupArnList,
storage_virtual_machine_arn: StorageVirtualMachineArn,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
subdirectory: Optional[FsxOntapSubdirectory] = None,
tags: Optional[InputTagList] = None,
) -> CreateLocationFsxOntapResponse
Creates a transfer location for an Amazon FSx for NetApp ONTAP 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 ONTAP file systems.
Parameters:
-
security_group_arns(Ec2SecurityGroupArnList) –Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
-
Network File System (NFS): TCP ports 111, 635, and 2049
-
Server Message Block (SMB): TCP port 445
Your file system's security groups must also allow inbound traffic on the same ports.
-
-
storage_virtual_machine_arn(StorageVirtualMachineArn) –Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.
-
subdirectory(Optional[FsxOntapSubdirectory], default:None) –Specifies a path to the file share in the SVM where you want to transfer data to or from.
You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be
/vol1,/vol1/tree1, or/share1.Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.
-
tags(Optional[InputTagList], default:None) –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.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.