{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-api-management/json-schema/microsoft-azure-api-management-network-status-contract-schema.json",
  "title": "NetworkStatusContract",
  "description": "Network Status details.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-api-management-networkstatus-api-openapi.yml#/components/schemas/NetworkStatusContract",
  "properties": {
    "dnsServers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Gets the list of DNS servers IPV4 addresses."
    },
    "connectivityStatus": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectivityStatusContract"
      },
      "x-ms-identifiers": [
        "name",
        "resourceType"
      ],
      "description": "Gets the list of Connectivity Status to the Resources on which the service depends upon."
    }
  },
  "required": [
    "dnsServers",
    "connectivityStatus"
  ],
  "$defs": {
    "ConnectivityStatusContract": {
      "properties": {
        "name": {
          "type": "string",
          "description": "The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon.",
          "minLength": 1
        },
        "status": {
          "type": "string",
          "enum": [
            "initializing",
            "success",
            "failure"
          ],
          "x-ms-enum": {
            "name": "ConnectivityStatusType",
            "modelAsString": true
          },
          "description": "Resource Connectivity Status Type identifier."
        },
        "error": {
          "type": "string",
          "description": "Error details of the connectivity to the resource."
        },
        "lastUpdated": {
          "type": "string",
          "format": "date-time",
          "description": "The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"
        },
        "lastStatusChange": {
          "type": "string",
          "format": "date-time",
          "description": "The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.\n"
        },
        "resourceType": {
          "type": "string",
          "description": "Resource Type."
        },
        "isOptional": {
          "type": "boolean",
          "description": "Whether this is optional."
        }
      },
      "required": [
        "name",
        "status",
        "lastUpdated",
        "lastStatusChange",
        "resourceType",
        "isOptional"
      ],
      "description": "Details about connectivity to a resource."
    }
  }
}