Actions140
- Application Load Balancer Actions
- Contract Actions
- Datacenter Actions
- Firewall Rule Actions
- Image Actions
- IP Block Actions
- Kubernetes Cluster Actions
- LAN Actions
- Load Balancer Actions
- Location Actions
- NAT Gateway Actions
- Network Load Balancer Actions
- NIC Actions
- Node Pool Actions
- Private Cross-Connect Actions
- Request Actions
- Security Group Actions
- Server Actions
- Snapshot Actions
- Target Group Actions
- Volume Actions
Firewall Rule → Create
AI-generatedSummary
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.