Return server's IP addresses

This function lists a server's IP addresses.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/listips
Request samples
whmapi1 --output=jsonpretty \
  listips
Response samples
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
    }
}