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¶
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 from the provider block. See the provider reference for how to define profiles.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).