Return server's IP addresses

This function lists a server's IP addresses.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  listips

Response samples

Content type
application/json
{
  • "data": {
    • "ip": [
      • {
        • "active": 1,
        • "dedicated": 0,
        • "if": "eth0",
        • "ip": "192.168.0.20",
        • "mainaddr": 0,
        • "netmask": "255.255.0.0",
        • "network": "192.168.0.0",
        • "public_ip": "10.1.32.177",
        • "removable": 0,
        • "used": 1
        }
      ]
    },
  • "metadata": {
    • "command": "listips",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}