{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-instance-configuration-schema.json",
  "title": "InstanceConfiguration",
  "description": "An instance configuration is a template that defines the settings to use when creating Compute instances.\n",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-computemanagement-api-openapi.yml#/components/schemas/InstanceConfiguration",
  "properties": {
    "compartmentId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment\ncontaining the instance configuration.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "deferredFields": {
      "description": "Parameters that were not specified when the instance configuration was created, but that\nare required to launch an instance from the instance configuration. See the\n[LaunchInstanceConfiguration](#/en/iaas/latest/Instance/LaunchInstanceConfiguration) operation.\n",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only the String type is supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing a defined tag key and value, scoped to a namespace.\n\nExample: `{\"CostCenter\": \"42\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a\nnamespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).\n\nExample: `{\"Operations\": {\"CostCenter\": \"42\"}}`\n",
      "type": "object"
    },
    "displayName": {
      "description": "A user-friendly name. Does not have to be unique, and it's changeable.\nAvoid entering confidential information.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form tags for this resource. Each tag is a simple key-value pair with no\npredefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).\n\nExample: `{\"Department\": \"Finance\"}`\n",
      "type": "object"
    },
    "id": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "instanceDetails": {
      "$ref": "#/$defs/InstanceConfigurationInstanceDetails"
    },
    "timeCreated": {
      "description": "The date and time the instance configuration was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).\n\nExample: `2016-08-25T21:10:29.600Z`\n",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "compartmentId",
    "timeCreated"
  ],
  "x-example": "{\n  \"compartmentId\" : \"ocid1.tenancy.oc1..&lt;unique_ID&gt;\",\n  \"definedTags\":{},\n  \"displayName\" : \"example-instance-configuration\",\n  \"freeformTags\":{},\n  \"id\" : \"ocid1.instanceconfiguration.oc1.phx.&lt;unique_ID&gt;\",\n  \"instanceDetails\" : {\n    \"instanceType\" : \"compute\",\n    \"launchDetails\" : {\n      \"compartmentId\" : \"ocid1.tenancy.oc1..&lt;unique_ID&gt;\",\n      \"createVnicDetails\" : {\n        \"assignPublicIp\" : false,\n        \"displayName\" : \"example-vnic\",\n        \"skipSourceDestCheck\" : false\n      },\n      \"displayName\" : \"My instance\",\n      \"shape\" : \"VM.Standard2.1\",\n      \"sourceDetails\" : {\n        \"sourceType\" : \"image\",\n        \"imageId\" : \"ocid1.image.oc1.phx.&lt;unique_ID&gt;\"\n      }\n    }\n  },\n  \"deferredFields\" : [\n    \"instanceDetails.launchDetails.availabilityDomain\",\n    \"instanceDetails.launchDetails.createVnicDetails.subnetId\"\n  ],\n  \"timeCreated\" : \"2019-06-13T21:13:32.830Z\"\n}\n",
  "$defs": {
    "InstanceConfigurationInstanceDetails": {
      "properties": {
        "instanceType": {
          "default": "compute",
          "description": "The type of instance details. Supported instanceType is compute\n",
          "type": "string"
        }
      },
      "required": [
        "instanceType"
      ]
    }
  }
}