{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-express-route/json-schema/microsoft-azure-express-route-express-route-link-failover-all-tests-details-schema.json",
  "title": "ExpressRouteLinkFailoverAllTestsDetails",
  "description": "ExpressRoute circuit link failover test details for all tests.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-express-route-expressroute-circuits-api-openapi.yml#/components/schemas/ExpressRouteLinkFailoverAllTestsDetails",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/FailoverTestStatus",
      "description": "The current status of the test."
    },
    "startTime": {
      "type": "string",
      "description": "Time when the test was started."
    },
    "endTime": {
      "type": "string",
      "description": "Time when the test was completed."
    },
    "testGuid": {
      "type": "string",
      "description": "The unique GUID associated with the test."
    },
    "testType": {
      "$ref": "#/$defs/FailoverTestType",
      "description": "The type of failover test."
    },
    "issues": {
      "type": "array",
      "description": "A list of all issues with the test.",
      "items": {
        "type": "string"
      }
    },
    "wasSimulationSuccessful": {
      "type": "boolean",
      "description": "Whether the failover simulation was successful or not."
    },
    "circuitTestCategory": {
      "$ref": "#/$defs/MaintenanceTestCategory",
      "description": "The maintenance test category."
    },
    "linkType": {
      "$ref": "#/$defs/ExpressRouteFailoverLinkType",
      "description": "The link type."
    },
    "bgpStatus": {
      "type": "array",
      "description": "The BGP status details.",
      "items": {
        "$ref": "#/$defs/ExpressRouteLinkFailoverTestBgpStatus"
      }
    }
  },
  "$defs": {
    "ExpressRouteFailoverBgpStatusAddressFamily": {
      "type": "string",
      "description": "The address family type for BGP status.",
      "enum": [
        "IPv4",
        "IPv6"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteFailoverBgpStatusAddressFamily",
        "modelAsString": true,
        "values": [
          {
            "name": "IPv4",
            "value": "IPv4",
            "description": "IPv4 address family."
          },
          {
            "name": "IPv6",
            "value": "IPv6",
            "description": "IPv6 address family."
          }
        ]
      }
    },
    "ExpressRouteFailoverLinkType": {
      "type": "string",
      "description": "The link on which the failover test is being performed.",
      "enum": [
        "Primary",
        "Secondary"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteFailoverLinkType",
        "modelAsString": true,
        "values": [
          {
            "name": "Primary",
            "value": "Primary",
            "description": "Primary link."
          },
          {
            "name": "Secondary",
            "value": "Secondary",
            "description": "Secondary link."
          }
        ]
      }
    },
    "ExpressRouteLinkFailoverBgpStatus": {
      "type": "string",
      "description": "The BGP status of an ExpressRoute link failover.",
      "enum": [
        "Undefined",
        "Connected",
        "Disconnected"
      ],
      "x-ms-enum": {
        "name": "ExpressRouteLinkFailoverBgpStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Undefined",
            "value": "Undefined",
            "description": "Undefined status."
          },
          {
            "name": "Connected",
            "value": "Connected",
            "description": "Connected status."
          },
          {
            "name": "Disconnected",
            "value": "Disconnected",
            "description": "Disconnected status."
          }
        ]
      }
    },
    "ExpressRouteLinkFailoverTestBgpStatus": {
      "type": "object",
      "description": "Represents the BGP status of an ExpressRoute link failover test.",
      "properties": {
        "type": {
          "$ref": "#/$defs/ExpressRouteFailoverBgpStatusAddressFamily",
          "description": "The address family type."
        },
        "link": {
          "$ref": "#/$defs/ExpressRouteFailoverLinkType",
          "description": "The link type."
        },
        "status": {
          "$ref": "#/$defs/ExpressRouteLinkFailoverBgpStatus",
          "description": "The BGP status."
        },
        "checkTimeUtc": {
          "type": "string",
          "description": "The check time in UTC."
        }
      }
    },
    "FailoverTestStatus": {
      "type": "string",
      "description": "The current status of the test",
      "enum": [
        "NotStarted",
        "Starting",
        "Running",
        "StartFailed",
        "Stopping",
        "Completed",
        "StopFailed",
        "Invalid",
        "Expired"
      ],
      "x-ms-enum": {
        "name": "FailoverTestStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "NotStarted",
            "value": "NotStarted",
            "description": "NotStarted"
          },
          {
            "name": "Starting",
            "value": "Starting",
            "description": "Starting"
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "Running"
          },
          {
            "name": "StartFailed",
            "value": "StartFailed",
            "description": "StartFailed"
          },
          {
            "name": "Stopping",
            "value": "Stopping",
            "description": "Stopping"
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "Completed"
          },
          {
            "name": "StopFailed",
            "value": "StopFailed",
            "description": "StopFailed"
          },
          {
            "name": "Invalid",
            "value": "Invalid",
            "description": "Invalid"
          },
          {
            "name": "Expired",
            "value": "Expired",
            "description": "Expired"
          }
        ]
      }
    },
    "FailoverTestType": {
      "type": "string",
      "description": "The type of failover test",
      "enum": [
        "SingleSiteFailover",
        "MultiSiteFailover",
        "All"
      ],
      "x-ms-enum": {
        "name": "FailoverTestType",
        "modelAsString": true,
        "values": [
          {
            "name": "SingleSiteFailover",
            "value": "SingleSiteFailover",
            "description": "SingleSiteFailover"
          },
          {
            "name": "MultiSiteFailover",
            "value": "MultiSiteFailover",
            "description": "MultiSiteFailover"
          },
          {
            "name": "All",
            "value": "All",
            "description": "All"
          }
        ]
      }
    },
    "MaintenanceTestCategory": {
      "type": "string",
      "description": "The type of maintenance that can occur during an ExpressRoute failover test.",
      "enum": [
        "BgpDisconnect",
        "ASPathPrepend"
      ],
      "x-ms-enum": {
        "name": "MaintenanceTestCategory",
        "modelAsString": true,
        "values": [
          {
            "name": "BgpDisconnect",
            "value": "BgpDisconnect",
            "description": "BGP disconnect test category."
          },
          {
            "name": "ASPathPrepend",
            "value": "ASPathPrepend",
            "description": "AS path prepend test category."
          }
        ]
      }
    }
  }
}