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

corestack_nginx_corefinity_rules_move

Move Corefinity rules into my rules.

Scope writeRuns as a taskNo secrets returned
On this page

When to use it

Move the nginx rules Corefinity set up on an environment row (shown read-only by corestack_nginx_rules_get) into the row's own server rules, where they can be edited. Only blocks that answer every path exactly as before are moved; the move takes about a minute to apply. Needs the version corestack_nginx_rules_get answered.

corefinity_rules.blocks in corestack_nginx_rules_get lists each block with from_line, to_line, movable and the reasons a block stays. The moved blocks go to the top of the server rules in their order. A started move answers a task on its nginx_rules_move operation. A move applies now; apply: tonight is refused until the night batches take moves.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_nginx_corefinity_rules_move with site_id 4211, version 7. (Move Corefinity rules into my rules.) Tell me what it returned.

Inputs

applystring

now (default). Tonight is refused until the maintenance window can take a move (not_admitted). window: the row's next maintenance window (tonight is kept as its alias). Defaults to now.

nowwindowtonight
blocksarray of integers

The from_line of each Corefinity block to move (corefinity_rules.blocks); default every movable block.

site_idintegerRequired

The environment row. At least 1.

test_idinteger

A passed test for this same move. At least 1.

versionintegerRequired

The version from corestack_nginx_rules_get. At least 0.

Example call

tools/call
{
  "name": "corestack_nginx_corefinity_rules_move",
  "arguments": {
    "site_id": 4211,
    "version": 7
  }
}

If it is refused

ReasonWhat to do
move_changes_behaviourThe move would change which rule answers a path; details.paths lists them.
not_runningThe environment is stopped (a move is checked as the environment starts).
staleThe rules changed since version was read.
nginx_invalidnginx_test_failed: the rules with the blocks moved in failed the policy or nginx -t; details.diagnostics.
nginx_rules_lockedCorefinity staff hold this environment's nginx rules.
busyAnother change runs on the environment.
change_pendingA change is queued, the last change is not confirmed yet, or the rules have an open drift.
managed_elsewhereAnother 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.
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