{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-nexus/json-schema/cisco-nexus-bgp-entity-response-schema.json",
  "title": "BgpEntityResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-nexus-routing-api-openapi.yml#/components/schemas/BgpEntityResponse",
  "type": "object",
  "properties": {
    "totalCount": {
      "type": "string"
    },
    "imdata": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "bgpEntity": {
            "$ref": "#/$defs/BgpEntity"
          }
        }
      }
    }
  },
  "$defs": {
    "BgpDom": {
      "type": "object",
      "description": "BGP domain (VRF) managed object. DN format is sys/bgp/inst/dom-{name}.",
      "properties": {
        "bgpDom": {
          "type": "object",
          "properties": {
            "attributes": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "BGP domain name (VRF name, typically default)"
                },
                "rtrId": {
                  "type": "string",
                  "description": "BGP router ID in IPv4 address format",
                  "format": "ipv4"
                }
              }
            },
            "children": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/BgpPeer"
              }
            }
          }
        }
      }
    },
    "BgpEntity": {
      "type": "object",
      "description": "Top-level BGP entity managed object. DN is sys/bgp.",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "dn": {
              "type": "string"
            },
            "adminSt": {
              "type": "string",
              "enum": [
                "enabled",
                "disabled"
              ]
            }
          }
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BgpInst"
          }
        }
      }
    },
    "BgpInst": {
      "type": "object",
      "description": "BGP instance managed object containing AS number and domain configuration. DN is sys/bgp/inst.",
      "properties": {
        "bgpInst": {
          "type": "object",
          "properties": {
            "attributes": {
              "type": "object",
              "properties": {
                "asn": {
                  "type": "string",
                  "description": "BGP autonomous system number (supports 2-byte and 4-byte ASN formats including dot notation)"
                }
              }
            },
            "children": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/BgpDom"
              }
            }
          }
        }
      }
    },
    "BgpPeer": {
      "type": "object",
      "description": "BGP peer (neighbor) managed object. DN format is sys/bgp/inst/dom-{name}/peer-{addr}.",
      "properties": {
        "bgpPeer": {
          "type": "object",
          "properties": {
            "attributes": {
              "type": "object",
              "properties": {
                "addr": {
                  "type": "string",
                  "description": "BGP neighbor IP address",
                  "format": "ipv4"
                },
                "asn": {
                  "type": "string",
                  "description": "Remote peer autonomous system number"
                },
                "passwdType": {
                  "type": "string",
                  "description": "Password encryption type (0=cleartext, 3=3DES, 6=AES, 7=Vigenere)",
                  "enum": [
                    "0",
                    "3",
                    "6",
                    "7"
                  ]
                },
                "password": {
                  "type": "string",
                  "description": "Neighbor authentication password",
                  "format": "password"
                },
                "srcIf": {
                  "type": "string",
                  "description": "Source interface for BGP session"
                },
                "adminSt": {
                  "type": "string",
                  "description": "Administrative state (shutdown/no shutdown)",
                  "enum": [
                    "enabled",
                    "disabled"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}