{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-install-api-vmmdump-schema.json",
  "title": "install_apiVMMDump",
  "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_apiVMMDump",
  "type": "object",
  "properties": {
    "VCentres": {
      "$ref": "#/$defs/install_apiDCsResp"
    },
    "CwClusters": {
      "$ref": "#/$defs/install_apiClustersResp"
    },
    "CwVMs": {
      "$ref": "#/$defs/install_apiVMsResp"
    }
  },
  "$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_apiClustersResp": {
      "type": "object",
      "properties": {
        "CwClusterAndActions": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/install_apiCwClusterAndActions"
          },
          "description": "Map is keyed by cluster id."
        }
      }
    },
    "install_apiCwCluster": {
      "type": "object",
      "properties": {
        "Cw_VM_Image": {
          "type": "string",
          "title": "Target Cw cluster image"
        },
        "ClusterIPStack": {
          "type": "string",
          "description": "Cluster IP Stack Type; IPv4 or IPv6."
        },
        "ManagementVIP": {
          "type": "string",
          "title": "Cluster Management Virtual IPv4 address"
        },
        "ManagementIPNetmask": {
          "type": "string",
          "title": "Cluster Management netmask in dotted decimal"
        },
        "ManagementIPGateway": {
          "type": "string",
          "title": "Cluster Management default gateway"
        },
        "DataVIP": {
          "type": "string",
          "title": "Cluster Data Virtual IPv4 address"
        },
        "DataIPNetmask": {
          "type": "string",
          "title": "Cluster Data netmask in dotted decimal"
        },
        "DataIPGateway": {
          "type": "string",
          "title": "Cluster Data default gateway"
        },
        "DNS": {
          "type": "string",
          "title": "DNS server address"
        },
        "DomainName": {
          "type": "string",
          "title": "DNS Domain Name used by the cluster"
        },
        "CWPassword": {
          "type": "string",
          "title": "Cluster VMs password"
        },
        "VMSize": {
          "type": "string",
          "title": "Cluster VMs size profile (Small, Medium or Large)"
        },
        "NTP": {
          "type": "string",
          "title": "NTP Server address"
        },
        "ClusterHostName": {
          "type": "string",
          "title": "Virtual Host name for the cluster"
        },
        "ClusterName": {
          "type": "string",
          "title": "The name/id of the cluster and DC"
        },
        "ClusterVMs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "List of VMs in the cluster"
        },
        "SchemaVersion": {
          "type": "string",
          "title": "The configuration schema version"
        }
      }
    },
    "install_apiCwClusterAndActions": {
      "type": "object",
      "properties": {
        "CwCluster": {
          "$ref": "#/$defs/install_apiCwCluster"
        },
        "ClusterActions": {
          "$ref": "#/$defs/install_apiNodeActions"
        }
      }
    },
    "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"
        }
      }
    },
    "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"
    },
    "install_apiDCsResp": {
      "type": "object",
      "properties": {
        "VCentres": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/install_apiVCentreDC"
          },
          "description": "Map is keyed by VCentre id."
        }
      }
    },
    "install_apiNodeActions": {
      "type": "object",
      "properties": {
        "Actions": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean",
            "format": "boolean"
          }
        }
      },
      "title": "Node Actions"
    },
    "install_apiVCentreDC": {
      "type": "object",
      "properties": {
        "DCname": {
          "type": "string",
          "title": "The vCentre DC Name, used as DC id"
        },
        "VCentreAddress": {
          "type": "string",
          "title": "The vCentre address"
        },
        "VCentreUser": {
          "type": "string",
          "title": "The vCentre username"
        },
        "VCentrePassword": {
          "type": "string",
          "title": "The vCentre password"
        },
        "MgmtNetworkName": {
          "type": "string",
          "title": "The name of the network in vCentre to be used as the Cw VM Management network"
        },
        "DataNetworkName": {
          "type": "string",
          "title": "The name of the network in vCentre to be used as the Cw VM Data network"
        },
        "DCfolder": {
          "type": "string",
          "title": "The folder on the vCentre"
        },
        "VMs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/install_apiVMResource"
          }
        }
      }
    },
    "install_apiVMResource": {
      "type": "object",
      "properties": {
        "Host": {
          "type": "string",
          "title": "Virtualization host name"
        },
        "Datastore": {
          "type": "string",
          "title": "Datastore name"
        },
        "HSDatastore": {
          "type": "string",
          "title": "High Speed Datastore name"
        },
        "HostedCwVMs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "List of Cw VMs on this DC"
        }
      }
    },
    "install_apiVMsResp": {
      "type": "object",
      "properties": {
        "CwVMs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/install_apiCwVM"
          },
          "description": "Map is keyed by VM Crosswork assigned id."
        }
      }
    }
  }
}