Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Description

Excerpt

This function assigns nameservers to a reseller's account.

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone
Expand
titleJSON API
Code Block
languagexml
https://hostname.example.com:2087/cpsess##########/json-api/setresellernameservers?api.version=1&user=username&nameservers=192.168.0.20%2C192.168.0.21
Expand
titleXML API
Code Block
languagexml
https://hostname.example.com:2087/cpsess##########/xml-api/setresellernameservers?api.version=1&user=username&nameservers=192.168.0.20%2C192.168.0.21
Expand
titleCommand Line
Code Block
languagebash
whmapi1 setresellernameservers user=username nameservers=192.168.0.20%2C192.168.0.21

Include Page
_WHMAPI1CLINote
_WHMAPI1CLINote

Expand
titleOutput (JSON)
Code Block
languagetext
linenumberstrue
{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "setresellernameservers"
  }
}
Expand
titleOutput (XML)
Code Block
languagetext
linenumberstrue
<result>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>setresellernameservers</command>
    </metadata>
</result>

Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote

   

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.