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/unlink_server_node
- A server running WHM.
https://whm-server.tld:2087/json-api/unlink_server_node
- 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/unlink_server_node?alias=example&handle_api_token=expire_24h'{ "data": { "alias": "example", "enabled_services": [ … ], "hostname": "example.com", "last_check": 1556576165, "system_settings": { … }, "tls_verified": 1, "username": "root", "version": "11.86.0.0", "worker_capabilities": { … } }, "metadata": { "command": "unlink_server_node", "reason": "OK", "result": 1, "version": 1 } }
Request
This function updates a linked remote cPanel server node.
Important:
This function requires the use of an API token. For more information, read our Guide to API Authentication - API Tokens in WHM documentation.
The API token required to make API calls to the remote cPanel server node.
This value defaults to the existing API token.
Note:
The API token must have root-level access on the remote cPanel server node.
A new remote cPanel server node's hostname. The system will update your remote cPanel server node's hostname to this value.
This value defaults to the existing hostname.
Note:
This parameter does not accept an IP address.
Whether to skip SSL/TLS verification. The system performs this action when it queries the remote cPanel server node.
Note:
If the remote cPanel server is SSL/TLS verified, you cannot skip verification.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/update_linked_server_node
- A server running WHM.
https://whm-server.tld:2087/json-api/update_linked_server_node
- 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/update_linked_server_node?alias=example&api_token=23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H&hostname=example.com&skip_tls_verification=0&username=root'{ "metadata": { "command": "update_linked_server_node", "reason": "OK", "result": 1, "version": 1 } }