Manage ingress and egress firewall rules for a container. Use these endpoints to inspect existing rules, add new rules, toggle rule state without deletion, remove rules, or fully reset the firewall back to an open state.
All operations are scoped to a single container identified by {id}. Rules support three actions (allow, reject, drop) over tcp, udp, and icmp4 protocols, with optional filters for source, destination, ports, ICMP fields, and an enabled/disabled state.
"message":"This container has reached its firewall rule limit.",
"data":{
"field":"container_firewall_rule_limit",
"container_id":"507f1f77bcf86cd799439011",
"server_id":"507f1f77bcf86cd799439022",
"current_count":500,
"limit":500
}
}
Error Code
Title
Description
Resolution
CONTAINER_FIREWALL_RULE_LIMIT
Container firewall rule limit reached
The container already holds the maximum number of firewall rules allowed (ingress and egress counted together). The applicable limit is returned as max_rules when listing firewall rules.
Remove an existing firewall rule on this container before adding a new one.
CONTAINER_FIREWALL_BYTES_LIMIT
Container firewall rule size limit reached
The container’s firewall rules have reached their total serialized size budget. This can be hit below the rule-count limit when individual rules are large (long descriptions or address lists). The applicable limit is returned as max_bytes when listing firewall rules.
Remove rules, or shorten descriptions and address lists, before adding a new rule.
{
"statusCode":404,
"error":"Not Found",
"message":"Container not found"
}
{
"statusCode":503,
"error":"FIREWALL_INVENTORY_UNAVAILABLE",
"message":"Unable to verify this container's firewall rules. No changes were made.",
"data":{
"field":"firewall_inventory",
"container_id":"507f1f77bcf86cd799439011"
}
}
Error Code
Title
Description
Resolution
FIREWALL_INVENTORY_UNAVAILABLE
Firewall inventory unavailable
The container’s live firewall rule list could not be established (host unreachable, or a malformed response), so the rule limit could not be evaluated. The request fails closed: no rule was added.
Retry shortly. If it persists, the hosting server may be unreachable.
"message":"This container has reached its firewall rule limit.",
"data":{
"field":"container_firewall_rule_limit",
"container_id":"507f1f77bcf86cd799439011",
"server_id":"507f1f77bcf86cd799439022",
"current_count":500,
"limit":500
}
}
Error Code
Title
Description
Resolution
CONTAINER_FIREWALL_RULE_LIMIT
Container firewall rule limit reached
The container already holds the maximum number of firewall rules allowed (ingress and egress counted together). The applicable limit is returned as max_rules when listing firewall rules.
Remove an existing firewall rule on this container before adding a new one.
CONTAINER_FIREWALL_BYTES_LIMIT
Container firewall rule size limit reached
The container’s firewall rules have reached their total serialized size budget. This can be hit below the rule-count limit when individual rules are large (long descriptions or address lists). The applicable limit is returned as max_bytes when listing firewall rules.
Remove rules, or shorten descriptions and address lists, before adding a new rule.
{
"statusCode":404,
"error":"Not Found",
"message":"Container not found"
}
{
"statusCode":503,
"error":"FIREWALL_INVENTORY_UNAVAILABLE",
"message":"Unable to verify this container's firewall rules. No changes were made.",
"data":{
"field":"firewall_inventory",
"container_id":"507f1f77bcf86cd799439011"
}
}
Error Code
Title
Description
Resolution
FIREWALL_INVENTORY_UNAVAILABLE
Firewall inventory unavailable
The container’s live firewall rule list could not be established (host unreachable, or a malformed response), so the rule limit could not be evaluated. The request fails closed: no rule was added.
Retry shortly. If it persists, the hosting server may be unreachable.
Remove one or more rules that match the supplied filters. Pass all: true to remove every rule on the requested side, or combine all with other filters to bulk-remove a subset.
Delete the firewall ACL and detach the container from its firewall bridge, returning the container to an open (unfiltered) state. This is destructive: every ingress and egress rule is removed and the firewall attachment is torn down.