{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/power-bi/json-schema/power-bi-gateway-list-schema.json",
  "title": "GatewayList",
  "description": "A list of gateways",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/power-bi-gateways-api-openapi.yml#/components/schemas/GatewayList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Gateway"
      }
    },
    "@odata.context": {
      "type": "string"
    }
  },
  "$defs": {
    "Gateway": {
      "type": "object",
      "description": "An on-premises data gateway",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the gateway"
        },
        "name": {
          "type": "string",
          "description": "The display name of the gateway"
        },
        "type": {
          "type": "string",
          "description": "The type of gateway",
          "enum": [
            "Resource",
            "Personal"
          ]
        },
        "publicKey": {
          "type": "object",
          "description": "The public key for encrypting credentials",
          "properties": {
            "exponent": {
              "type": "string",
              "description": "The RSA exponent"
            },
            "modulus": {
              "type": "string",
              "description": "The RSA modulus"
            }
          }
        },
        "gatewayAnnotation": {
          "type": "string",
          "description": "Gateway metadata annotation"
        }
      }
    }
  }
}