Resellers
Account Settings
Add IP addresses to reseller
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.
get/setresellerips
Query parameters
userstring username required
Example:username
The reseller's username.
delegate1
Example:1
Whether to allocate the reseller a dedicated IP address.
- 1 — Restrict the reseller's account to its dedicated IP address.
- 0 — Allow the user to dedicate any available IP address to an owned account.
ipsstring ipv4
Example:192.168.0.20
The IP addresses to allocate to the reseller's account.
Note:
- If you do not use this parameter, the function clears the reseller's IP address list.
- Use a comma-separated list to allocate multiple IP addresses.
Response
HTTP Request was successful.
Example response
{
"data": {
"all": 1,
"ip": [
"192.168.0.20"
]
},
"metadata": {
"command": "setresellerips",
"reason": "OK",
"result": 1,
"version": 1
}
}