CorefinityCorefinityDocs
Open the Control PanelControl Panel
SSH access · 17 of 22

corestack_ssh_legacy_key_keep

Keep a Legacy SSH key.

Scope writeRuns as a taskNo secrets returned
On this page

When to use it

Keep a Legacy key (from corestack_ssh_legacy_list) so it still works after the old shared list ends: at an environment, website or company (it logs in as web), or as your own personal key (user with your id). Long-running.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_ssh_legacy_key_keep with key_id 80211, owner {"type":"company","id":4211}. (Keep a Legacy SSH key.) Tell me what it returned.

Inputs

key_idintegerRequired

A Legacy key's id (corestack_ssh_legacy_list). At least 1.

ownerobjectRequired

{type, id} — where to keep it.

Fields
idintegerRequired

At least 1.

typestringRequired
environmentwebsitecompanyuser

Example call

tools/call
{
  "name": "corestack_ssh_legacy_key_keep",
  "arguments": {
    "key_id": 80211,
    "owner": {
      "type": "company",
      "id": 4211
    }
  }
}

If it is refused

ReasonWhat to do
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.
forbiddenKeeping the key as a company's key and the person's role lacks the Create Company SSH Keys permission. The message names it and says an owner of the company can grant it in Roles; details.permission is createCompanySSHKeys. Nothing is changed.
switched_offSSH keys are not switched on for this object yet.
ssh_not_legacyThe key is not a Legacy key.
ssh_legacy_endedThe Legacy list has already ended.
ssh_managed_on_another_environmentThis CoreStack Enterprise environment runs on the same server as another environment whose SSH the Control Panel manages, so its own keys are added, changed and removed there; the refusal's managed_on names that environment ({id, name}).
enterprise_panel_onlySSH keys for CoreStack Enterprise environments are managed in the Control Panel only at the moment.
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