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

corestack_ssh_host_keys_rotate

Rotate SSH host keys.

Scope writeAsks you to confirmRuns as a taskNo secrets returned
On this page

When to use it

Rotate an environment's SSH host keys. Type the environment's name as confirm_environment exactly as corestack_ssh_host_keys_get shows it. Prefer stage (new keys offered now, switched in 7 days); now switches at once and every client sees a host-key warning; finish and cancel end a staged rotation. The answer comes at once with rotation (its rotation_id and state) and no task: the rotation carries on by itself. Read corestack_ssh_host_keys_get until rotation.state is done, cancelled, aborted or failed for the same rotation.rotation_id; a staged rotation stays offered until it is finished or its day comes. change is null, because a rotation is not a change corestack_ssh_change_get answers.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_ssh_host_keys_rotate with site_id 912, action stage. (Rotate SSH host keys.) Tell me what it returned.

Inputs

actionstringRequired

stage, now, finish or cancel.

stagenowfinishcancel
confirm_environmentstringRequiredConfirmation

Type the environment's name exactly as corestack_ssh_host_keys_get shows it (environment.name). Up to 190 characters.

enterprise_env_idinteger

A CoreStack Enterprise environment's id (environment.id in corestack_ssh_keys_list). Give this or site_id. At least 1.

site_idinteger

A CoreStack or CoreCluster environment row, as the other corestack tools take it. Give this or enterprise_env_id. At least 1.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_ssh_host_keys_rotate",
  "arguments": {
    "site_id": 912,
    "action": "stage",
    "confirm_environment": "Production"
  }
}

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.
switched_offSSH keys are not switched on for this object yet.
confirm_mismatchThe typed name is not this environment's.
ssh_host_keys_unmanagedCoreStack Enterprise host keys are Corefinity's.
ssh_rotation_unavailableThis environment cannot rotate its host keys yet.
ssh_rotation_in_progressAnother rotation is running.
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