{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "cidr_match",
  "description" : "Returns true if the provided IP is contained in one of the provided CIDR blocks.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "ip",
          "type" : "ip",
          "optional" : false,
          "description" : "IP address of type `ip` (both IPv4 and IPv6 are supported)."
        },
        {
          "name" : "blockX",
          "type" : "keyword",
          "optional" : false,
          "description" : "CIDR block to test the IP against."
        }
      ],
      "variadic" : true,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "ip",
          "type" : "ip",
          "optional" : false,
          "description" : "IP address of type `ip` (both IPv4 and IPv6 are supported)."
        },
        {
          "name" : "blockX",
          "type" : "text",
          "optional" : false,
          "description" : "CIDR block to test the IP against."
        }
      ],
      "variadic" : true,
      "returnType" : "boolean"
    }
  ],
  "examples" : [
    "FROM hosts\n| WHERE CIDR_MATCH(ip1, \"127.0.0.2/32\", \"127.0.0.3/32\")\n| KEEP card, host, ip0, ip1"
  ],
  "preview" : false,
  "snapshot_only" : false
}
