corestack_ ssh_ host_ keys_ rotate
Rotate SSH host keys.
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
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
stage, now, finish or cancel.
stagenowfinishcancelType the environment's name exactly as corestack_ssh_host_keys_get shows it (environment.name). Up to 190 characters.
A CoreStack Enterprise environment's id (environment.id in corestack_ssh_keys_list). Give this or site_id. At least 1.
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
{
"name": "corestack_ssh_host_keys_rotate",
"arguments": {
"site_id": 912,
"action": "stage",
"confirm_environment": "Production"
}
}If it is refused
| Reason | What to do |
|---|---|
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. |
switched_off | SSH keys are not switched on for this object yet. |
confirm_mismatch | The typed name is not this environment's. |
ssh_host_keys_unmanaged | CoreStack Enterprise host keys are Corefinity's. |
ssh_rotation_unavailable | This environment cannot rotate its host keys yet. |
ssh_rotation_in_progress | Another rotation is running. |
enterprise_panel_only | SSH keys for CoreStack Enterprise environments are managed in the Control Panel only at the moment. |
invalid_arguments | The 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_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. |