Firewalls
Add firewall rule to firewall
Creates a firewall rule and adds it to an existing firewall. Include the firewall ID in the path, and provide the firewall rule configuration in the request body.
post/core/firewalls/{firewall_id}/firewall-rules
Request
- Base URL: https://infrahub-api.nexgencloud.com/v1
- URL: https://infrahub-api.nexgencloud.com/v1/core/firewalls/{firewall_id}/firewall-rules
- Auth: API key in header api_key
Path parameters
firewall_idinteger required
ID of the firewall.
Request body
Example request
{
"protocol": "any"
}Response
Success
Example response
{
"status": true,
"message": "Firewall Rule created successfully",
"firewall_rule": {
"id": 7613,
"direction": "egress",
"protocol": "any",
"port_range_min": 1,
"port_range_max": 65535,
"ethertype": "IPv4",
"remote_ip_prefix": "0.0.0.0/0",
"status": "SUCCESS",
"created_at": "2026-05-06T15:18:42Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.