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
	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
		associated_occ_handover_resource_block_list {

			#Optional
			handover_quantity = var.occ_capacity_request_details_associated_occ_handover_resource_block_list_handover_quantity
			occ_handover_resource_block_id = oci_capacity_management_occ_handover_resource_block.test_occ_handover_resource_block.id
		}
		availability_domain = var.occ_capacity_request_details_availability_domain
		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
		source_workload_type = var.occ_capacity_request_details_source_workload_type
	}
	display_name = var.occ_capacity_request_display_name
	namespace = var.occ_capacity_request_namespace
	occ_capacity_request_id = var.occ_capacity_request_occ_capacity_request_id
	region = var.occ_capacity_request_region

	#Optional
	availability_domain = var.occ_capacity_request_availability_domain
	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
	occ_availability_catalog_id = oci_capacity_management_occ_availability_catalog.test_occ_availability_catalog.id
	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
	request_type = var.occ_capacity_request_request_type
}

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"