oci_generative_ai_endpoint

This resource provides the Endpoint resource in Oracle Cloud Infrastructure Generative AI service.

Creates an endpoint.

The header contains an opc-work-request-id, which is the id for the WorkRequest that tracks the endpoint creation progress.

Example Usage

resource "oci_generative_ai_endpoint" "test_endpoint" {
	#Required
	compartment_id = var.compartment_id
	dedicated_ai_cluster_id = oci_generative_ai_dedicated_ai_cluster.test_dedicated_ai_cluster.id
	model_id = oci_generative_ai_model.test_model.id

	#Optional
	content_moderation_config {
		#Required
		is_enabled = var.endpoint_content_moderation_config_is_enabled
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.endpoint_description
	display_name = var.endpoint_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 Endpoint * update - (Defaults to 20 minutes), when updating the Endpoint * delete - (Defaults to 20 minutes), when destroying the Endpoint

Import

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

$ terraform import oci_generative_ai_endpoint.test_endpoint "id"