interface.ip_in_use

Get all IPv4 / Ipv6 from all valid interfaces, excluding tap and epair.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: options

options

Type: object
No Additional Properties

Ipv4

Type: boolean Default: true

Ipv6

Type: boolean Default: true

Loopback

Type: boolean Default: false

Return loopback interface addresses.

Any

Type: boolean Default: false

Return wildcard addresses (0.0.0.0 and ::).

Static

Type: boolean Default: false

Only return configured static IPs.

Result

Type: array of object
No Additional Items
Each item of this array must be:

InterfaceIPInUseItem

Type: object
No Additional Properties

Type

Type: string

Address


Type: const
Must be one of:
  • ""
Specific value: ""
Type: string

Netmask

Type: integer

Broadcast

Type: string

Example:

[
    {
        "address": "fe80::5054:ff:fe16:4aac",
        "netmask": 64,
        "type": "INET6"
    },
    {
        "address": "192.168.122.148",
        "broadcast": "192.168.122.255",
        "netmask": 24,
        "type": "INET"
    }
]


Required roles: NETWORK_INTERFACE_READ