This function links your server to a remote server node. The server uses an API token to communicate with the remote server node.
Important:
alias required | string [ 1 .. 50 ] characters A unique name that refers to the remote server node. Note: The alias may only contain alphanumeric characters, dashes ( Example: alias=example |
api_token required | string The API token required to make API calls to the remote server node. Note: The API token must have Example: api_token=23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H |
hostname required | string <hostname> The remote server node's hostname. Note: This parameter does not accept an IP address. Example: hostname=host.example.com |
username required | string <username> The username required to make API calls to the remote server node. Note: The username must have Example: username=root |
skip_tls_verification | integer Default: 0 Whether to skip SSL/TLS verification. The system performs this action when it queries the remote server node. Example: skip_tls_verification=0 |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ link_server_node_with_api_token \ alias='example' \ api_token='23ZX8RA1FTE1IVJRL90MB5CREDS4UE2H' \ hostname='host.example.com' \ username='root'
{- "metadata": {
- "command": "link_server_node_with_api_token",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}