This function adds IP addresses to a reseller's account.
Note:
To assign a main IP address to a reseller's account, call the WHM API 1 setresellermainip
function.
For more information, read our Manage Reseller's IP Delegation documentation.
user required | string <username> The reseller's username. Example: user=username |
delegate | integer Default: 0 Whether to allocate the reseller a dedicated IP address.
Example: delegate=1 |
ips | string <ipv4> The IP addresses to allocate to the reseller's account. Note:
Example: ips=192.168.0.20 |
object | |
object |
whmapi1 --output=jsonpretty \ setresellerips \ user='username'
{- "data": {
- "all": 1,
- "ip": [
- "192.168.0.20"
]
}, - "metadata": {
- "command": "setresellerips",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}