你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
parse_ipv4_mask()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Converts the input string of IPv4 and netmask to a signed, 64-bit wide, long number representation in big-endian order.
Syntax
parse_ipv4_mask(
ip ,
prefix)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
ip | string |
✔️ | The IPv4 address to convert to a long number. |
prefix | int |
✔️ | An integer from 0 to 32 representing the number of most-significant bits that are taken into account. |
Returns
If conversion is successful, the result is a long number.
If conversion isn't successful, the result is null
.
Example
print parse_ipv4_mask("127.0.0.1", 24)