» oci_datascience_model

This resource provides the Model resource in Oracle Cloud Infrastructure Datascience service.

Creates a new model.

» Example Usage

resource "oci_datascience_model" "test_model" {
    artifact_content_length = "${var.artifact_content_length}"
    model_artifact = "${var.model_artifact}"
    compartment_id = "${var.compartment_id}"
    project_id = "${oci_datascience_project.test_project.id}"

    artifact_content_disposition = "${var.content_disposition}" 
    defined_tags = {"Operations.CostCenter"= "42"}
    description = "${var.model_description}"
    display_name = "${var.model_display_name}"
    freeform_tags = {"Department"= "Finance"}

» Argument Reference

The following arguments are supported:

  • artifact_content_length - (Required) The length of the artifact to upload.
  • artifact_content_disposition - (Optional) The content disposition of the artifact to upload.
  • model_artifact - (Required) The model artifact to upload.
  • compartment_id - (Required) (Updatable) The OCID of the compartment to create the model in.
  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
  • description - (Optional) (Updatable) A short blurb describing the model.
  • display_name - (Optional) (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: My Model
  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
  • project_id - (Required) The OCID of the project to associate with the model.

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

» Import

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

$ terraform import oci_datascience_model.test_model "id"