CorefinityCorefinityDocs
Open the Control PanelControl Panel
Web server rules · 10 of 14

corestack_nginx_policy_get

nginx rules policy.

Scope readNo secrets returned
On this page

When to use it

What custom nginx rules may contain: per hook the allowed directives with their argument checks, the refused ones with the reason and where to go instead, the governed headers and the limits. Pass site_id for that environment's platform, nginx image and hooks.

With site_id, rate_limit_presets lists only the platform rate-limit presets (limit_req zone=cf_rl_*) that environment's runtime supports: none on a runtime without them, or before its one-time update. Without site_id it is the platform's whole list.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_nginx_policy_get with site_id 4211. (nginx rules policy.) Tell me what it returned.

Inputs

imagestring

Without site_id: the nginx image whose directives apply (default the runtime image).

base/nginx:1.30.2-1nginx:1.30.6-r1
platformstring

Without site_id: one platform's presets only.

laravelmagento2shopware5wordpress
site_idinteger

An environment row: picks its platform, nginx image and hooks. Leave it out for the policy without a row. At least 1.

Example call

tools/call
{
  "name": "corestack_nginx_policy_get",
  "arguments": {
    "site_id": 4211
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsThe 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_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe 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_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT