Retrieve the connection information related to a application that has been granted access to this server. This data may include any number of properties, but its primary purpose is to associate API tokens and public/private key pairs and similar resources with a specific connected application.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ fetch_connected_application \ name='application-1'
{- "data": {
- "data": {
- "jwt": {
- "challenge": "ddd13a92-d55e-4818-a960-9776ede6cd74,",
- "email": "john.doe@email.example,",
- "exp": "1401912171,",
- "ips": [
- "1.1.1.1",
- "2.2.2.2"
], - "iss_desc": "Sample application",
- "name": "John Doe,",
- "scope": [
- "admin:users,",
- "admin:resellers",
- "admin:domains"
], - "state": "xyz"
}, - "private_key": "FEF6253E6A122532430D",
- "privileges_granted": [
- "list-accts",
- "list-resellers",
- "create-user-session",
- "acct-summary",
- "connected-applications"
], - "public_key": "AAF6253E6A1225324305623EE",
- "token_name": "Application 1 API Token",
- "property1": null,
- "property2": null
}, - "name": "application-1"
}, - "metadata": {
- "command": "fetch_connected_application",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}