{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-compute-host-schema.json",
  "title": "ComputeHost",
  "description": "The customer facing object includes host details.\n",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-compute-api-openapi.yml#/components/schemas/ComputeHost",
  "properties": {
    "additionalData": {
      "additionalProperties": {
        "type": "object"
      },
      "description": "Additional data that can be exposed to the customer.  Will include raw fault codes for strategic customers\n",
      "type": "object"
    },
    "availabilityDomain": {
      "description": "The availability domain of the compute host.\n\nExample: `Uocm:US-CHICAGO-1-AD-2`\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "capacityReservationId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Capacity Reserver that is currently on host\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "compartmentId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root\ncompartment.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "computeHostGroupId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group associated with the Compute Bare Metal Host.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "configurationData": {
      "$ref": "#/$defs/ComputeHostConfigurationData"
    },
    "configurationState": {
      "description": "Configuration state of the Compute Bare Metal Host.\n",
      "enum": [
        "CONFORMANT",
        "NON_CONFORMANT",
        "CHECKING",
        "PRE_APPLYING",
        "APPLYING",
        "UNKNOWN"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/ConfigurationState"
    },
    "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"
    },
    "faultDomain": {
      "description": "A fault domain is a grouping of hardware and infrastructure within an availability domain.\nEach availability domain contains three fault domains. Fault domains let you distribute your\ninstances so that they are not on the same physical hardware within a single availability domain.\nA hardware failure or Compute hardware maintenance that affects one fault domain does not affect\ninstances in other fault domains.\n\nThis field is the Fault domain of the host\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "firmwareBundleId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique firmware bundle associated with the Host.\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"
    },
    "gpuMemoryFabricId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique GPU Memory Fabric\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "health": {
      "description": "The heathy state of the host\n",
      "enum": [
        "HEALTHY",
        "UNHEALTHY"
      ],
      "type": "string"
    },
    "hpcIslandId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "id": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "impactedComponentDetails": {
      "additionalProperties": {
        "type": "object"
      },
      "description": "A list that contains impacted components related to an unhealthy host. An impacted component will be a \nfree-form structure of key values pairs that will provide more or less details based on data tiering\n",
      "type": "object"
    },
    "instanceId": {
      "description": "The public [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Virtual Machine or Bare Metal instance\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleDetails": {
      "additionalProperties": {
        "type": "object"
      },
      "description": "A free-form description detailing why the host is in its current state.\n",
      "type": "object"
    },
    "lifecycleState": {
      "description": "The lifecycle state of the host\n",
      "enum": [
        "AVAILABLE",
        "OCCUPIED",
        "PROVISIONING",
        "REPAIR",
        "UNAVAILABLE"
      ],
      "type": "string"
    },
    "localBlockId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "networkBlockId": {
      "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "platform": {
      "description": "The platform of the host\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "recycleDetails": {
      "$ref": "#/$defs/RecycleDetails"
    },
    "shape": {
      "description": "The shape of host\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "timeConfigurationCheck": {
      "description": "The date and time that the compute bare metal host configuration check was updated, 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"
    },
    "timeCreated": {
      "description": "The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools\n.ietf.org/html/rfc3339).\n\nExample: `2016-08-25T21:10:29.600Z`\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The date and time that the compute host record was updated, 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": [
    "compartmentId",
    "availabilityDomain",
    "id",
    "faultDomain",
    "shape",
    "health",
    "lifecycleState",
    "timeCreated",
    "timeUpdated"
  ],
  "$defs": {
    "ComputeHostConfigurationCheckDetails": {
      "description": "Compute Host Group Configuration Details Check\n",
      "properties": {
        "configurationState": {
          "description": "The current state of the host configuration. The Host is either |\nCONFORMANT - current state matches the desired configuration\nNON_CONFORMANT - current state does not match the desired configuration\nPRE_APPLYING, APPLYING, CHECKING- transitional states\nUNKNOWN - current state is unknown\n",
          "enum": [
            "CONFORMANT",
            "NON_CONFORMANT",
            "CHECKING",
            "PRE_APPLYING",
            "APPLYING",
            "UNKNOWN"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/ConfigurationState"
        },
        "firmwareBundleId": {
          "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique firmware bundle associated with the Host Configuration.\n",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "recycleLevel": {
          "description": "Preferred recycle level for hosts associated with the reservation config.\n* `SKIP_RECYCLE` - Skips host wipe.\n* `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior.\n",
          "enum": [
            "SKIP_RECYCLE",
            "FULL_RECYCLE"
          ],
          "type": "string"
        },
        "type": {
          "description": "The type of configuration",
          "enum": [
            "FIRMWARE",
            "RECYCLE"
          ],
          "type": "string"
        }
      }
    },
    "ComputeHostConfigurationData": {
      "description": "Compute Host Configuration Data\n",
      "properties": {
        "checkDetails": {
          "$ref": "#/$defs/ComputeHostConfigurationCheckDetails"
        },
        "timeLastApply": {
          "description": "The time that was last applied.",
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "RecycleDetails": {
      "description": "Shows details about the last recycle performed on this host.\n",
      "properties": {
        "computeHostGroupId": {
          "description": "The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compute host group this host was attached to at the time of recycle. \n",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "recycleLevel": {
          "description": "Preferred recycle level for hosts associated with the reservation config.\n* `SKIP_RECYCLE` - Skips host wipe.\n* `FULL_RECYCLE` - Does not skip host wipe. This is the default behavior.\n",
          "enum": [
            "SKIP_RECYCLE",
            "FULL_RECYCLE"
          ],
          "type": "string"
        }
      }
    }
  }
}