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

arvancloud_iaas_backups (Data Source)

Lists IaaS backup configurations, optionally filtered by availability zone. Also provides the total backup count across all regions via total_count.

Example Usage

# List all backups across all availability zones
data "arvancloud_iaas_backups" "all" {}


# Filter backups by availability zone
data "arvancloud_iaas_backups" "by_az" {
availability_zone = "ir-central1-a"
}

output "total_count" {
value = data.arvancloud_iaas_backups.all.total_count
}

Schema

Optional

  • availability_zone (String) Filter backup configurations by availability zone code name (e.g. ir-central1-a).

Read-Only

  • backups (Attributes List) List of backup configurations matching the specified filters. (see below for nested schema)
  • id (String) Unique identifier for this data source.
  • total_count (Number) Total number of backup slots used across all regions.

Nested Schema for backups

Read-Only:

  • auto_s3 (Boolean) Whether automatic S3 upload is enabled for this backup configuration.
  • availability_zone (String) Availability zone where the backup configuration is located (e.g. ir-central1-a).
  • backup_name (String) Name of the backup configuration.
  • created_at (Number) Unix timestamp (seconds) when the backup configuration was created.
  • next_backup (String) Scheduled time of the next automatic backup.
  • occupancy (Number) Number of backup slots currently in use.
  • quota (Number) Maximum number of backup slots allowed.
  • region (String) Region where the backup configuration is located (e.g. ir-central1).
  • server_id (String) ID of the server instance associated with this backup configuration.
  • server_name (String) Name of the server instance associated with this backup configuration.
  • status (String) Current status of the backup configuration.
  • volume_id (String) Volume ID associated with this backup configuration.