Casts an expression to an IP address.
ip(x:string) -> ip
Description
Section titled “Description”The ip
function casts the provided string x
to an IP address.
Examples
Section titled “Examples”Cast a string to an IP address
Section titled “Cast a string to an IP address”from {x: ip("1.2.3.4")}
{x: 1.2.3.4}
See Also
Section titled “See Also”subnet
,
is_v4
,
is_v6
,
is_multicast
,
is_loopback
,
is_private
,
is_global
,
is_link_local
,
ip_category
,
time
,
uint
,
float,
int,
string