arvancloud_iaas_file_storage (Resource)
Manages an IaaS file storage volume in a specific availability zone.
Example Usage
resource "arvancloud_iaas_file_storage" "example" {
name = "my-fileshare"
size = 100 # GiB
availability_zone = "ir-central1-a"
network_id = "net-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
output "file_storage_id" {
value = arvancloud_iaas_file_storage.example.id
}
output "file_storage_status" {
value = arvancloud_iaas_file_storage.example.status
}
output "file_storage_export_path" {
value = arvancloud_iaas_file_storage.example.export_location_path
}
output "file_storage_region" {
value = arvancloud_iaas_file_storage.example.region
}
Schema
Required
availability_zone(String) Availability zone where the file storage will be created (e.g.ir-central1-a). Changing this value forces a new resource to be created.name(String) Name of the file storage volume. Can be updated in-place via a rename operation.network_id(String) ID of the private network to attach the file storage to. Changing this value forces a new resource to be created.size(Number) Size of the file storage volume in GiB. Can be increased in-place via a resize operation.
Read-Only
access_right_list(Attributes List) List of server instances attached to this file storage and their access details. (see below for nested schema)create_date(Number) Unix timestamp (milliseconds) when the file storage was created.export_location_path(String) NFS export path used to mount the file storage volume.id(String) Unique identifier of the file storage assigned by the API.network_name(String) Name of the private network the file storage is attached to.region(String) Region where the file storage is located (e.g.ir-central1).status(String) Current status of the file storage volume (e.g.available).
Nested Schema for access_right_list
Read-Only:
access_level(String) Access level granted to the server instance (e.g.rw,ro).access_right_id(String) Unique identifier of the access right entry.private_ip(String) Private IP address of the attached server instance.server_id(String) ID of the attached server instance.server_name(String) Name of the attached server instance.server_os(String) Operating system of the attached server instance.
Import
Import is supported using the following syntax:
terraform import arvancloud_iaas_file_storage.example ir-central1-a:2fd564e9-ec02-404c-ac17-50fa36208892