listpkgs function from within your custom script:
/xml-api/listpkgs 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/listpkgs
listpkgs function from within your custom script:
/json-api/listpkgs 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/listpkgs
listpkgs function. y — yes.
n — no.
y — yes.
n — no.
y — yes.
n — no.
y — yes.
n — no.
https://example.com:2087/xml-api/listpkgs in WebHost Manager will produce output similar to:
<listpkgs>
<package>
<name>gold</name>
<BWLIMIT>unlimited</BWLIMIT>
<CGI>y</CGI>
<CPMOD>x3</CPMOD>
<FEATURELIST>default</FEATURELIST>
<FRONTPAGE>y</FRONTPAGE>
<HASSHELL>y</HASSHELL>
<IP>n</IP>
<LANG>english</LANG>
<MAXADDON>2</MAXADDON>
<MAXFTP>unlimited</MAXFTP>
<MAXLST>unlimited</MAXLST>
<MAXPARK>2</MAXPARK>
<MAXPOP>unlimited</MAXPOP>
<MAXSQL>unlimited</MAXSQL>
<MAXSUB>unlimited</MAXSUB>
<QUOTA>unlimited</QUOTA>
</package>
</listpkgs>
https://example.com:2087/json-api/listpkgs in WebHost Manager will produce output similar to:
{
"package":[
{
"FRONTPAGE":"y",
"CPMOD":"x3",
"FEATURELIST":"default",
"BWLIMIT":"unlimited",
"IP":"n",
"CGI":"y",
"MAXSUB":"unlimited",
"name":"standard",
"MAXSQL":"unlimited",
"MAXFTP":"unlimited",
"QUOTA":"unlimited",
"MAXPARK":"2",
"HASSHELL":"y",
"MAXADDON":"2",
"MAXPOP":"unlimited",
"MAXLST":"unlimited",
"LANG":"english"
},
{
"FRONTPAGE":"y",
"CPMOD":"x3",
"FEATURELIST":"Default",
"BWLIMIT":"9999",
"IP":"y",
"CGI":"y",
"MAXSUB":"888",
"name":"bronze",
"MAXSQL":"99",
"MAXFTP":"9",
"QUOTA":"unlimited",
"MAXPARK":"88",
"HASSHELL":"y",
"MAXADDON":"888",
"MAXPOP":"999",
"MAXLST":"999",
"LANG":"english"
},
{
"FRONTPAGE":"n",
"CPMOD":"x3",
"FEATURELIST":"default",
"BWLIMIT":"unlimited",
"IP":"n",
"CGI":"y",
"MAXSUB":"unlimited",
"name":"silver",
"MAXSQL":"unlimited",
"MAXFTP":"unlimited",
"QUOTA":"unlimited",
"MAXPARK":"0",
"HASSHELL":"y",
"MAXADDON":"0",
"MAXPOP":"unlimited",
"MAXLST":"unlimited",
"LANG":"english"
},
{
"FRONTPAGE":"y",
"CPMOD":"x3",
"FEATURELIST":"default",
"BWLIMIT":"unlimited",
"MAXSUB":"unlimited",
"CGI":"y",
"IP":"n",
"name":"gold",
"MAXSQL":"unlimited",
"MAXPARK":"2",
"QUOTA":"unlimited",
"MAXFTP":"unlimited",
"HASSHELL":"y",
"MAXADDON":"2",
"LANG":"english",
"MAXLST":"unlimited",
"MAXPOP":"unlimited"
}
]
}
Copyright © cPanel 2000-2009.