IONOS Cloud (Infrastructure) icon

IONOS Cloud (Infrastructure)

Manage IONOS Cloud infrastructure resources

Actions140

Firewall Rule → Update

AI-generated

Summary

Update an existing firewall rule on a NIC of a server in a specific datacenter using the IONOS Cloud API. Required inputs: datacenterId, serverId, nicId, firewallRuleId. Optional inputs: protocol (TCP/UDP/ICMP/ANY, default TCP), name, portRangeStart (1-65535, default 1), portRangeEnd (1-65535, default 65535), sourceIp, sourceMac, includeRequestStatus (boolean, default false), includeResponseHeaders (boolean, default false). Output: the API response for the updated firewall rule; if includeRequestStatus is true, includes request tracking ID and status URL; if includeResponseHeaders is true, nests the response body under a 'body' key with 'headers' and 'statusCode' alongside it.

Inputs

  • datacenterId (required) — ID of the datacenter
  • serverId (required) — ID of the server
  • nicId (required) — ID of the NIC
  • firewallRuleId (required) — ID of the firewall rule
  • protocol (required) — Protocol for the firewall rule (TCP, UDP, ICMP, ANY)
  • name — Name of the firewall rule
  • portRangeStart — Starting port of the range (1-65535)
  • portRangeEnd — Ending port of the range (1-65535)
  • sourceIp — Source IP address or CIDR block
  • sourceMac — Source MAC address
  • includeRequestStatus — Whether to include request tracking ID and status URL
  • includeResponseHeaders — Whether to include HTTP response headers and status code

Output shape

API response object; optionally includes tracking info or headers/statusCode based on flags.

When includeResponseHeaders is true, the response body is nested under a 'body' key with 'headers' and 'statusCode' alongside it.

Links

Discussion