setacls function from within your custom script:
/xml-api/setacls 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/setacls
setacls function from within your custom script:
/json-api/setacls 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/setacls
setacls function takes the following variables as input.
acl-x-x variables (below). You must either use an ACL list or a set of specific variables.
1.
setacls function. setacls operation. 1 — yes.
0 — no.
xml-api/sectacls?reseller=andy in WebHost Manager will disable all ACL options for the reseller "andy".
xml-api/sectacls?reseller=andy&acl-create-acct=1 in WebHost Manager will enable only the account creation ACL option for the reseller "andy".
<setacls>
<result>
<acls>suspend-acct</acls>
<acls>viewglobalpackages</acls>
<acls>resftp</acls>
<acls>list-accts</acls>
<acls>quota</acls>
<acls>passwd</acls>
<acls>ssl</acls>
<status>1</status>
<statusmsg>Reseller Acls Saved</statusmsg>
</result>
</setacls>
https://example.com:2087/xml-api/setacls?reseller=bob&acl-all=1&acl-ssl=1 in WebHost Manager will produce output similar to:
<setacls>
<result>
<acls>ssl</acls>
<acls>all</acls>
<status>1</status>
<statusmsg>Reseller Acls Saved</statusmsg>
</result>
</setacls>
json-api/sectacls?reseller=andy in WebHost Manager will disable all ACL options for the reseller "andy".
json-api/sectacls?reseller=andy&acl-create-acct=1 in WebHost Manager will enable only the account creation ACL option for the reseller "andy".
{
"result":[
{
"status":1,
"statusmsg":"Reseller Acls Saved",
"acls":[
"kill-dns",
"edit-dns",
"edit-mx",
"add-pkg",
"suspend-acct",
"ssl",
]
}
]
}
https://example.com:2087/json-api/setacls?reseller=bob&acl-all=1&acl-ssl=1 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Reseller Acls Saved",
"acls":[
"ssl",
"all"
]
}
]
}
Copyright © cPanel 2000-2010.