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-modifyresources
MethodGET, POST
Variables
username   [username]
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 modified reseller resources</statusmsg>
<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 modified reseller resources",
"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