oci_capacity_management_occ_capacity_request

This resource provides the Occ Capacity Request resource in Oracle Cloud Infrastructure Capacity Management service.

Create Capacity Request. Updates the OccCapacityRequest by evaluating a sequence of instructions.

Example Usage

resource "oci_capacity_management_occ_capacity_request" "test_occ_capacity_request" {
    #Required
    availability_domain = var.occ_capacity_request_availability_domain
    compartment_id = var.compartment_id
    date_expected_capacity_handover = var.occ_capacity_request_date_expected_capacity_handover
    details {
        #Required
        demand_quantity = var.occ_capacity_request_details_demand_quantity
        resource_name = oci_usage_proxy_resource.test_resource.name
        resource_type = var.occ_capacity_request_details_resource_type
        workload_type = var.occ_capacity_request_details_workload_type

        #Optional
        actual_handover_quantity = var.occ_capacity_request_details_actual_handover_quantity
        date_actual_handover = var.occ_capacity_request_details_date_actual_handover
        date_expected_handover = var.occ_capacity_request_details_date_expected_handover
        expected_handover_quantity = var.occ_capacity_request_details_expected_handover_quantity
    }
    display_name = var.occ_capacity_request_display_name
    namespace = var.occ_capacity_request_namespace
    occ_availability_catalog_id = oci_capacity_management_occ_availability_catalog.test_occ_availability_catalog.id
    occ_capacity_request_id = var.occ_capacity_request_occ_capacity_request_id
    region = var.occ_capacity_request_region

    #Optional
    defined_tags = {"foo-namespace.bar-key"= "value"}
    description = var.occ_capacity_request_description
    freeform_tags = {"bar-key"= "value"}
    lifecycle_details = var.occ_capacity_request_lifecycle_details
    patch_operations {
        #Required
        operation = var.occ_capacity_request_patch_operations_operation
        selection = var.occ_capacity_request_patch_operations_selection

        #Optional
        from = var.occ_capacity_request_patch_operations_from
        position = var.occ_capacity_request_patch_operations_position
        selected_item = var.occ_capacity_request_patch_operations_selected_item
        value = var.occ_capacity_request_patch_operations_value
        values = var.occ_capacity_request_patch_operations_values
    }
    request_state = var.occ_capacity_request_request_state
}

Argument Reference

The following arguments are supported:

* 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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Occ Capacity Request * update - (Defaults to 20 minutes), when updating the Occ Capacity Request * delete - (Defaults to 20 minutes), when destroying the Occ Capacity Request

Import

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

$ terraform import oci_capacity_management_occ_capacity_request.test_occ_capacity_request "id"