{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-site-recovery/json-schema/microsoft-azure-site-recovery-cluster-test-failover-input-schema.json",
  "title": "ClusterTestFailoverInput",
  "description": "Input definition for test cluster failover.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-site-recovery-replicationprotectionclusters-api-openapi.yml#/components/schemas/ClusterTestFailoverInput",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ClusterTestFailoverInputProperties",
      "description": "Test failover input properties."
    }
  },
  "required": [
    "properties"
  ],
  "$defs": {
    "ClusterTestFailoverInputProperties": {
      "type": "object",
      "description": "Input definition for test failover input properties.",
      "properties": {
        "failoverDirection": {
          "$ref": "#/$defs/FailoverDirection",
          "description": "Failover direction."
        },
        "networkType": {
          "type": "string",
          "description": "Network type to be used for test failover."
        },
        "networkId": {
          "type": "string",
          "format": "arm-id",
          "description": "The id of the network to be used for test failover.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/virtualNetworks"
              }
            ]
          }
        },
        "providerSpecificDetails": {
          "$ref": "#/$defs/ClusterTestFailoverProviderSpecificInput",
          "description": "Provider specific settings."
        }
      }
    },
    "ClusterTestFailoverProviderSpecificInput": {
      "type": "object",
      "description": "Provider specific test cluster failover input.",
      "properties": {
        "instanceType": {
          "type": "string",
          "description": "The class type."
        }
      },
      "required": [
        "instanceType"
      ]
    },
    "FailoverDirection": {
      "type": "string",
      "description": "Failover direction.",
      "enum": [
        "PrimaryToRecovery",
        "RecoveryToPrimary"
      ],
      "x-ms-enum": {
        "name": "FailoverDirection",
        "modelAsString": true,
        "values": [
          {
            "name": "PrimaryToRecovery",
            "value": "PrimaryToRecovery",
            "description": "PrimaryToRecovery"
          },
          {
            "name": "RecoveryToPrimary",
            "value": "RecoveryToPrimary",
            "description": "RecoveryToPrimary"
          }
        ]
      }
    }
  }
}