corestack_ deployment_ rollback
Roll back a deployment.
When to use it
Go back to an earlier deployment's release. It runs as a new deployment.
After a converted site's first Git deployment, corestack_deployments_get can offer the site's files from before that deployment as releases.previous with before_git: true (its id is usually initial). Roll back to them with deployment_id = the current deployment and release_id = that id. It runs as a new deployment too, named "Rollback to the release before Git deployments". It is accepted only while it is offered.
Ask for it
Using the Corefinity MCP server, call corestack_deployment_rollback with site_id 4211, deployment_id 6610. (Roll back a deployment.) Tell me what it returned.Inputs
The deployment to go back to. At least 1.
A release of that deployment; its own when left out. Or the releases.previous id corestack_deployments_get offers with before_git (the site's files from before its first Git deployment). Up to 64 characters.
At least 1.
Example call
{
"name": "corestack_deployment_rollback",
"arguments": {
"site_id": 4211,
"deployment_id": 6610
}
}If it is refused
| Reason | What to do |
|---|---|
forbidden | The person's role lacks the Rollback Deployments permission. The message names it and says an owner of the company can grant it in Roles; details.permission is rollbackDeployments. Nothing is changed. |
invalid_arguments | "There is no earlier release to roll back to": the release is not one you can roll back to now — not a kept successful deployment's, the current one, or a before_git release that is no longer offered. Read corestack_deployments_get again. |
artifact_pruned | That deployment's archive was removed after 30 days, so it can't be rolled back to. Deploy again from the branch or commit (corestack_deployment_trigger). Archives are kept for 30 days, and always for a site's 10 most recent deployments and its newest successful one. |
managed_elsewhere | Another 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. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |