{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-vm-instance-schema.json",
  "title": "VmInstance",
  "description": "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/VmInstance",
  "properties": {
    "bootStorageSizeInGBs": {
      "description": "Boot storage memory to be allocated in GBs.",
      "format": "double",
      "type": "number"
    },
    "compartmentId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the VM\ninstance.\n",
      "type": "string"
    },
    "cpusEnabled": {
      "description": "The number of CPU cores enabled for each VM instance.",
      "type": "integer"
    },
    "dataStorageSizeInGBs": {
      "description": "Data storage to be allocated in GBs.",
      "format": "double",
      "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.",
      "type": "string"
    },
    "displayName": {
      "description": "VM instance display name. This name does not have to be unique, and is changeable.\n",
      "type": "string"
    },
    "dnsServers": {
      "description": "The list of DNS server IP addresses. Maximum of 3 allowed.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "domainName": {
      "description": "The domain name of the VM instance.",
      "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"
    },
    "gateway": {
      "description": "The gateway IP address of the VM instance network.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "hostname": {
      "description": "The host name of the instance.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "id": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VM instance.",
      "type": "string"
    },
    "imageId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VM custom instance uploaded.",
      "type": "string"
    },
    "infrastructureId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the Data Infrastructure.",
      "type": "string"
    },
    "ipAddress": {
      "description": "The IP address of the instance.",
      "maxLength": 255,
      "type": "string"
    },
    "isHaEnabled": {
      "description": "Indicates whether high availability is enabled for the VM instance.",
      "type": "boolean"
    },
    "lifecycleDetails": {
      "description": "Lifecycle state details of the VM instance.",
      "type": "string"
    },
    "lifecycleState": {
      "description": "The current state of the VM instance.",
      "enum": [
        "CREATING",
        "ACTIVE",
        "INACTIVE",
        "UPDATING",
        "DELETING",
        "DELETED"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/VmInstanceLifecycleState"
    },
    "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"
    },
    "netmask": {
      "description": "The netmask of the VM instance network.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "ntpServers": {
      "description": "The list of NTP server addresses. Maximum of 3 allowed.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "serverId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compute node on which VM instance should be launched.",
      "type": "string"
    },
    "sshPublicKeys": {
      "description": "List of public key used for SSH access to the VM instance.",
      "items": {
        "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"
    },
    "timeCreated": {
      "description": "The time that the VM instance was created. An RFC3339 formatted datetime string.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time that the VM instance was last updated. An RFC3339 formatted datetime string.\n",
      "format": "date-time",
      "type": "string"
    },
    "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"
    },
    "vlanId": {
      "description": "The network VLAN ID.",
      "type": "string"
    },
    "vmNetworkId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VM Network.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "compartmentId",
    "lifecycleState",
    "cpusEnabled",
    "sshPublicKeys",
    "timeCreated",
    "timeUpdated",
    "timeZone",
    "infrastructureId"
  ],
  "type": "object"
}