This function removes a host from the cPanel account's /home/user/.ssh/known_hosts
file.
required | string or The hostname or IP address of the host to delete. Example: |
port | integer Default: The SSH port to use. Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ KnownHosts \ delete \ host_name='host.example.com'
{- "apiversion": 3,
- "func": "delete",
- "module": "KnownHosts",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}