List currently executing and recently completed tasks.
$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2083/3rdparty/installatron/index.cgi? # cpanel
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2087/3rdparty/installatron/index.cgi? # whm
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2222/CMD_PLUGINS/installatron/index.raw? # directadmin
curl -X POST $cpapi/tasks \
-H 'X-HTTP-Method-Override: GET' \
-H 'Accept: application/json'
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"total_count": 3,
"has_more": false,
"data":[
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
]
},
$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2083/3rdparty/installatron/index.cgi? # cpanel
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2087/3rdparty/installatron/index.cgi? # whm
#$cpapi=https://{USER}:{PASS}@{SERVER_IP}:2222/CMD_PLUGINS/installatron/index.raw? # directadmin
curl -X POST $cpapi/tasks \
-H 'X-HTTP-Method-Override: GET' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"restart": true
}
'
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"total_count": 3,
"has_more": false,
"data":[
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
{
"id": "1234567890123456789",
"cmd": "uninstall",
"cpu": "/var/installatron/tasks/task_cpu0",
"install": "1234567890abcdefghij12345",
"message": "_tasks_uninstall_complete",
"node": "",
"pid": 1234,
"percent": "100",
"rate": 9999,
"status": "complete",
"time_created": 1234567890,
"time_updated": 1234567890,
"title": "My blog",
"url": "https://www.website.com",
"user": "useraccountname",
},
]
},