WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function lists the server's Access Control Lists (ACLs) and each list's privileges.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/listacls
- A server running WHM.
https://whm-server.tld:2087/json-api/listacls
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/listacls{ "data": { "acl": [ … ] }, "metadata": { "command": "listacls", "reason": "OK", "result": 1, "version": 1 } }
Request
This function creates or modifies an Access Control List (ACL).
Note:
For each acl-* parameter, a value of 1 adds that privilege to the ACL list and a value of 0 removes that privilege from the ACL list.
Warning:
We strongly recommend that WHM users create and edit ACLs and ACL privileges through WHM's Edit Reseller Nameservers and Privileges interface ( WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges ).
The ACL to assign to the reseller.
Note:
To modify an existing ACL, set this value to that ACL's name.
Whether to allow the reseller to view an account summary.
Whether to allow the reseller to add and remove hosting plans (packages).
Whether to allow the reseller to create packages with a dedicated IP address.
Whether to allow the reseller to create packages with shell access.
Whether to grant the reseller all privileges.
Warning:
A value of 1 grants root-level privileges to the reseller.
Whether to allow the reseller to create packages with addon domains.
Whether to allow the reseller to create packages with custom email quotas.
Whether to allow the reseller to create packages with parked domains (aliases).
Whether to allow the reseller to create accounts with shell access.
Whether to allow the reseller to create packages with unlimited bandwidth.
Whether to allow the reseller to create packages with unlimited disk space.
Whether to allow the reseller to create packages with unlimited features.
Whether to allow the reseller to retrieve basic system information.
Whether to allow the reseller to access basic cPanel & WHM options.
Whether to allow the reseller to use DNS clusters.
Whether to allow the reseller to perform Cross-Origin Resource Sharing (CORS) HTTP requests.
Whether to allow the reseller to execute cPanel API 1, cPanel API 2 and UAPI functions via WHM.
Whether to allow the reseller to manage how their server and its services connect to other servers and services.
Whether to allow the reseller to create accounts.
Whether to allow the reseller to add DNS zones.
Whether to allow the reseller to create a temporary user session for a specified service.
Notes:
This privilege allows an API token user to bypass any restrictions that you set on the API token. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to enable demo mode for accounts.
Whether to allow the reseller to manage Digest Authentication support.
Whether to allow the reseller to edit accounts.
Whether to allow the reseller to edit DNS zones.
Whether to allow the reseller to edit MX entries.
Whether to allow the reseller to edit hosting plans (packages).
Whether to allow the reseller to generate a mobile configuration profile for an email account.
Whether to allow the reseller to terminate accounts.
Whether to allow the reseller to remove DNS zones.
Whether to allow the reseller to modify bandwidth limits (quotas).
Warning:
If you do not use resource limits, a value of 1 allows resellers to circumvent package limits for disk space.
Whether to allow the reseller to view the list of accounts.
Whether to allow the reseller to view existing hosting plans (packages).
Whether to allow the reseller to create and modify locales on the server.
Whether to allow the reseller to troubleshoot mail delivery.
Whether to allow the reseller to manage API tokens.
Notes:
This privilege allows an API token user to bypass any restrictions that you set on the API token. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to manage DNS records.
Whether to allow the reseller to manage external authentication for their accounts.
Whether to allow the reseller to manage their server's cPanel styles.
Whether to allow the reseller to retrieve MySQL® database and user data.
Whether to allow the reseller to modify the server's news.
Whether to allow the reseller to manage nameservers.
Whether to allow the reseller to park DNS zones.
Whether to allow the reseller to change passwords.
Note:
This privilege allows an API token user to change account passwords and log in with a new password. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to modify quotas.
Warning:
If you do not use resource limits, this privilege allows resellers to circumvent package limits for disk space.
Whether to allow the reseller to rearrange accounts.
Whether to allow the reseller to resync FTP passwords.
Whether to allow the reseller to restart services.
Whether to allow the reseller to view account bandwidth usage.
Whether to allow the reseller to perform SSL site management.
Whether to allow the reseller to purchase SSL certificates.
Whether to allow the reseller to generate SSL certificates.
Whether to allow the reseller to view their server's SSL information.
Whether to allow the reseller to view server information.
Whether to allow the reseller to view the server's status.
Whether to allow the reseller to suspend or unsuspend accounts.
Whether to allow the reseller to manage third-party services.
Whether to allow the reseller to view reports about email message delivery attempts from their account.
Whether to allow the reseller to upgrade or downgrade accounts.
Whether to allow the reseller to use all global packages. For more information, read our reseller packages documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/saveacllist
- A server running WHM.
https://whm-server.tld:2087/json-api/saveacllist
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/saveacllist?acllist=my_acl_list&acl-acct-summary=1&acl-add-pkg=1&acl-add-pkg-ip=1&acl-add-pkg-shell=1&acl-all=1&acl-allow-addoncreate=1&acl-allow-emaillimits-pkgs=1&acl-allow-parkedcreate=1&acl-allow-shell=1&acl-allow-unlimited-bw-pkgs=1&acl-allow-unlimited-disk-pkgs=1&acl-allow-unlimited-pkgs=1&acl-basic-system-info=1&acl-basic-whm-functions=1&acl-clustering=1&acl-cors-proxy-get=1&acl-cpanel-api=1&acl-cpanel-integration=1&acl-create-acct=1&acl-create-dns=1&acl-create-user-session=1&acl-demo-setup=1&acl-digest-auth=1&acl-edit-account=1&acl-edit-dns=1&acl-edit-mx=1&acl-edit-pkg=1&acl-generate-email-config=1&acl-kill-acct=1&acl-kill-dns=1&acl-limit-bandwidth=1&acl-list-accts=1&acl-list-pkgs=1&acl-locale-edit=1&acl-mailcheck=1&acl-manage-api-tokens=1&acl-manage-dns-records=1&acl-manage-oidc=1&acl-manage-styles=1&acl-mysql-info=1&acl-news=1&acl-ns-config=1&acl-park-dns=1&acl-passwd=1&acl-quota=1&acl-rearrange-accts=1&acl-resftp=1&acl-restart=1&acl-show-bandwidth=1&acl-ssl=1&acl-ssl-buy=1&acl-ssl-gencrt=1&acl-ssl-info=1&acl-stats=1&acl-status=1&acl-suspend-acct=1&acl-thirdparty=1&acl-track-email=1&acl-upgrade-account=1&acl-viewglobalpackages=1'{ "metadata": { "command": "saveacllist", "reason": "ACL List my_acl_list saved.", "result": 1, "version": 1 } }
Request
This function creates or modifies an Access Control List (ACL).
Note:
For each acl-* parameter, any value adds that privilege to the ACL list and no value removes that privilege from the ACL list.
Warning:
We strongly recommend that WHM users create and edit ACLs and ACL privileges through WHM's Edit Reseller Nameservers and Privileges interface ( WHM >> Home >> Resellers >> Edit Reseller Nameservers and Privileges ).
Whether to allow the reseller to view an account summary.
Whether to allow the reseller to add and remove hosting plans (packages).
Whether to allow the reseller to create packages with a dedicated IP address.
Whether to allow the reseller to create packages with shell access.
Whether to grant the reseller all ACL privileges.
Warning:
A value of 1 grants root-level privileges to the reseller.
Whether to allow the reseller to create packages with addon domains.
Whether to allow the reseller to create packages with parked domains (aliases).
Whether to allow the reseller to create packages with unlimited bandwidth.
Whether to allow the reseller to create packages with unlimited disk space.
Whether to allow the reseller to create packages with unlimited features.
Whether to allow the reseller to retrieve basic system information.
Whether to allow the reseller to access basic cPanel & WHM options.
Whether to allow the reseller to use DNS clusters.
Whether to allow the reseller to perform Cross-Origin Resource Sharing (CORS) HTTP requests.
Whether to allow the reseller to execute cPanel API 1, cPanel API 2 and UAPI functions via WHM.
Whether to allow the reseller to manage how their server and its services connect to other servers and services.
Whether to allow the reseller to create accounts.
Whether to allow the reseller to add DNS zones.
Whether to allow the reseller to create a temporary session user for a specified service.
Note:
This privilege allows an API token user to bypass any restrictions that you set on the API token. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to enable demo mode for accounts.
Whether to allow the reseller to manage Digest Authentication support.
Whether to allow the reseller to create accounts with shell access.
Whether to allow the reseller to edit accounts.
Whether to allow the reseller to edit hosting plans (packages).
Whether to allow the reseller to generate a mobile configuration profile for an email account.
Whether to allow the reseller to terminate accounts.
Whether to allow the reseller to remove DNS zones.
Whether to allow the reseller to modify bandwidth limits (quotas).
Warning:
If you do not use resource limits, a value of 1 allows resellers to circumvent package limits for disk space.
Whether to allow the reseller to view the list of accounts.
Whether to allow the reseller to view existing hosting plans (packages).
Whether to allow the reseller to create and modify locales on the server.
Whether to allow the reseller to troubleshoot mail delivery.
Whether to allow the reseller to manage API tokens.
Note:
This privilege allows an API token user to bypass any restrictions that you set on the API token. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to manage DNS records.
Whether to allow the reseller to manage external authentication for their accounts.
Whether to allow the reseller to manage their server's cPanel styles.
Whether to allow the reseller to retrieve MySQL® database and user data.
Whether to allow the reseller to manage nameservers.
Whether to allow the reseller to modify the server's news.
Whether to allow the reseller to change passwords.
Note:
This privilege allows an API token user to change account passwords and log in with a new password. For more information, read our Manage API Tokens documentation.
Whether to allow the reseller to modify quotas.
Warning:
If you do not use resource limits, a value of 1 allows resellers to circumvent package limits for disk space.
Whether to allow the reseller to rearrange accounts.
Whether to allow the reseller to resync FTP passwords.
Whether to allow the reseller to view account bandwidth usage.
Whether to allow the reseller to perform SSL site management.
Whether to allow the reseller to purchase SSL certificates.
Whether to allow the reseller to generate SSL certificates.
Whether to allow the reseller to view their server's SSL information.
Whether to allow the reseller to view server information.
Whether to allow the reseller to view the server's status.
Whether to allow the reseller to suspend or unsuspend accounts.
Whether to allow the reseller to manage third-party services.
Whether to allow the reseller to view reports about email message delivery attempts from their account.
Whether to allow the reseller to upgrade or downgrade accounts.
Whether to allow the reseller to use all global packages. For more information, read our reseller packages documentation.
The ACL to assign to the reseller.
Warning:
Functions should either use this parameter, or a combination of the acl-* parameters below. Do not include both in a single function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/setacls
- A server running WHM.
https://whm-server.tld:2087/json-api/setacls
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/setacls?reseller=username&acl-acct-summary=1&acl-add-pkg=1&acl-add-pkg-ip=1&acl-add-pkg-shell=1&acl-all=1&acl-allow-addoncreate=1&acl-allow-parkedcreate=1&acl-allow-unlimited-bw-pkgs=1&acl-allow-unlimited-disk-pkgs=1&acl-allow-unlimited-pkgs=1&acl-basic-system-info=1&acl-basic-whm-functions=1&acl-clustering=1&acl-cors-proxy-get=1&acl-cpanel-api=1&acl-cpanel-integration=1&acl-create-acct=1&acl-create-dns=1&acl-create-user-session=1&acl-demo-setup=1&acl-digest-auth=1&acl-disallow-shell=1&acl-edit-account=1&acl-edit-dns=1&acl-edit-mx=1&acl-edit-pkg=1&acl-generate-email-config=1&acl-kill-acct=1&acl-kill-dns=1&acl-limit-bandwidth=1&acl-list-accts=1&acl-list-pkgs=1&acl-locale-edit=1&acl-mailcheck=1&acl-manage-api-tokens=1&acl-manage-dns-records=1&acl-manage-oidc=1&acl-manage-styles=1&acl-mysql-info=1&acl-nameserver-config=1&acl-news=1&acl-park-dns=1&acl-passwd=1&acl-quota=1&acl-rearrange-accts=1&acl-resftp=1&acl-restart=1&acl-show-bandwidth=1&acl-ssl=1&acl-ssl-buy=1&acl-ssl-gencrt=1&acl-ssl-info=1&acl-stats=1&acl-status=1&acl-suspend-acct=1&acl-thirdparty=1&acl-track-email=1&acl-upgrade-account=1&acl-viewglobalpackages=1&acllist=my_acl_list&user=username'{ "data": { "acl": [ … ] }, "metadata": { "command": "setacls", "reason": "OK", "result": 1, "version": 1 } }