This data source provides details about a specific Resource Availability resource in Oracle Cloud Infrastructure Limits service.
For a given compartmentId, resource limit name, and scope, returns the following:
data "oci_limits_resource_availability" "test_resource_availability" {
#Required
compartment_id = var.tenancy_ocid
limit_name = var.resource_availability_limit_name
service_name = oci_limits_service.test_service.name
#Optional
availability_domain = var.resource_availability_availability_domain
}
The following arguments are supported:
availability_domain
- (Optional) This field is mandatory if the scopeType of the target resource limit is AD. Otherwise, this field should be omitted. If the above requirements are not met, the API returns a 400 - InvalidParameter response. compartment_id
- (Required) The OCID of the compartment for which data is being fetched.limit_name
- (Required) The limit name for which to fetch the data.service_name
- (Required) The service name of the target quota.The following attributes are exported:
available
- The count of available resources. To support resources with fractional counts, the field rounds down to the nearest integer. effective_quota_value
- The effective quota value for the given compartment. This field is only present if there is a current quota policy affecting the current resource in the target region or availability domain. fractional_availability
- The most accurate count of available resources. fractional_usage
- The current most accurate usage in the given compartment. used
- The current usage in the given compartment. To support resources with fractional counts, the field rounds up to the nearest integer.