qumulo_directory_quota (Resource)¶
Manages a directory quota on a Qumulo cluster.
Directory quotas limit the amount of data that can be stored in a directory and its subdirectories. The quota is specified in bytes as a string to handle very large values.
Example Usage¶
Installation¶
terraform {
required_providers {
qumulo = {
source = "qumulo-terraform-registry.s3.us-east-1.amazonaws.com/qumulo/qumulo"
version = "~> 1.0"
}
}
}
Basic Quota¶
resource "qumulo_directory_quota" "user_home" {
connection_profile = "prod"
directory_path = "/data/user_home"
limit = "1099511627776" # 1TB in bytes
}
Multi-Cluster with for_each¶
variable "clusters" {
type = set(string)
default = ["prod", "dr"]
}
resource "qumulo_directory_quota" "shared" {
for_each = var.clusters
connection_profile = each.value
directory_path = "/shared"
limit = "10995116277760" # 10TB
}
Import¶
Directory quotas can be imported using the format connection_profile,directory_path:
Schema¶
Required¶
connection_profile(String) Name of a connection profile defined in the provider block.
Connection profiles centralize cluster credentials at the provider level. Define profiles in the provider block:
provider "qumulo" {
connection_profiles = [
{
name = "prod"
endpoint = "https://cluster.example.com:8000"
username = "admin"
password = var.cluster_password
insecure_skip_verify = true # For self-signed certificates
}
]
}
directory_path (String) The filesystem path to the directory. Must be an existing directory on the cluster. Changing this value will destroy and recreate the quota on the new directory.
- limit (String) The quota limit in bytes. Use a string to avoid precision loss for large values. Example: "1099511627776" for 1TB.
Read-Only¶
capacity_usage(String) Current storage usage in bytes. Updated on every read.directory_id(String) The directory ID resolved from the directory_path. This is used internally for API calls.id(String) The unique ID of the directory (same as directory_id).