This function installs an SSH key from the cPanel Customer Portal.
Note:
This function is not available through the command line. You must call it as a request body.
HTTP Request was successful.
object | |
object |
https://hostname.example.com:2087/cpsess##########/json-api/ticket_grant?api.version=1&ticket_id=999999999&secure_id=rofh411bv8&server_num=1
{- "data": {
- "auth_status": "AUTHED",
- "auth_time": 1477338450,
- "chain_status": "ACTIVE",
- "csf_wl_status": "ACTIVE",
- "host_access_wl_status": "ACTIVE",
- "hulk_wl_status": "ACTIVE",
- "non_fatals": [ ],
- "server_name": "example",
- "server_num": 1,
- "ssh_username": "username",
- "ticket_id": 999999999,
- "ticket_status": "OPEN"
}, - "metadata": {
- "command": "ticket_grant",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}