1 or 0. You are only able to use features with a corresponding 1.
myprivs function from within your custom script:
/xml-api/myprivs 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/myprivs
myprivs function from within your custom script:
/json-api/myprivs 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/myprivs
myprivs and privs: 1 means the feature is enabled.
0 means the feature is disabled.
myprivs function call produces the following output variables: myprivs function. 1, the user has root access.
https://example.com:2087/xml-api/myprivs in WebHost Manager will produce output similar to:
<myprivs>
<privs>
<add-pkg>1</add-pkg>
<add-pkg-ip>1</add-pkg-ip>
<add-pkg-shell>0</add-pkg-shell>
<all>1</all>
<allow-addoncreate>0</allow-addoncreate>
<allow-parkedcreate>0</allow-parkedcreate>
<allow-unlimited-bw-pkgs>1</allow-unlimited-bw-pkgs>
<allow-unlimited-disk-pkgs>1</allow-unlimited-disk-pkgs>
<allow-unlimited-pkgs>0</allow-unlimited-pkgs>
<clustering>1</clustering>
<create-acct>1</create-acct>
<create-dns>1</create-dns>
<demo>0</demo>
<demo-setup>0</demo-setup>
<disallow-shell>0</disallow-shell>
<edit-account>1</edit-account>
<edit-dns>1</edit-dns>
<edit-mx>1</edit-mx>
<edit-pkg>1</edit-pkg>
<frontpage>1</frontpage>
<kill-acct>1</kill-acct>
<kill-dns>1</kill-dns>
<limit-bandwidth>1</limit-bandwidth>
<list-accts>1</list-accts>
<mailcheck>1</mailcheck>
<news>1</news>
<park-dns>1</park-dns>
<passwd>1</passwd>
<quota>0</quota>
<rearrange-accts>0</rearrange-accts>
<res-cart>1</res-cart>
<resftp>0</resftp>
<restart>0</restart>
<show-bandwidth>1</show-bandwidth>
<ssl>1</ssl>
<ssl-buy>1</ssl-buy>
<ssl-gencrt>1</ssl-gencrt>
<stats>1</stats>
<status>0</status>
<suspend-acct>1</suspend-acct>
<thirdparty>1</thirdparty>
<upgrade-account>1</upgrade-account>
<viewglobalpackages>1</viewglobalpackages>
</privs>
</myprivs>
https://example.com:2087/json-api/myprivs in WebHost Manager will produce output similar to:
{
"privs":{
"kill-dns":0,
"edit-dns":0,
"edit-mx":0,
"add-pkg":0,
"status":0,
"suspend-acct":0,
"add-pkg-shell":0,
"viewglobalpackages":0,
"resftp":0,
"list-accts":0,
"all":1,
"passwd":0,
"quota":0,
"park-dns":0,
"rearrange-accts":0,
"allow-addoncreate":0,
"demo":0,
"news":0,
"edit-account":0,
"allow-unlimited-disk-pkgs":0,
"allow-parkedcreate":0,
"frontpage":0,
"restart":0,
"ssl-gencrt":0,
"allow-unlimited-pkgs":0,
"add-pkg-ip":0,
"res-cart":0,
"disallow-shell":0,
"ssl-buy":0,
"kill-acct":0,
"allow-unlimited-bw-pkgs":0,
"create-dns":0,
"mailcheck":0,
"clustering":0,
"ssl":0,
"edit-pkg":0,
"show-bandwidth":0,
"upgrade-account":0,
"thirdparty":0,
"limit-bandwidth":0,
"create-acct":0,
"demo-setup":0,
"stats":0
}
}
Copyright © cPanel 2000-2009.