Withdraw BGP FlowSpec rule
POST
/tasks/flap/bgp/flowspec/withdraw/{id}Withdraw a BGP FlowSpec rule announced by the emulated neighbor (from the session settings or by an action during the task), by the rule name.
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 | yes | object | name: the rule name; local_address and peer_address: select the BGP session (required if several sessions have FlowSpec); the optional agent field (agent ID or hostname) selects one routing agent of the task |
{}
Responses
4 responses
Status | Description | Type |
|---|---|---|
200 | Response: {status: ok, agents: {hostname: agent response}}; the agent response contains the emulator's reply (bgp-flowspec: operation, name, updates-tx, withdraws-tx) and the host time sent_unix_ns, answered_unix_ns | object |
400 | Invalid task ID, the request body is not a JSON object, or the agent value does not match any routing agent of the task | object |
401 | Unauthorized | object |
500 | Task is not running, has no routing agents, the agent rejected the request (no name), or the emulator rejected the command (no rule with this name, or the session is not established) | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }