{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/isovalent/json-schema/isovalent-ipamresponse-schema.json",
  "title": "IPAMResponse",
  "description": "IPAM configuration of an endpoint",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/isovalent-ipam-api-openapi.yml#/components/schemas/IPAMResponse",
  "type": "object",
  "required": [
    "address",
    "host-addressing"
  ],
  "properties": {
    "address": {
      "$ref": "#/$defs/AddressPair"
    },
    "ipv4": {
      "$ref": "#/$defs/IPAMAddressResponse"
    },
    "ipv6": {
      "$ref": "#/$defs/IPAMAddressResponse"
    },
    "host-addressing": {
      "$ref": "#/$defs/NodeAddressing"
    }
  },
  "$defs": {
    "AddressPair": {
      "description": "Addressing information of an endpoint",
      "type": "object",
      "properties": {
        "ipv4": {
          "description": "IPv4 address",
          "type": "string"
        },
        "ipv4-expiration-uuid": {
          "description": "UUID of IPv4 expiration timer",
          "type": "string"
        },
        "ipv4-pool-name": {
          "description": "IPAM pool from which this IPv4 address was allocated",
          "type": "string"
        },
        "ipv6": {
          "description": "IPv6 address",
          "type": "string"
        },
        "ipv6-expiration-uuid": {
          "description": "UUID of IPv6 expiration timer",
          "type": "string"
        },
        "ipv6-pool-name": {
          "description": "IPAM pool from which this IPv6 address was allocated",
          "type": "string"
        }
      }
    },
    "IPAMAddressResponse": {
      "description": "IPAM configuration of an individual address family",
      "type": "object",
      "properties": {
        "ip": {
          "description": "Allocated IP for endpoint",
          "type": "string"
        },
        "gateway": {
          "description": "IP of gateway",
          "type": "string"
        },
        "cidrs": {
          "description": "List of CIDRs out of which IPs are allocated",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "master-mac": {
          "type": "string",
          "description": "MAC of master interface if address is a slave/secondary of a master interface"
        },
        "expiration-uuid": {
          "type": "string",
          "description": "The UUID for the expiration timer. Set when expiration has been\nenabled while allocating.\n"
        },
        "interface-number": {
          "type": "string",
          "description": "InterfaceNumber is a field for generically identifying an interface. This is only useful in ENI mode.\n"
        },
        "skip-masquerade": {
          "type": "boolean",
          "description": "SkipMasquerade indicates whether the datapath should avoid masquerading connections from this IP.\n"
        }
      }
    },
    "NodeAddressing": {
      "description": "Addressing information of a node for all address families\n\n+k8s:deepcopy-gen=true",
      "type": "object",
      "properties": {
        "ipv6": {
          "$ref": "#/$defs/NodeAddressingElement"
        },
        "ipv4": {
          "$ref": "#/$defs/NodeAddressingElement"
        }
      }
    },
    "NodeAddressingElement": {
      "description": "Addressing information",
      "type": "object",
      "properties": {
        "enabled": {
          "description": "True if address family is enabled",
          "type": "boolean"
        },
        "ip": {
          "description": "IP address of node",
          "type": "string"
        },
        "alloc-range": {
          "description": "Address pool to be used for local endpoints",
          "type": "string"
        },
        "address-type": {
          "description": "Node address type, one of HostName, ExternalIP or InternalIP",
          "type": "string"
        }
      }
    }
  }
}