IBM Cloud Docs
DataPrime IP functions

DataPrime IP functions

This guide provides a glossary of IBM® Cloud Logs DataPrime IP functions.

ipInSubnet

Returns true if IP is in the subnet of ipPrefix.

ipInSubnet(ip: string, ipPrefix: string): bool

ipPrefix

Returns the IP prefix of a given IP address with subnetSize bits (for example, 192.128.0.0/9).

ipPrefix(ip: string, subnetSize: number): string