oci_core_compute_image_capability_schema

This resource provides the Compute Image Capability Schema resource in Oracle Cloud Infrastructure Core service.

Creates compute image capability schema.

Example Usage

resource "oci_core_compute_image_capability_schema" "test_compute_image_capability_schema" {
	#Required
	compartment_id = var.compartment_id
	compute_global_image_capability_schema_version_name = var.compute_image_capability_schema_compute_global_image_capability_schema_version_name
	image_id = oci_core_image.test_image.id
	schema_data {
		#Required
		descriptor_type = var.compute_image_capability_schema_schema_data_descriptor_type
		source = var.compute_image_capability_schema_schema_data_source

		#Optional
		default_value = var.compute_image_capability_schema_schema_data_default_value
		values = var.compute_image_capability_schema_schema_data_values
	}

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

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

Import

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

$ terraform import oci_core_compute_image_capability_schema.test_compute_image_capability_schema "id"