Firewall
Per-interface firewall state and rulesets.
Endpoints
- GETRetrieve firewall rulesets ●
/firewall/rulesetsPaged list of the firewall rulesets defined on the Control Server, with their rules. - GETRetrieve a firewall ruleset ●
/firewall/rulesets/{rulesetId}One ruleset with its rules in enforcement order: lowest priority value first, ties in the order added. - POSTDisable firewall
/servers/{serverId}/firewall/{interface}/disableDisable the firewall on the server's primary or secondary interface. sync=true applies it on the hypervisor now; otherwise it applies at the next… - POSTEnable firewall
/servers/{serverId}/firewall/{interface}/enableEnable the firewall on the server's primary or secondary interface. sync=true applies the rules on the hypervisor now; otherwise they apply at the next… - PUTSet firewall management by the owner ●
/servers/{serverId}/firewall/userWhether the server's owner may manage the firewall in the client area. The flag is the server's own, copied from its package when it was built; the global… - GETRetrieve firewall
/servers/{serverId}/firewall/{interface}The firewall state and the raw rules stored for the interface. GET .../firewall/{interfaceRef}/rules returns the same rules as rule objects. - GETRetrieve a server interface's firewall counters ●
/servers/{serverId}/firewall/{interfaceRef}/countersWhat the hypervisor's native nft firewall has counted for the interface's rules since they were last applied, by rule id. Only for a hypervisor whose firewall… - GETRetrieve a server interface's firewall rules ●
/servers/{serverId}/firewall/{interfaceRef}/rulesThe interface's rules in enforcement order: lowest priority value first, ties in the order added. They take effect once the interface's firewall is enabled. - POSTAdd a firewall rule to a server interface ●
/servers/{serverId}/firewall/{interfaceRef}/rulesAdd a rule. An identical rule already on the interface is returned unchanged with created: false . apply: true pushes the rules to the running server. A body… - PUTEnable or disable a firewall rule ●
/servers/{serverId}/firewall/{interfaceRef}/rules/{ruleId}Enable or disable a rule. apply: true pushes the interface's rules to the running server; the status then follows the push. - DELETERemove a firewall rule ●
/servers/{serverId}/firewall/{interfaceRef}/rules/{ruleId}Remove a rule. apply: true also pushes the interface's rules to the running server and reports the outcome; the removal stands either way. - POSTAttach a firewall ruleset to a server interface ●
/servers/{serverId}/firewall/{interfaceRef}/rulesetsCopy a ruleset's rules onto the interface, keeping the rules already there. The copies are locked, so the server's owner cannot change them, and a copy that… - POSTApply a server interface's firewall rules now ●
/servers/{serverId}/firewall/{interfaceRef}/applyPush the interface's stored rules to the running server, waiting up to 30 seconds for the hypervisor's answer. One apply per server runs at a time.