Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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.

Block XML representation

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>

Example of visual representation

Block "Create IP with"

Block “Create IP with”

Example of block usage

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.
Example of "Create IP with" block

Example of “Create IP with” block

Input data

{
  "user": "administrator",
  "ip" : "8.8.8.8"
}

Processing result

Results of "Create IP with" block

Results of “Create IP with” block