.pdf)
WHM Plugins
addpkg function from within your custom script:
/xml-api/addpkg function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/addpkg
addpkg function from within your custom script:
/json-api/addpkg function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/addpkg
addpkg function takes the following variables as input.
The following variable is required: unlimited
1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
999
999
999
999
999
999
999
1 — yes.
0 — no.
unlimited
1 — yes.
0 — no.
addpkg function. 1 — yes.
0 — no.
https://example.com:2087/xml-api/addpkg?name=packagename&featurelist=Default"a=0&ip=1&cgi=1&frontpage=1&cpmod=x3
&maxftp=9&maxsql=99&maxpop=999&maxlst=999&maxsub=888&maxpark=88&maxaddon=888
&hasshell=1&bwlimit=9999 in WebHost Manager will produce output similar to the following:
<addpkg>
<result>
<pkg>packagename</pkg>
<status>1</status>
<statusmsg>Created the package packagename</statusmsg>
</result>
</addpkg>
This will add the package packagename, with the settings listed in the call.
https://example.com:2087/json-api/addpkg?name=package1&featurelist=Default"a=0&ip=1&cgi=1&frontpage=1&cpmod=x3
&maxftp=9&maxsql=99&maxpop=999&maxlst=999&maxsub=888&maxpark=88&maxaddon=888
&hasshell=1&bwlimit=9999 in WebHost Manager will produce output similar to the following:
{
"result":[
{
"status":1,
"statusmsg":"Created the package package1",
"pkg":"package1"
}
]
}
This will add the package package1, with the settings listed in the call.