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/ticket_ssh_test_start
- A server running WHM.
https://whm-server.tld:2087/json-api/ticket_ssh_test_start
- 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/ticket_ssh_test_start?server_num=1&ticket_id=7648492'{ "data": {}, "metadata": { "command": "ticket_ssh_test_start", "reason": "OK", "result": 1, "version": 1 } }
Request
This function checks whether the server's firewall whitelist correlates with the granted support tickets. You can view granted support tickets in WHM's Grant cPanel Support Access interface (WHM >> Home >> Support >> Grant cPanel Support Access).
Note:
This function is not available through the command line. You must call it as a request body.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ticket_whitelist_check
- A server running WHM.
https://whm-server.tld:2087/json-api/ticket_whitelist_check
- 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/ticket_whitelist_check{ "data": { "chain_status": "ACTIVE", "problem": "NO" }, "metadata": { "command": "ticket_whitelist_check", "reason": "OK", "result": 1, "version": 1 } }
Request
This function adds cPanel Support's IP addresses to your server's firewall whitelist. This function is firewall-specific and does not change the cPHulk whitelist.
Note:
- This function is not available through the command line. You must call it as a request body.
- This function logs error messages to the
/usr/local/cpanel/logs/error_logfile.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/ticket_whitelist_setup
- A server running WHM.
https://whm-server.tld:2087/json-api/ticket_whitelist_setup
- 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/ticket_whitelist_setup{ "data": { "chain_status": "ACTIVE" }, "metadata": { "command": "ticket_whitelist_setup", "reason": "OK", "result": 1, "version": 1 } }