» oci_limits_quota

This resource provides the Quota resource in Oracle Cloud Infrastructure Limits service.

Creates a new quota with the details supplied.

» Example Usage

resource "oci_limits_quota" "test_quota" {
    #Required
    compartment_id = "${var.tenancy_ocid}"
    description = "${var.quota_description}"
    name = "${var.quota_name}"
    statements = "${var.quota_statements}"

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    freeform_tags = {"Department"= "Finance"}
}

» Argument Reference

The following arguments are supported:

  • compartment_id - (Required) The OCID of the compartment containing the resource this quota applies to.
  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • description - (Required) (Updatable) The description you assign to the quota.
  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • name - (Required) The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
  • statements - (Required) (Updatable) An array of quota statements written in the declarative quota statement language.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

» Attributes Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment containing the resource this quota applies to.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • description - The description you assign to the quota.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the quota.
  • name - The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
  • state - The quota's current state.
  • statements - An array of one or more quota statements written in the declarative quota statement language.
  • time_created - Date and time the quota was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

» Import

Quotas can be imported using the id, e.g.

$ terraform import oci_limits_quota.test_quota "id"