Skip to main content

location_fsx_ontaps

Creates, updates, deletes, gets or lists a location_fsx_ontaps resource.

Overview

Namelocation_fsx_ontaps
TypeResource
Idaws.datasync.location_fsx_ontaps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time that the location was created.
fsx_filesystem_arnstringThe ARN of the FSx for ONTAP file system. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):fsx:[a-z-0-9]+:[0-9]{12}:file-system/fs-[0-9a-f]+$</code>)
location_arnstringThe ARN of the FSx for ONTAP file system location. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$</code>)
location_uristringThe uniform resource identifier (URI) of the FSx for ONTAP file system location. (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)
protocolobjectSpecifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
security_group_arnsarrayThe security groups that DataSync uses to access your FSx for ONTAP file system.
storage_virtual_machine_arnstringThe ARN of the storage virtual machine (SVM) on your FSx for ONTAP file system where you're copying data to or from. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):fsx:[a-z-0-9]+:[0-9]{12}:storage-virtual-machine/fs-[0-9a-f]+/svm-[0-9a-f]{17,}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_fsx_ontapselectregionProvides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured. If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password.
create_location_fsx_ontapinsertregion, SecurityGroupArns, StorageVirtualMachineArnCreates 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.
update_location_fsx_ontapupdateregion, LocationArnModifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for ONTAP.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured. If your location uses SMB, the DescribeLocationFsxOntap operation doesn't actually return a Password.

SELECT
creation_time,
fsx_filesystem_arn,
location_arn,
location_uri,
protocol,
security_group_arns,
storage_virtual_machine_arn
FROM aws.datasync.location_fsx_ontaps
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.datasync.location_fsx_ontaps (
Protocol,
SecurityGroupArns,
StorageVirtualMachineArn,
Subdirectory,
Tags,
region
)
SELECT
'{{ Protocol }}',
'{{ SecurityGroupArns }}' /* required */,
'{{ StorageVirtualMachineArn }}' /* required */,
'{{ Subdirectory }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples

Modifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for ONTAP.

UPDATE aws.datasync.location_fsx_ontaps
SET
LocationArn = '{{ LocationArn }}',
Protocol = '{{ Protocol }}',
Subdirectory = '{{ Subdirectory }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;