Stop periodic interface outage
POST
/tasks/interface/flap/schedule/stop/{id}Prevents new cycles from starting. A cycle already in progress safely finishes restoring the interface, after which the scheduler stops permanently.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
| request | body | no | object | Optional {agent: hostname} field for selecting one agent |
{}
Responses
4 responses
Status | Description | Type |
|---|---|---|
200 | Response: {status: ok, results: {host: ...}} | object |
400 | Invalid task ID | object |
401 | Unauthorized | object |
500 | Task is not running, has no agents, or the command could not be sent (includes per-agent results) | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{}