.pdf)
WHM Plugins
delip function from within your custom script:
/xml-api/delip function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/delip
delip function from within your custom script:
/json-api/delip function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/delip
delip function takes the following variables as input.
The following variable is required: eth0:1 This variable is required if you wish to unbind the IP address from the server. Not specifying this variable will remove the IP address from cPanel data stores but the IP will remain bound to the ethernet device.
1 — yes.
0 — no.
delip function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/delip?ip=192.168.1.99ðernetdev=em0&skipifshutdown=1 in WebHost Manager will produce results similar to the following:
<delip>
<delip>
<status>1</status>
<statusmsg>192.168.1.99 has been removed</statusmsg>
</delip>
</delip>
https://example.com:2087/json-api/delip?ip=208.77.188.166ðernetdev=em0&skipifshutdown=1 in WebHost Manager will produce output similar to:
{
"delip":[
{
"status":1,
"statusmsg":"208.77.188.166 has been removed",
"warnings":[
]
}
]
}