Skip to main content

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
Sectiontasks
AuthenticationCookieAuth
Consumesapplication/json
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
idpathyesintegerTask ID
requestbodyyesobjectname: 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_nsobject
400
Invalid task ID, the request body is not a JSON object, or the agent value does not match any routing agent of the taskobject
401
Unauthorizedobject
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>"
    }