URL | POST {{basepath}}/hosting/:hosting_id/action |
---|---|
Category | Hosting |
Allows you start an action on a hosting object.
the request body should contain a HostingActionRequest object.
Returns a HostingActionResponse object.
:hosting_id | {{hosting_id}} |
---|
{
"type": "recalculatestats"
}
POST {{basepath}}/hosting/:hosting_id/action
{
"type": "malwarescan"
}
:hosting_id | {{hosting_id}} |
---|
202 Accepted
{
"responseId": "1_0a784bd588dca6de4b0e672e7c29e6bc83c05d50",
"status": "pending",
"message": "Action is queued for execution",
"identifier": "cd11f08f5357358192e431273b7807a13c3f036f"
}
POST {{basepath}}/hosting/:hosting_id/action
{
"type": "recalculatestats"
}
:hosting_id | {{hosting_id}} |
---|
202 Accepted
{
"responseId": "1_0a784bd588dca6de4b0e672e7c29e6bc83c05d50",
"status": "pending",
"message": "Action is queued for execution",
"identifier": "cd11f08f5357358192e431273b7807a13c3f036f"
}
POST {{basepath}}/hosting/:hosting_id/action
{
"type": "malwarecleanup"
}
:hosting_id | {{hosting_id}} |
---|
202 Accepted
{
"responseId": "1_0a784bd588dca6de4b0e672e7c29e6bc83c05d50",
"status": "pending",
"message": "Action is queued for execution",
"identifier": "cd11f08f5357358192e431273b7807a13c3f036f"
}
POST {{basepath}}/hosting/:hosting_id/action
{
"type": "deblacklist",
"arguments": [
"127.0.0.1"
]
}
:hosting_id | {{hosting_id}} |
---|
202 Accepted
{
"responseId": "1_0a784bd588dca6de4b0e672e7c29e6bc83c05d50",
"status": "pending",
"message": "Action is queued for execution",
"identifier": "cd11f08f5357358192e431273b7807a13c3f036f"
}
POST {{basepath}}/hosting/:hosting_id/action
{
"type": "malwarescan"
}
:hosting_id | {{hosting_id}} |
---|
405 Method Not Allowed
{
"responseId": "1_aaaa3324e5bd8df4c894ba55b69804497fe807f0",
"status": "error",
"errorCode": "not_active",
"errorMessage": "This hosting is not in an active state or there are pending jobs so cannot be updated, please try again later"
}