{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-nexus/json-schema/cisco-nexus-bd-entity-payload-schema.json",
  "title": "BdEntityPayload",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-nexus-vlans-api-openapi.yml#/components/schemas/BdEntityPayload",
  "type": "object",
  "properties": {
    "bdEntity": {
      "type": "object",
      "properties": {
        "children": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "l2BD": {
                "$ref": "#/$defs/L2BD"
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "L2BD": {
      "type": "object",
      "description": "Layer 2 bridge domain managed object representing a VLAN. DN format is sys/bd/bd-[{fabEncap}].",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "dn": {
              "type": "string",
              "description": "Distinguished name (e.g., sys/bd/bd-[vlan-100])"
            },
            "fabEncap": {
              "type": "string",
              "description": "Fabric encapsulation in the format vlan-{id} or vxlan-{id}",
              "pattern": "^(vlan|vxlan)-\\d+$"
            },
            "name": {
              "type": "string",
              "description": "VLAN name",
              "maxLength": 32
            },
            "pcTag": {
              "type": "string",
              "description": "Default classId for unknown unicast traffic"
            },
            "adminSt": {
              "type": "string",
              "description": "Administrative state",
              "enum": [
                "active",
                "suspend"
              ]
            },
            "operSt": {
              "type": "string",
              "description": "Operational state (read-only)"
            },
            "id": {
              "type": "string",
              "description": "Bridge domain numeric identifier (read-only)"
            },
            "modTs": {
              "type": "string",
              "format": "date-time",
              "description": "Last modification timestamp (read-only)"
            }
          }
        }
      }
    }
  }
}