{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-load-balancer/json-schema/microsoft-azure-load-balancer-load-balancer-health-per-rule-schema.json",
  "title": "LoadBalancerHealthPerRule",
  "description": "The response for a Health API.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-load-balancer-load-balancers-api-openapi.yml#/components/schemas/LoadBalancerHealthPerRule",
  "type": "object",
  "properties": {
    "up": {
      "type": "integer",
      "format": "int32",
      "description": "Number of backend instances associated to the LB rule that are considered healthy."
    },
    "down": {
      "type": "integer",
      "format": "int32",
      "description": "Number of backend instances associated to the LB rule that are considered unhealthy."
    },
    "loadBalancerBackendAddresses": {
      "type": "array",
      "description": "Information about the health per rule of the backend addresses.",
      "items": {
        "$ref": "#/$defs/LoadBalancerHealthPerRulePerBackendAddress"
      }
    }
  },
  "$defs": {
    "LoadBalancerHealthPerRulePerBackendAddress": {
      "type": "object",
      "description": "The information about health per rule per backend address.",
      "properties": {
        "ipAddress": {
          "type": "string",
          "description": "The IP address belonging to the backend address."
        },
        "networkInterfaceIPConfigurationId": {
          "type": "string",
          "description": "Resource ID of the Network Interface IP Configuration."
        },
        "state": {
          "type": "string",
          "description": "The current health of the backend instances that is associated to the LB rule."
        },
        "reason": {
          "type": "string",
          "description": "The explanation of the State"
        }
      }
    }
  }
}