☰

Q&A

Q1

The description of the optional stop_type parameter in the Event Stop API is a little unclear to us. How can I choose the parameters from webhook notifications?

A: If you want to stop an ongoing event, event_id is the only parameter you need.

stop_type == 1 means that the current event associated with this event_id (whether of the Network type or the Host type) should be stopped. stop_type == 2 means that in addition to stopping the current event corresponding to event_id, if the current event is of the Network type, all host-type events under it will also be stopped.

Q2

If an event is stopped, is all mitigation for that event released, including any blackhole routes?

A: It depends on your mitigation mode. If the mitigation mode is Manual, mitigation is always on, regardless of whether there is a detection event. If the mitigation mode is Auto, the mitigation actions depend on whether the event is ongoing. When an event is stopped, all related mitigation will be released, including the blackhole routes.

Q3

When an event is stopped manually through this endpoint, is a webhook notification sent (e.g. CP.DDoS with a stopped status)?

A: Yes, a webhook notification will be sent when an event is started or stopped, regardless of whether it is stopped automatically or manually.

Q4

The example response says the operation takes effect after about 30 seconds. Is that a fixed delay, and what’s the recommended way to confirm the event has stopped (e.g. polling ddos_events or active_mitigation_list)?

A: This 30 seconds is for the system to stop all actions and the traffic calculation script, and to release any blackhole routes, among other things. This stop action will not fail if the Event Stop API is called successfully.

You can call the Event Details API about 30 seconds later to make sure the event is stopped.

Q5

If the same traffic continues after the stop, will detection create a new event straight away, or is there a cooldown period?

A: A new event will be created. There is no cooldown period, but the traffic volume will be recalculated, just as it was before the first event.