Description

This function assigns nameservers to a reseller's account.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/setresellernameservers?api.version=1&user=username&nameservers=192.168.0.20%2C192.168.0.21
https://hostname.example.com:2087/cpsess##########/xml-api/setresellernameservers?api.version=1&user=username&nameservers=192.168.0.20%2C192.168.0.21
whmapi1 setresellernameservers user=username nameservers=192.168.0.20%2C192.168.0.21

{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "setresellernameservers"
  }
}
<result>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>setresellernameservers</command>
    </metadata>
</result>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The reseller's username.

A valid reseller's username on the server.username
nameserversstring

The nameserver IP addresses to allocate to the reseller's account.

If you do not use this parameter, the function resets the reseller's nameservers to use the server default.

A comma-separated list of one or more nameserver IP addresses.
192.168.0.20,192.168.0.21

Returns

This function only returns metadata.