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

corestack_nginx_rules_revision_get

nginx rules revision.

Scope readNo secrets returned
On this page

When to use it

Read one nginx rules revision of an environment row: its four hooks and a unified diff per hook against another revision (default the current one); with include_errors, the web error lines logged since it went live.

The answer: revision (its history row and content per hook), against (id, current) and diff per hook (null where the hook agrees). With include_errors, errors: available (false with a reason when the environment's logs cannot be read or the revision never went live), count (every line in the range), from (never older than the logs keep), to and up to 50 lines (at, level, message).

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_nginx_rules_revision_get with site_id 4211, revision_id 812, include_errors true. (nginx rules revision.) Tell me what it returned.

Inputs

against_revision_idinteger

Diff against this revision of the row instead of the current one. At least 1.

include_errorsboolean

Also the web error lines since the revision went live (up to 50).

revision_idintegerRequired

The revision (an id from corestack_nginx_rules_history_list). At least 1.

site_idintegerRequired

The environment row. At least 1.

Example call

tools/call
{
  "name": "corestack_nginx_rules_revision_get",
  "arguments": {
    "site_id": 4211,
    "revision_id": 812,
    "include_errors": true
  }
}

If it is refused

ReasonWhat to do
feature_offinclude_errors while logs are not available yet.
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.

Path apps

The answer also carries the revision's path apps: revision.content.path_apps (its records and gates, the whole list as corestack_nginx_rules_update takes it; null when it had none) and diff.path_apps, a unified diff of the two lists written as YAML against the revision named by against (null where they agree).

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT