Skip to main content

storage_virtual_machines

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

Overview

Namestorage_virtual_machines
TypeResource
Idaws.fsx.storage_virtual_machines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_directory_configurationobjectDescribes the Microsoft Active Directory configuration to which the SVM is joined, if applicable.
creation_timestring (date-time)The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
endpointsobjectThe endpoints that are used to access data or to manage the SVM using the NetApp ONTAP CLI, REST API, or NetApp CloudManager. They are the Iscsi, Management, Nfs, and Smb endpoints.
file_system_idstringThe globally unique ID of the file system, assigned by Amazon FSx. (pattern: <code>^(fs-[0-9a-f]{8,})$</code>)
lifecyclestringDescribes the SVM's lifecycle status. CREATED - The SVM is fully available for use. CREATING - Amazon FSx is creating the new SVM. DELETING - Amazon FSx is deleting an existing SVM. FAILED - Amazon FSx was unable to create the SVM. MISCONFIGURED - The SVM is in a failed but recoverable state. PENDING - Amazon FSx has not started creating the SVM. (CREATED, CREATING, DELETING, FAILED, MISCONFIGURED, PENDING)
lifecycle_transition_reasonobjectDescribes why a resource lifecycle state changed.
namestringThe name of the SVM, if provisioned. (pattern: <code>^[^\u0000\u0085\u2028\u2029\r\n]{1,47}$</code>)
resource_arnstringThe Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. (pattern: <code>^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(.\d{1,3}){3})(?![^:]-{2})(?![^:]-.)(?![^:].-)[a-z0-9].(?<!-)):){4}(?!/).{0,1024}$</code>)
root_volume_security_stylestringThe security style of the root volume of the SVM. (UNIX, NTFS, MIXED)
storage_virtual_machine_idstringThe SVM's system generated unique ID. (pattern: <code>^(svm-[0-9a-f]{17,})$</code>)
subtypestringDescribes the SVM's subtype. (DEFAULT, DP_DESTINATION, SYNC_DESTINATION, SYNC_SOURCE)
tagsarrayA list of Tag values, with a maximum of 50 elements.
uuidstringThe SVM's UUID (universally unique identifier). (pattern: <code>^[^\u0000\u0085\u2028\u2029\r\n]{1,36}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_storage_virtual_machinesselectregionDescribes one or more Amazon FSx for NetApp ONTAP storage virtual machines (SVMs).
create_storage_virtual_machineinsertregion, FileSystemIdCreates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.
update_storage_virtual_machineupdateregion, StorageVirtualMachineIdUpdates an FSx for ONTAP storage virtual machine (SVM).
delete_storage_virtual_machinedeleteregionDeletes an existing Amazon FSx for ONTAP storage virtual machine (SVM). Prior to deleting an SVM, you must delete all non-root volumes in the SVM, otherwise the operation will fail.

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

Describes one or more Amazon FSx for NetApp ONTAP storage virtual machines (SVMs).

SELECT
active_directory_configuration,
creation_time,
endpoints,
file_system_id,
lifecycle,
lifecycle_transition_reason,
name,
resource_arn,
root_volume_security_style,
storage_virtual_machine_id,
subtype,
tags,
uuid
FROM aws.fsx.storage_virtual_machines
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.

INSERT INTO aws.fsx.storage_virtual_machines (
ActiveDirectoryConfiguration,
ClientRequestToken,
FileSystemId,
Name,
SvmAdminPassword,
Tags,
RootVolumeSecurityStyle,
region
)
SELECT
'{{ ActiveDirectoryConfiguration }}',
'{{ ClientRequestToken }}',
'{{ FileSystemId }}' /* required */,
'{{ Name }}',
'{{ SvmAdminPassword }}',
'{{ Tags }}',
'{{ RootVolumeSecurityStyle }}',
'{{ region }}'
RETURNING
storage_virtual_machine
;

UPDATE examples

Updates an FSx for ONTAP storage virtual machine (SVM).

UPDATE aws.fsx.storage_virtual_machines
SET
ActiveDirectoryConfiguration = '{{ ActiveDirectoryConfiguration }}',
ClientRequestToken = '{{ ClientRequestToken }}',
StorageVirtualMachineId = '{{ StorageVirtualMachineId }}',
SvmAdminPassword = '{{ SvmAdminPassword }}'
WHERE
region = '{{ region }}' --required
AND StorageVirtualMachineId = '{{ StorageVirtualMachineId }}' --required
RETURNING
storage_virtual_machine;

DELETE examples

Deletes an existing Amazon FSx for ONTAP storage virtual machine (SVM). Prior to deleting an SVM, you must delete all non-root volumes in the SVM, otherwise the operation will fail.

DELETE FROM aws.fsx.storage_virtual_machines
WHERE region = '{{ region }}' --required
;