{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://vmware.com/schemas/vcsa-cli-installer/decommission/decommission_mxn.json",
  "type": "dict",
  "properties": {
    "__version": {
            "type": "string",
            "default": "2.11.0"
    },
    "__comments": ["Template schema to converge an external Platform Services Controller ",
    "appliance to an embedded Platform Services Controller."],
    "psc": {
      "type": "dict",
      "properties": {
        "managing_esxi_or_vc": {
          "type": "dict",
          "properties": {
        "hostname": {
          "type": "string",
          "default": "Required, but this value has not been provided."
        },
        "port": {
          "type": "int",
          "default": 443
        },
        "ssl_certificate_verification": {
          "type": "dict",
          "properties": {
            "thumbprint": {
              "type": "string"
            },
            "verification_mode": {
              "type": "string"
            }
          },
          "required": [
            {
              "oneOf": [
                "thumbprint",
                 "verification_mode"
              ]
            }
          ]
        },
        "username": {
          "type": "string",
          "default": "administrator@<SSO domain name>"
        },
          "password": {
          "type": "string",
          "default": ""
        }
          },
          "required": [
        "hostname",
        "username"
          ]
        },
        "psc_appliance": {
          "type": "dict",
          "properties": {
          "hostname": {
          "type": "string",
          "default": "Required, but this value has not been provided."
        },
          "username": {
          "type": "string",
          "default": "administrator@<SSO domain name>"
        },
          "password": {
          "type": "string",
          "default": ""
        },
          "root_password": {
          "type": "string",
          "default": ""
        }
          },
          "required": [
        "hostname",
        "username"
          ]
        }
      },
      "required": [
        "managing_esxi_or_vc",
        "psc_appliance"
      ]
    },
    "vcenter": {
      "type": "dict",
      "properties": {
        "managing_esxi_or_vc": {
          "type": "dict",
          "properties": {
        "hostname": {
          "type": "string",
          "default": "Required, but this value has not been provided."
        },
        "port": {
          "type": "int",
          "default": 443
        },
        "ssl_certificate_verification": {
          "type": "dict",
          "properties": {
            "thumbprint": {
              "type": "string"
            },
            "verification_mode": {
              "type": "string"
            }
          },
          "required": [
            {
              "oneOf": [
                "thumbprint",
                 "verification_mode"
              ]
            }
          ]
        },
        "username": {
          "type": "string",
          "default": "administrator@<SSO domain name>"
        },
        "password": {
          "type": "string",
          "default": ""
        }
          },
          "required": [
        "hostname",
        "username"
          ]
        },
        "vc_appliance": {
          "type": "dict",
          "properties": {
        "hostname": {
          "type": "string",
          "default": "Required, but this value has not been provided."
        },
        "username": {
          "type": "string",
          "default": "administrator@<SSO domain name>"
        },
        "password": {
          "type": "string",
          "default": ""
        },
        "root_password": {
          "type": "string",
          "default": ""
        }
          },
          "required": [
        "hostname",
        "username"
          ]
        }
      },
      "required": [
        "managing_esxi_or_vc",
        "vc_appliance"
      ]
    },
   "replication": {
      "type": "dict",
      "properties":{
        "partner": {
        "type": "dict",
        "properties": {
          "hostname": {
          "type": "string",
          "default": "Required, but this value has not been provided."
          }
        },
      "required": [
         "hostname"
     ]
    }
},
    "required": [
       "partner"
]
    }
  },
  "required": [
    "__version",
    "vcenter",
    "psc"
  ]
}
