{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-create-vm-instance-details-schema.json",
  "title": "CreateVmInstanceDetails",
  "description": "Create VM instance details.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-datainfracc-api-openapi.yml#/components/schemas/CreateVmInstanceDetails",
  "properties": {
    "bootStorageSizeInGBs": {
      "description": "Boot storage memory to be allocated in GBs.",
      "format": "double",
      "minimum": 50,
      "type": "number"
    },
    "compartmentId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the VM\ninstance.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "cpusEnabled": {
      "description": "The number of CPU cores enabled for each VM instance.",
      "minimum": 1,
      "type": "integer"
    },
    "dataStorageSizeInGBs": {
      "description": "Data storage to be allocated in GBs.",
      "format": "double",
      "minimum": 1,
      "type": "number"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer, and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tag keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "VM instance description.",
      "maxLength": 400,
      "type": "string"
    },
    "displayName": {
      "description": "VM instance display name. This name does not have to be unique, and is changeable.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`\n",
      "type": "object"
    },
    "imageId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "infrastructureId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the Data Infrastructure.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "isHaEnabled": {
      "default": true,
      "description": "If true, high availability is enabled for the VM instance. If false, high availability is not enabled for the VM instance.\n",
      "type": "boolean"
    },
    "memorySizeInGBs": {
      "description": "The memory to be allocated in GBs.",
      "format": "double",
      "type": "number"
    },
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom metadata key/value pairs which can be used to:\n- Provide information to [Cloud-Init](https://cloudinit.readthedocs.org/en/latest/) to be used for various system initialization tasks.\n- Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.\n",
      "type": "object"
    },
    "serverId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "sshPublicKeys": {
      "description": "List of public key used for SSH access to the VM instance.",
      "items": {
        "maxLength": 1024,
        "minLength": 1,
        "type": "string"
      },
      "type": "array"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Usage of system tag keys. These predefined keys are scoped to namespaces.\nExample: `{ \"orcl-cloud\": { \"free-tier-retained\": \"true\" } }`\n",
      "type": "object"
    },
    "timeZone": {
      "description": "The time zone to use for the VM instance.",
      "type": "string"
    },
    "userdata": {
      "description": "Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. \nFor information about how to take advantage of user data, see the [Cloud-Init Documentation](http://cloudinit.readthedocs.org/en/latest/topics/format.html).\n",
      "type": "string"
    },
    "vmNetworkId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VM Network.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "compartmentId",
    "cpusEnabled",
    "infrastructureId",
    "sshPublicKeys"
  ]
}