پرش به مطلب اصلی

arvancloud_iaas_file_storages (Data Source)

Lists IaaS file storage volumes, optionally filtered by region or availability zone.

Example Usage

# List all file storages across all regions and availability zones
data "arvancloud_iaas_file_storages" "all" {}


# List file storages in a specific availability zone
data "arvancloud_iaas_file_storages" "by_az" {
availability_zone = "ir-central1-a"
}

output "all_file_storages" {
value = data.arvancloud_iaas_file_storages.all.file_storages
}

output "region_file_storages" {
value = data.arvancloud_iaas_file_storages.by_region.file_storages
}

output "az_file_storages" {
value = data.arvancloud_iaas_file_storages.by_az.file_storages
}

Schema

Optional

  • availability_zone (String) Filter file storages by availability zone code name (e.g. ir-central1-a). Cannot be combined with region.

Read-Only

  • file_storages (Attributes List) List of file storage volumes matching the specified filters. (see below for nested schema)
  • id (String) Unique identifier for this data source.

Nested Schema for file_storages

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)
  • availability_zone (String) Availability zone where the file storage is located (e.g. ir-central1-a).
  • 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.
  • name (String) Name of the file storage volume.
  • network_id (String) ID of the private network the file storage is attached to.
  • 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).
  • size (Number) Size of the file storage volume in GiB.
  • status (String) Current status of the file storage volume.

Nested Schema for file_storages.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.