.pdf)
WHM Plugins
setresellernameservers function from within your custom script:
/xml-api/setresellernameservers 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/setresellernameservers
setresellernameservers function from within your custom script:
/json-api/setresellernameservers 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/setresellernameservers
setresellernameservers function takes the following required variable as input: nameservers=ns1.example.com,ns2.example.com
setresellernameservers function. setresellernameservers function call. 1 — success.
0 — failure.
setresellernameservers function call.
https://example.com:2087/xml-api/setresellernameservers?user=joe&nameservers=127.0.0.1
will produce output similar to:
<setresellernameservers>
<result>
<status>1</status>
<statusmsg>Set resellers nameservers.</statusmsg>
</result>
</setresellernameservers>
https://example.com:2087/json-api/setresellernameservers?user=joe&nameservers=127.0.0.1
will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Set resellers nameservers."
}
]
}