WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_autossl_user_excluded_domains
- A server running WHM.
https://whm-server.tld:2087/json-api/get_autossl_user_excluded_domains
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_autossl_user_excluded_domains \
username='example'{ "data": { "payload": [ … ] }, "metadata": { "command": "get_autossl_user_excluded_domains", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remove_autossl_user_excluded_domains
- A server running WHM.
https://whm-server.tld:2087/json-api/remove_autossl_user_excluded_domains
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
remove_autossl_user_excluded_domains \
username='username' \
domain='cpcalendars.example.com'{ "metadata": { "command": "remove_autossl_user_excluded_domains", "reason": "OK", "result": 1, "version": 1 } }
Additional parameters which you wish to pass to the AutoSSL provider.
Note:
These additional parameters begin with the x_ prefix. For example, the Let's Encrypt provider accepts the x_terms_of_service_accepted parameter, to which you would pass the URL of the terms of service that you accept.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/reset_autossl_provider
- A server running WHM.
https://whm-server.tld:2087/json-api/reset_autossl_provider
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
reset_autossl_provider \
provider='cPanel'{ "metadata": { "command": "reset_autossl_provider", "reason": "OK", "result": 1, "version": 1 } }