CorefinityCorefinityDocs
Open the Control PanelControl Panel
Sites · 12 of 23

corestack_site_restore_deleted

Restore a deleted site.

Scope writeNo secrets returnedCoreCluster
On this page

When to use it

Bring back a site deleted with corestack_site_delete while it is still in its grace period.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_site_restore_deleted with site_id 4211. (Restore a deleted site.) Tell me what it returned.

Inputs

site_idintegerRequired

The deleted site's id (its production row). At least 1.

Example call

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

If it is refused

ReasonWhat to do
not_restorableOnly a production row in its grace period can be restored. A site deleted while its create was still waiting for a tested version was never set up, so there is nothing to restore (message: "This site was deleted before it was set up, so there is nothing to restore. You can create it again.").
provisioningThe site is still being created; wait for corestack_site_provisioning_get to finish.
capacity_blockedThe site's CoreCluster has no room for it now (a deleted site stops counting against the cluster's disk once its deletion has finished, so the room may have been used since). Restoring it is checked as creating it would be: with automatic upgrades on (corestack_company_auto_upgrades_get), the CoreCluster first grows within the company's monthly limit; otherwise, or over the limit, the message says what is short. Free some room or upgrade the package (corecluster_upgrade_options_get), then try again. Nothing was restored.
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.
rate_limitedThe person has restored as many deleted sites this minute as the limit allows (10 by default, shared with the Control Panel and the API; deleting sites never uses it up). A restore that is refused does not count. Wait retry_after_seconds, then call again.
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.
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