rso_quota (Data Source)¶
The tenant's current usage against its quotas.
Example Usage¶
# Check headroom and price before creating anything.
data "rso_quota" "current" {}
data "rso_cost_estimate" "small_vm" {
instance_vcpu = 1
instance_ram_gb = 2
instance_disk_gb = 60
}
output "vcpu_remaining" {
value = data.rso_quota.current.remaining["vcpu"]
}
output "small_vm_monthly" {
value = "${data.rso_cost_estimate.small_vm.monthly} ${data.rso_cost_estimate.small_vm.currency}"
}
Schema¶
Read-Only¶
limit(Map of Number) Limit. Keys:vcpu,ramGb,diskGb,vms,ksvcs,pgClusters.remaining(Map of Number) Limit minus usage, never negative. Keys:vcpu,ramGb,diskGb,vms,ksvcs,pgClusters.used(Map of Number) Current usage. Keys:vcpu,ramGb,diskGb,vms,ksvcs,pgClusters.