Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation

Create Reseller ACL List — saveacllist

This function creates a new reseller ACL list. (ACL lists can be found in the WHM interface on the Edit Privileges/Nameservers screen).

Calling Functions

Using the XML API

To use the XML API to perform the saveacllist function from within your custom script:

  • Append the /xml-api/saveacllist function call name, plus the required variables (see below), to a URL which includes the address of your server.

  • For example, on a server whose hostname is example.com, you would include the following string in your script: https://example.com:2087/xml-api/saveacllist

  • You need to be logged in with the proper permissions in order to call a function. See our document about Authenticating API Function Calls for more information about authenticating APIs from within a script.

  • You can also perform the function by entering the string in your web browser's address bar. This may be useful for testing the function call and viewing its output.

Using the JSON API

To use the JSON API to perform the saveacllist function from within your custom script:

  • Append the /json-api/saveacllist function call name, plus the required variables (see below), to a URL which includes the address of your server.

  • For example, on a server whose hostname is example.com, you would include the following string in your script: https://example.com:2087/json-api/saveacllist

  • You need to be logged in with the proper permissions in order to call a function. See our document about Authenticating API Function Calls for more information about authenticating APIs from within a script.

  • You can also perform the function by entering the string in your web browser's address bar. This may be useful for testing the function call and viewing its output.

Variables

Input

The saveacllist function takes the following variables as input:

The following variable is required:

  • acllist (string) — Name of the ACL list.

The following variables are optional. For each of these variables,

  • A value of 1 means the option is enabled.
  • A value of 0 means the option is disabled.

  • acl-add-pkg (boolean) — Allow the creation of packages.
  • acl-add-pkg-ip (boolean) — Allow the creation of packages with dedicated IPs.
  • acl-add-pkg-shell (boolean) — Allow the creation of packages with shell access.
  • acl-all (boolean) — All features.
    ALERT! Warning: Enabling this feature grants the user root access!
  • acl-allow-addoncreate (boolean) — Allow the creation of packages with unlimited addon domains.
  • acl-allow-parkedcreate (boolean) — Allow the creation of packages with parked domains.
  • acl-allow-unlimited-disk-pkgs (boolean) — Allow the creation of packages with unlimited disk space.
  • acl-allow-unlimited-pkgs (boolean) — Allow the creation of packages with unlimited bandwidth.
  • acl-clustering (boolean) — Enable clustering.
  • acl-create-acct (boolean) — Allow the reseller to create a new account.
  • acl-create-dns (boolean) — Allow the reseller to add DNS zones.
  • acl-demo-setup (boolean) — Allow the reseller to turn an account into a demo account.
  • acl-disallow-shell (boolean) — Never allow creation of accounts with shell access.
  • acl-edit-account (boolean) — Allow the reseller to modify an account.
  • acl-edit-dns (boolean) — Allow editing of DNS zones.
  • acl-edit-mx (boolean) — Allow editing of MX entries,
  • acl-edit-pkg (boolean) — Allow editing of packages.
  • acl-frontpage (boolean) — Allow the reseller to install and uninstall FrontPage extensions.
  • acl-kill-acct (boolean) — Allow termination of accounts.
  • acl-kill-dns (boolean) Allow the reseller to remove DNS entries.
  • acl-limit-bandwidth (boolean) — Allow the reseller to modify bandiwdth limits.
    ALERT! Warning: This will allow the reseller to circumvent package bandwidth limits, if you are not using resource limits!
  • acl-list-accts (boolean) — Allow the reseller to list his or her accounts.
  • acl-mailcheck (boolean) — Allow the reseller to access the WHM Mail Troubleshooter.
  • acl-mod-subdomains (boolean) — Allow the reseller to enable and disable subdomains.
  • acl-news (boolean) — Allow the reseller to modify cPanel/WHM news.
  • acl-onlyselfandglobalpkgs (boolean) — Prevent the creation of accounts with packages that are neither global nor owned by this user.
  • acl-park-dns (boolean) — Allow the reseller to park domains.
  • acl-passwd (boolean) — Allow the reseller to modify passwords.
  • acl-quota (boolean) — Allow the reseller to modify disk quotas.
    ALERT! Warning: This will allow resellers to circumvent package limits for disk space, if you are not using resource limits!
  • acl-rearrange-accts (boolean) — Allow the reseller to rearrange accounts.
  • acl-res-cart (boolean) — Allow the reseller to reset the shopping cart.
  • acl-status (boolean) — Allow the reseller to view the Service Status feature in WHM.
  • acl-resftp (boolean) — Allow the reseller to synchronize FTP passwords.
  • acl-restart (boolean) — Allow the reseller to restart services.
  • acl-show-bandwidth (boolean) — Allow the reseller to view accounts' bandwidth usage.
  • acl-ssl (boolean) — Allow the reseller to access the SSL Manager.
  • acl-ssl-gencrt (boolean) — Allow the reseller to access the SSL CSR/CRT generator.
  • acl-stats (boolean) — Allow the reseller to view account statistics.
  • acl-suspend-acct (boolean) — Allow the reseller to suspend accounts.
  • acl-upgrade-account (boolean) — Allow the reseller to upgrade and downgrade accounts.

Output

  • saveacllist — Root-level XML tag for the output of the saveacllist function.
    • results — Container for the results of the saveacllist function.
      • status (boolean) — Whether or not the operation succeeded.
        • 1 — yes.
        • 0 — no.
      • statusmsg (string) — Status or error message about the results of the function.

Examples

XML API

Calling the URL http://example.com:2087/xml-api/saveacllist?acllist=bob&acl-ssl=1 in WebHost Manager will produce output similar to:

<saveacllist>
     <results>
            <status>1</status>
            <statusmsg>ACL List bob saved.</statusmsg>
      </results>
</saveacllist>

JSON API

Calling the URL https://example.com:2087/json-api/saveacllist?acllist=bob&acl-ssl=1 in WebHost Manager will produce output similar to:

{
   "results":[
      {
         "status":1,
         "statusmsg":"ACL List bob saved."
      }
   ]
}

Topic revision: r8 - 14 Jan 2011 - 13:53:16 - MelanieSeibert