Actions34
- LAN Actions
- NIC Actions
- Firewall Rule Actions
- IP Block Actions
- NAT Gateway Actions
- NAT Gateway Rule Actions
- Flow Log Actions
Firewall Rule → Update
AI-generatedSummary
Update a firewall rule
Inputs
- datacenterId (required) — The unique ID of the datacenter
- serverId (required) — The unique ID of the server
- nicId (required) — The unique ID of the NIC
- firewallRuleId (required) — The unique ID of the firewall rule
- additionalFields — Additional configuration fields for the rule (e.g., source MAC, IP ranges, protocol, etc.)
Output shape
the updated firewall rule object
Returns the modified rule; only changed fields are typically included; success response contains the rule details and errors are thrown unless continueOnFail is enabled
Examples
Example 1: Modify an existing firewall rule to allow inbound HTTP from a specific source IP
Provide firewallRuleId, set additionalFields with sourceIp, targetIp, portRangeStart=80, portRangeEnd=80, protocol='TCP', type='INGRESS'