This function lists a server's IP addresses.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ listips
{- "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
}
}