cidr_contains
Type: Function
Calculates if an IP address falls within a range of CIDR specified networks.
Example
SELECT cidr_contains(ip="192.168.0.132",
ranges=["192.168.0.0/24", "127.0.0.1/8"])
FROM scope()
See also
| Argument | Type | Description |
|---|---|---|
ip |
string (required) | An IP address |
ranges |
list of string (required) | A list of CIDR notation network ranges |
Platforms: macOS, Linux, Windows