IP create with
Create IP with block retypes input value to IP address type. Block returns new instance of IP address data type for any given input.
In case input value can’t be typed to IP address returns default value of IPv4 0.0.0.0.
XML representation of ip_create block:
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="ip_create">
<value name="VALUE">
<block type="text">
<field name="TEXT">::1</field>
</block>
</value>
</block>
</xml>
Block is used on the “set ip_datatype to” row in the example:
- Key is loaded from the “item” dictionary.
- Value is transmitted to the “create IP with” block.
- Output is variable ip_datatype with data type IP, containing expanded information.
{
"user": "administrator",
"ip" : "8.8.8.8"
}