WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function removes a cPanel Customer Portal SSH key from the server.
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_revoke
- A server running WHM.
https://whm-server.tld:2087/json-api/ticket_revoke
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
Language is not supported.{ "data": { "chain_status": "ACTIVE", "csf_wl_status": "ACTIVE", "host_access_wl_status": "ACTIVE", "hulk_wl_status": "ACTIVE", "non_fatals": [], "revoked_keys": 1, "server_num": 2, "ssh_username": "username", "ticket_id": 999999999 }, "metadata": { "command": "ticket_revoke", "reason": "OK", "result": 1, "version": 1 } }
Request
This function verifies the connection from the cPanel Customer Portal to the server.
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_ssh_test
- A server running WHM.
https://whm-server.tld:2087/json-api/ticket_ssh_test
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
Language is not supported.{ "data": { "non_fatals": [ … ], "result": "SUCCESS" }, "metadata": { "command": "ticket_ssh_test", "reason": "OK", "result": 1, "version": 1 } }
- 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
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
Language is not supported.{ "data": {}, "metadata": { "command": "ticket_ssh_test_start", "reason": "OK", "result": 1, "version": 1 } }