corestack_ firewall_ entry_ add
Add a firewall address.
When to use it
Add an IPv4 or IPv6 address or a range up to /24 (IPv6 /48) at an environment, a website, your company or yourself, for SSH, the website, or both. Long-running: answers with a task that completes once every environment has applied it.
Ask for it
Using the Corefinity MCP server, call corestack_firewall_entry_add with owner {"type":"environment","id":9120}, address 203.0.113.7, comment Office. (Add a firewall address.) Tell me what it returned.Inputs
addressstringRequired
An IPv4 or IPv6 address, or a CIDR range (e.g. 203.0.113.7 or 203.0.113.0/24). Up to 64 characters.
commentstring
A note shown beside the address (at most 200 characters).
expires_in_daysinteger
Remove the address after 1, 30, 90 or 365 days. Leave it out for no expiry.
13090365ownerobjectRequired
{type, id}: environment (its environment.id), website, company, or user (your own id)
Fields
idintegerRequired
At least 1.
typestringRequired
environmentwebsitecompanyuserscopestring
both (default), ssh or web
bothsshwebExample call
{
"name": "corestack_firewall_entry_add",
"arguments": {
"owner": {
"type": "environment",
"id": 9120
},
"address": "203.0.113.7",
"comment": "Office"
}
}If it is refused
| Reason | What to do |
|---|---|
managed_elsewhere | Another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done. |
switched_off | The firewall is not available for this object yet. |
firewall_approval_required | Wider than /24 (IPv6 /48) — send it with corestack_firewall_range_request. |
firewall_width_refused | /8 or wider, never accepted. |
firewall_address_refused | A private, reserved or shared provider range. |
firewall_cap_exceeded | Over the limit of this level or of an environment it reaches. |
firewall_duplicate | Already on this list. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |
The same task elsewhere
Was this helpful?