oci_core_compute_capacity_report

This resource provides the Compute Capacity Report resource in Oracle Cloud Infrastructure Core service.

Generates a report of the host capacity within an availability domain that is available for you to create compute instances. Host capacity is the physical infrastructure that resources such as compute instances run on.

Use the capacity report to determine whether sufficient capacity is available for a shape before you create an instance or change the shape of an instance.

Example Usage

resource "oci_core_compute_capacity_report" "test_compute_capacity_report" {
	#Required
	availability_domain = var.compute_capacity_report_availability_domain
	compartment_id = var.compartment_id
	shape_availabilities {
		#Required
		instance_shape = var.compute_capacity_report_shape_availabilities_instance_shape

		#Optional
		fault_domain = var.compute_capacity_report_shape_availabilities_fault_domain
		instance_shape_config {

			#Optional
			memory_in_gbs = var.compute_capacity_report_shape_availabilities_instance_shape_config_memory_in_gbs
			nvmes = var.compute_capacity_report_shape_availabilities_instance_shape_config_nvmes
			ocpus = var.compute_capacity_report_shape_availabilities_instance_shape_config_ocpus
		}
	}
}

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 Compute Capacity Report * update - (Defaults to 20 minutes), when updating the Compute Capacity Report * delete - (Defaults to 20 minutes), when destroying the Compute Capacity Report

Import

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

$ terraform import oci_core_compute_capacity_report.test_compute_capacity_report "id"