VPS: Firewall
Update firewall rule
Update a specific firewall rule from a specified firewall.
Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
Use this endpoint to modify existing firewall rules.
put/api/vps/v1/firewall/{firewallId}/rules/{ruleId}
Path parameters
firewallIdinteger required
Example:9449049
Firewall ID
ruleIdinteger required
Example:8941182
Firewall Rule ID
Request body
Example request
{
"protocol": "TCP",
"port": "443",
"source": "any",
"source_detail": "351.15.24.0/24"
}Response
Success response
Example response
{
"id": 24541,
"action": "accept",
"protocol": "TCP",
"port": "1024:2048",
"source": "any",
"source_detail": "any"
}