Agent completed transport drain
POST
/tasks/transport-ready/{id}Records completion of TCP/TLS/UDP drain on an agent. Once every task agent is ready, the controller allows IKE teardown on all of them simultaneously.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | AgentAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
| request | body | yes | object | Hostname of the ready agent |
{ "hostname": "<string>" }
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Number of ready agents | object |
400 | Invalid ID or request body | object |
403 | Agent is not assigned to the task | object |
404 | Task not found | object |
409 | Task is no longer being tracked | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }