Firewall rules define network access controls for your servers. They specify which IP addresses, servers, or server groups can communicate on specific ports and protocols.
id
integerThe unique identifier of the firewall rule.
from_ip
stringThe source IP address or CIDR block that traffic originates from.
from_group_id
integerThe ID of the source server group that traffic originates from.
from_server_id
stringThe UID of the source server that traffic originates from.
to_ip
stringThe destination IP address or CIDR block that traffic is directed to.
to_group_id
integerThe ID of the destination server group that traffic is directed to.
to_server_id
stringThe UID of the destination server that traffic is directed to.
protocol
stringThe network protocol for this rule (tcp, udp, or icmp).
port
stringThe port or port range for this rule (e.g., "80", "443", "8000-8999").
rule_type
stringThe type of firewall rule (static, dynamic, or user).
comments
stringOptional comments or description for this firewall rule.
created_at
datetimeThe date and time the firewall rule was created, in ISO 8601 format.
updated_at
datetimeThe date and time the firewall rule was last updated, in ISO 8601 format.
Example
{
"id": 789,
"from_ip": "192.168.1.0/24",
"from_group_id": null,
"from_server_id": null,
"to_ip": null,
"to_group_id": 123,
"to_server_id": null,
"protocol": "tcp",
"port": "443",
"rule_type": "user",
"comments": "Allow HTTPS traffic from office network",
"created_at": "2024-01-20T09:15:00Z",
"updated_at": "2024-02-10T16:30:00Z"
}