CreateStorageVirtualMachine
Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.
Request Syntax
{
"ActiveDirectoryConfiguration": {
"NetBiosName": "string
",
"SelfManagedActiveDirectoryConfiguration": {
"DnsIps": [ "string
" ],
"DomainName": "string
",
"FileSystemAdministratorsGroup": "string
",
"OrganizationalUnitDistinguishedName": "string
",
"Password": "string
",
"UserName": "string
"
}
},
"ClientRequestToken": "string
",
"FileSystemId": "string
",
"Name": "string
",
"RootVolumeSecurityStyle": "string
",
"SvmAdminPassword": "string
",
"Tags": [
{
"Key": "string
",
"Value": "string
"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- ActiveDirectoryConfiguration
-
Describes the self-managed Microsoft Active Directory to which you want to join the SVM. Joining an Active Directory provides user authentication and access control for SMB clients, including Microsoft Windows and macOS clients accessing the file system.
Type: CreateSvmActiveDirectoryConfiguration object
Required: No
- ClientRequestToken
-
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
[A-za-z0-9_.-]{0,63}$
Required: No
- FileSystemId
-
The globally unique ID of the file system, assigned by Amazon FSx.
Type: String
Length Constraints: Minimum length of 11. Maximum length of 21.
Pattern:
^(fs-[0-9a-f]{8,})$
Required: Yes
- Name
-
The name of the SVM.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 47.
Pattern:
^[^\u0000\u0085\u2028\u2029\r\n]{1,47}$
Required: Yes
- RootVolumeSecurityStyle
-
The security style of the root volume of the SVM. Specify one of the following values:
-
UNIX
if the file system is managed by a UNIX administrator, the majority of users are NFS clients, and an application accessing the data uses a UNIX user as the service account. -
NTFS
if the file system is managed by a Microsoft Windows administrator, the majority of users are SMB clients, and an application accessing the data uses a Microsoft Windows user as the service account. -
MIXED
This is an advanced setting. For more information, see Volume security style in the Amazon FSx for NetApp ONTAP User Guide.
Type: String
Valid Values:
UNIX | NTFS | MIXED
Required: No
-
- SvmAdminPassword
-
The password to use when managing the SVM using the NetApp ONTAP CLI or REST API. If you do not specify a password, you can still use the file system's
fsxadmin
user to manage the SVM.Type: String
Length Constraints: Minimum length of 8. Maximum length of 50.
Pattern:
^[^\u0000\u0085\u2028\u2029\r\n]{8,50}$
Required: No
- Tags
-
A list of
Tag
values, with a maximum of 50 elements.Type: Array of Tag objects
Array Members: Minimum number of 1 item. Maximum number of 50 items.
Required: No
Response Syntax
{
"StorageVirtualMachine": {
"ActiveDirectoryConfiguration": {
"NetBiosName": "string",
"SelfManagedActiveDirectoryConfiguration": {
"DnsIps": [ "string" ],
"DomainName": "string",
"FileSystemAdministratorsGroup": "string",
"OrganizationalUnitDistinguishedName": "string",
"UserName": "string"
}
},
"CreationTime": number,
"Endpoints": {
"Iscsi": {
"DNSName": "string",
"IpAddresses": [ "string" ]
},
"Management": {
"DNSName": "string",
"IpAddresses": [ "string" ]
},
"Nfs": {
"DNSName": "string",
"IpAddresses": [ "string" ]
},
"Smb": {
"DNSName": "string",
"IpAddresses": [ "string" ]
}
},
"FileSystemId": "string",
"Lifecycle": "string",
"LifecycleTransitionReason": {
"Message": "string"
},
"Name": "string",
"ResourceARN": "string",
"RootVolumeSecurityStyle": "string",
"StorageVirtualMachineId": "string",
"Subtype": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
],
"UUID": "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- StorageVirtualMachine
-
Returned after a successful
CreateStorageVirtualMachine
operation; describes the SVM just created.Type: StorageVirtualMachine object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ActiveDirectoryError
-
An Active Directory error.
HTTP Status Code: 400
- BadRequest
-
A generic error indicating a failure with a client request.
HTTP Status Code: 400
- FileSystemNotFound
-
No Amazon FSx file systems were found based upon supplied parameters.
HTTP Status Code: 400
- IncompatibleParameterError
-
The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
HTTP Status Code: 400
- InternalServerError
-
A generic error indicating a server-side failure.
HTTP Status Code: 500
- ServiceLimitExceeded
-
An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting AWS Support.
HTTP Status Code: 400
- UnsupportedOperation
-
The requested operation is not supported for this resource or API.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: