{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-migrate/json-schema/microsoft-azure-migrate-hyperv-host-schema.json",
  "title": "HypervHost",
  "description": "A host resource belonging to a site resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-migrate-hypervhostcontroller-api-openapi.yml#/components/schemas/HypervHost",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/HypervHostProperties",
      "description": "The resource-specific properties for this resource.",
      "x-ms-client-flatten": true,
      "x-ms-mutability": [
        "read",
        "create"
      ]
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "HealthErrorDetails": {
      "type": "object",
      "description": "Error contract returned when some exception occurs in Rest API.",
      "properties": {
        "message": {
          "type": "string",
          "description": "Gets the error message.",
          "readOnly": true
        },
        "messageParameters": {
          "type": "object",
          "description": "Gets the message parameters.",
          "additionalProperties": {
            "type": "string"
          },
          "readOnly": true
        },
        "applianceName": {
          "type": "string",
          "description": "Gets the appliance name.",
          "readOnly": true
        },
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Gets the error ID.",
          "readOnly": true
        },
        "code": {
          "type": "string",
          "description": "Gets the error name.",
          "readOnly": true
        },
        "possibleCauses": {
          "type": "string",
          "description": "Gets the possible causes of error.",
          "readOnly": true
        },
        "recommendedAction": {
          "type": "string",
          "description": "Gets the recommended action to resolve error.",
          "readOnly": true
        },
        "severity": {
          "type": "string",
          "description": "Gets the error severity.",
          "readOnly": true
        },
        "summaryMessage": {
          "type": "string",
          "description": "Gets the error summary message.",
          "readOnly": true
        },
        "source": {
          "$ref": "#/$defs/HealthErrorDetailsSource",
          "description": "Gets the error source.",
          "readOnly": true
        },
        "updatedTimeStamp": {
          "type": "string",
          "format": "date-time",
          "description": "Gets the time stamp when the error was updated.",
          "readOnly": true
        },
        "runAsAccountId": {
          "type": "string",
          "description": "Gets run as account id used while performing discovery             of entity.",
          "readOnly": true
        },
        "discoveryScope": {
          "$ref": "#/$defs/HealthErrorDetailsDiscoveryScope",
          "description": "Gets discovery scope for which             error is encountered.",
          "readOnly": true
        }
      }
    },
    "HealthErrorDetailsDiscoveryScope": {
      "type": "string",
      "description": "Gets discovery scope for which             error is encountered.",
      "enum": [
        "AppsAndRoles",
        "DependencyMap",
        "StaticData",
        "SQLServerConnectionInfo",
        "DiscoveryTargets"
      ],
      "x-ms-enum": {
        "name": "HealthErrorDetailsDiscoveryScope",
        "modelAsString": true,
        "values": [
          {
            "name": "AppsAndRoles",
            "value": "AppsAndRoles",
            "description": "AppsAndRoles value."
          },
          {
            "name": "DependencyMap",
            "value": "DependencyMap",
            "description": "DependencyMap value."
          },
          {
            "name": "StaticData",
            "value": "StaticData",
            "description": "StaticData value."
          },
          {
            "name": "SQLServerConnectionInfo",
            "value": "SQLServerConnectionInfo",
            "description": "SQLServerConnectionInfo value."
          },
          {
            "name": "DiscoveryTargets",
            "value": "DiscoveryTargets",
            "description": "DiscoveryTargets value."
          }
        ]
      }
    },
    "HealthErrorDetailsSource": {
      "type": "string",
      "description": "HealthError Details Source",
      "enum": [
        "RefreshFabricLayout",
        "RefreshFabricLayoutGuest",
        "RefreshFabricLayoutDependencyMap"
      ],
      "x-ms-enum": {
        "name": "HealthErrorDetailsSource",
        "modelAsString": true,
        "values": [
          {
            "name": "RefreshFabricLayout",
            "value": "RefreshFabricLayout",
            "description": "RefreshFabricLayout value."
          },
          {
            "name": "RefreshFabricLayoutGuest",
            "value": "RefreshFabricLayoutGuest",
            "description": "RefreshFabricLayoutGuest value."
          },
          {
            "name": "RefreshFabricLayoutDependencyMap",
            "value": "RefreshFabricLayoutDependencyMap",
            "description": "RefreshFabricLayoutDependencyMap value."
          }
        ]
      }
    },
    "HypervHostProperties": {
      "type": "object",
      "description": "The properties of Hyperv Host",
      "properties": {
        "createdTimestamp": {
          "type": "string",
          "description": "Gets the timestamp marking Hyper-V host creation.",
          "readOnly": true
        },
        "updatedTimestamp": {
          "type": "string",
          "description": "Gets the timestamp marking last updated on the Hyper-V host.",
          "readOnly": true
        },
        "fqdn": {
          "type": "string",
          "description": "Gets or sets the FQDN/IPAddress of the Hyper-V host."
        },
        "runAsAccountId": {
          "type": "string",
          "description": "Gets or sets the run as account ID of the Hyper-V host."
        },
        "version": {
          "type": "string",
          "description": "Gets the version of the Hyper-V host.",
          "readOnly": true
        },
        "errors": {
          "type": "array",
          "description": "Gets the errors.",
          "items": {
            "$ref": "#/$defs/HealthErrorDetails"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The status of the last operation."
        }
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "The status of the current operation.",
      "enum": [
        "Created",
        "Updated",
        "Running",
        "Completed",
        "Failed",
        "Succeeded",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Created",
            "value": "Created",
            "description": "Created value."
          },
          {
            "name": "Updated",
            "value": "Updated",
            "description": "Updated value."
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "Running value."
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "Completed value."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed value."
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded value."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled value."
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}