CorefinityCorefinityDocs
Open the Control PanelControl Panel
Snapshots and restores · 9 of 14

corestack_restore_create

Restore a snapshot.

Scope writeAlso destructive to reveal secretsAsks you to confirmRuns as a taskNo secrets returnedCoreCluster
On this page

When to use it

Restore a snapshot onto its row — everything, the database or the files. Onto the production row it overwrites production.

The task's answer is the restore, whose safety_snapshot.id is the Undo point: restore it with this tool to go back.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_restore_create with site_id 4211, snapshot_id 9051, mode everything, safety_snapshot false. (Restore a snapshot.) Tell me what it returned.

Inputs

confirm_domainstringRequiredConfirmation

The site's domain, typed exactly (every row). Up to 255 characters.

modestringRequired
everythingdatabasefiles
safety_snapshotbooleanRequired

Snapshot the row first, so the restore can be undone.

site_idintegerRequired

The row the snapshot belongs to. At least 1.

snapshot_idintegerRequired

At least 1.

  • anonymise (boolean): Anonymise the restored data (non-production rows only); needs restore anonymising switched on.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_restore_create",
  "arguments": {
    "site_id": 4211,
    "snapshot_id": 9051,
    "mode": "everything",
    "safety_snapshot": false,
    "confirm_domain": "example.co.uk"
  }
}

If it is refused

ReasonWhat to do
recovery_requiredThe site must first be restored whole from its own snapshot; contact support or restore the whole site.
support_onlyUnfinished work or a hold by Corefinity's team blocks this; contact support, retrying cannot help.
not_startedThe restore could not start (its copy could not be made available or the safety snapshot was refused); it will not advance, so tell the person what the message says.
mariadb_changeThe snapshot's database version cannot be restored into this row; restore it into a new environment instead (corestack_environment_create with source clone and its snapshot_id; while restoring anywhere is switched on, corestack_snapshot_restore_to).
snapshot_unavailableThe snapshot is still being taken or is no longer available; choose another.
runtime_unpreparedThe environment needs a platform update before it can take this restore (a snapshot from before an earlier copy or restore of this environment); nothing was changed. Tell the person to contact Corefinity support to update it; retrying cannot help.
anonymise_productionProduction is never anonymised; leave anonymise out.
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