IONOS Cloud Network icon

IONOS Cloud Network

Manage IONOS Cloud Network resources (LANs, NICs, IP Blocks, NAT Gateways, Firewall Rules, Flow Logs). Developped with Love by Ascenzia (ascenzia.fr)

Firewall Rule → Update

AI-generated

Summary

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'

Links

Discussion