Update firewall rule
VPS_updateFirewallRuleV1Modify an existing firewall rule by specifying the firewall ID, rule ID, and updated protocol, port, source, or source detail.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port or port range, ex: 1024:2048 | |
| ruleId | Yes | Firewall Rule ID | |
| source | Yes | source parameter | |
| protocol | Yes | protocol parameter | |
| firewallId | Yes | Firewall ID | |
| source_detail | Yes | IP range, CIDR, single IP or `any` |