Page tree
Skip to end of metadata
Go to start of metadata
Supported VersionsLast Updated
1.2.00 & higher
json output 1.14.00 & higher
2013/04/30
Actionreseller-create
MethodGET, POST
Variables
username       [username]
password       [password]
email          [email address]
firstname      [first name]
lastname       [last name]
company        [company]
usernameprefix [prefix for reseller client usernames] (optional)
maxvps         [maximum amount of virtual servers] (optional)
maxusers       [maximum amount of users] (optional)
maxmem         [maximum amount memory] (optional)
maxburst       [maximum amount of burst memory or swapspace] (optional)
maxdisk        [maximum amount of diskspace] (optional)
maxbw          [maximum amount of bandwidth] (optional)
maxipv4        [maximum amount of ipv4 addresses] (optional)
maxipv6        [maximum amount of ipv6 addresses] (optional)
nodegroup      [comma seperated list of node groups] (optional)
mediagroups    [comma seperated list of media groups] (optional)
openvz         [y|n (Allow building of openvz virtual servers)] (optional)
xenpv          [y|n (Allow building of xen pv virtual servers)] (optional)
xenhvm         [y|n (Allow building of xen hvm virtual servers)] (optional)
kvm            [y|n (Allow building of kvmvirtual servers)] (optional)
rdtype         [json] For json output specify json or for default output leave blank. This variable is optional
Example Output

XML

Success:

 <status>success</status>
<statusmsg>Successfully added reseller</statusmsg>
<username>apitest3</username>
<password>1234567</password>
<email>phill@email.com</email>
<firstname>Phill</firstname>
<lastname>Smith</lastname>
<company>FastServers</company>
<usernameprefix>vpsuser</usernameprefix>
<maxvps>10</maxvps>
<maxdisk>21474836480</maxdisk>
<maxmem>10737418240</maxmem>
<maxusers>20</maxusers>
<maxipv4>4</maxipv4>
<maxipv6>6</maxipv6>
<maxburst>10738466816</maxburst>
<maxbw>107374182400</maxbw>
<nodegroupids>14,11,9</nodegroupids>
<mediagroupids>14,11,9</mediagroupids>
<xenpv>1</xenpv>
<xenhvm>1</xenhvm>
<kvm>1</kvm>
<openvz>1</openvz> 

Error:

 <status>error</status>
<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 {
"status":"success",
"statusmsg":"Successfully added client",
"username":"apitest3",
"password":"123456",
"email":"email@address.com",
"firstname":"phill",
"lastname":"smith"
"company":"FastServers",
"usernameprefix":"vpsuser",
"maxvps":"10",
"maxdisk":"21474836480",
"maxmem":"10737418240",
"maxusers":"20",
"maxipv4":"4",
"maxipv6":"6",
"maxburst":"10738466816",
"maxbw":"107374182400",
"nodegroupids":"14,11,9",
"mediagroupids":"14,11,9",
"xenpv":"1",
"xenhvm":"1",
"kvm":"1",
"openvz":"1" 
}

Error:

 {"status":"error","statusmsg":"ERROR MESSAGE"}
  • No labels