The Container Firewall API controls the ingress and egress rules attached to a container. Use these endpoints to inspect the live rule set, append new rules, toggle rules on and off without deleting them, remove specific or bulk rules, or fully reset the firewall back to an open state.
Add a new ingress (inbound) firewall rule to a container. Use this endpoint to control which traffic can reach your container. All rules default to state: "enabled" if not specified.
"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.
Enable or disable an ingress (inbound) firewall rule without deleting it. Provide filters to identify which rule to toggle. Useful for temporarily disabling rules.
Remove one or more ingress (inbound) firewall rules. Provide filters to match specific rules, or use all: true to remove all ingress rules. Not equivalent to reset — this only deletes rules and leaves the firewall/ACL attached.
Add a new egress (outbound) firewall rule to a container. Use this endpoint to control which traffic your container can send. All rules default to state: "enabled" if not specified.
"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.
Enable or disable an egress (outbound) firewall rule without deleting it. Provide filters to identify which rule to toggle. Useful for temporarily disabling rules.
Remove one or more egress (outbound) firewall rules. Provide filters to match specific rules, or use all: true to remove all egress rules. Not equivalent to reset — this only deletes rules and leaves the firewall/ACL attached.
Delete the ACL and detach the container from its firewall bridge, returning the container to an open state. Use this to wipe a misconfigured rule set quickly; rebuilding the rule set afterwards requires adding rules one by one.