IONOS Cloud (Infrastructure) icon

IONOS Cloud (Infrastructure)

Manage IONOS Cloud infrastructure resources

Actions140

Firewall Rule → Create

AI-generated

Summary

Create a firewall rule

Inputs

  • datacenterId (required) — The ID of the datacenter
  • serverId (required) — The ID of the server
  • nicId (required) — The ID of the NIC
  • protocol (required) — The protocol for the firewall rule (TCP, UDP, ICMP, Any)
  • name — The name of the firewall rule
  • portRangeStart — Starting port of the range (1-65535), default 1
  • portRangeEnd — Ending port of the range (1-65535), default 65535
  • sourceIp — Source IP address or CIDR block
  • sourceMac — Source MAC address
  • includeRequestStatus — Whether to include request tracking ID and status URL from async operations, default false
  • includeResponseHeaders — Whether to include HTTP response headers and status code in the output, default false
  • requestOptions — Additional request options such as batching, proxy, timeout, SSL settings
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible, default false
  • proxy — HTTP proxy to use
  • timeout — Time in ms to wait for the server to send response headers, default 10000

Output shape

object

Returns the created firewall rule; when includeRequestStatus or includeResponseHeaders are enabled, the response is wrapped with tracking data or headers/statusCode.

Links

Discussion