Child pages
  • WHM API 0 Functions - listresellers
Skip to end of metadata
Go to start of metadata

 

Description

This function lists the reseller accounts on the server.

Examples 


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/listresellers
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/listresellers
 Command Line
whmapi0 listresellers 


Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 0 documentation or run the whmapi0 --help command.
  • If you run CloudLinux™, you must use the full path of the whmapi0 command:

    /usr/local/cpanel/bin/whmapi0

 Output (JSON)
{  
   "reseller":[  
      "bob",
      "bob2",
      "bob3",
      "malcolm"
   ]
}
 Output (XML)
<listresellers>
    <reseller>bob</reseller>
    <reseller>bob2</reseller>
    <reseller>bob3</reseller>
    <reseller>malcolm</reseller>
</listresellers>

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

reseller

array

An array of the server's reseller accounts.

An array of one or more valid usernames.bob