{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-install-api-cw-vm-schema.json",
  "title": "install_apiCwVM",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-cwvmmangager-api-openapi.yml#/components/schemas/install_apiCwVM",
  "type": "object",
  "properties": {
    "ManagementIPAddress": {
      "type": "string",
      "title": "The VM's management IP address"
    },
    "DataIPAddress": {
      "type": "string",
      "title": "The VM's data IP address"
    },
    "NodeType": {
      "type": "string",
      "title": "The Cw VM Node type. One of Management, Worker, Hybrid"
    },
    "VMName": {
      "type": "string",
      "title": "The VM Name"
    },
    "CwImage": {
      "type": "string",
      "title": "The VM Image"
    },
    "Cluster_Id": {
      "type": "string",
      "title": "The VM's Cluster ID"
    },
    "HostDataCentre": {
      "$ref": "#/$defs/CwVMDataCentre"
    },
    "Op_Status": {
      "$ref": "#/$defs/install_apiCwVmState",
      "title": "Operational Status - ignored in requests"
    },
    "VmSize": {
      "type": "string",
      "title": "VM Size"
    }
  },
  "$defs": {
    "CwVMDataCentre": {
      "type": "object",
      "properties": {
        "DataCentre_Id": {
          "type": "string",
          "title": "The VM's DataCentre ID"
        },
        "Host": {
          "type": "string",
          "title": "Virtualization host name"
        },
        "Datastore": {
          "type": "string",
          "title": "Datastore name"
        },
        "HSDatastore": {
          "type": "string",
          "title": "High Speed Datastore name"
        }
      }
    },
    "install_apiCwVmState": {
      "type": "string",
      "enum": [
        "Initializing",
        "Down",
        "Running",
        "Degraded",
        "Erased",
        "Failed",
        "Suspended",
        "Configuring",
        "Erasing"
      ],
      "default": "Initializing",
      "title": "- Initializing: Defines unknown/initialized state.\n - Down: When the VM is non-functional.\n - Running: When the VM is completely functional.\n - Degraded: When the VM is running but suspected not to be completely functional.\n - Erased: When the VM is erased but still in the inventory.\n - Failed: When some unrecoverable error happened\n - Suspended: When the VM is suspended\n - Configuring: When the VM is being configured\n - Erasing: When the VM is being destroyed/erased"
    }
  }
}