Skip to content

Cluster Versions and Upgrades

Three endpoints answer the questions that come up before an upgrade: which versions exist, which ones your cluster has to pass through, and what actually changes on the way.

curl "https://api.skycloak.io/cluster-types/keycloak/versions" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"
[
  {
    "version": "26.2.4",
    "active": true,
    "is_major_change": false,
    "breaking_change_count": 0
  },
  {
    "version": "27.0.0",
    "active": true,
    "is_major_change": true,
    "breaking_change_count": 3
  }
]

Versions are ordered oldest first. Each entry carries:

  • version: the version number.
  • active: whether the version is currently offered for new clusters and upgrades.
  • is_major_change: whether moving onto this version from the previous supported version crosses a major boundary.
  • breaking_change_count: how many breaking changes are recorded for the version.

The list includes versions that are no longer offered (active: false), because a cluster of yours may still be running one.

The last two matter for automatic upgrades: a cluster with auto-upgrade enabled is moved one clean step at a time during its maintenance window, and a version that is a major change or carries a breaking change is never applied automatically. It waits for you.

curl "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-path" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"
[
  { "version": "26.2.4", "required": false, "is_major_change": false, "breaking_change_count": 0 },
  { "version": "26.4.0", "required": true, "is_major_change": false, "breaking_change_count": 0 },
  { "version": "27.0.0", "required": true, "is_major_change": true, "breaking_change_count": 3 }
]

The first entry is the cluster’s current version (required is false); every later entry is a step you have to pass through, oldest first. is_major_change and breaking_change_count tell you which of those steps needs a human. This endpoint requires the clusters:read scope.

Preview the breaking changes between two versions

Section titled “Preview the breaking changes between two versions”
curl "https://api.skycloak.io/cluster-types/keycloak/upgrade-preview?from=26.2.4&to=27.0.0" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"
[
  {
    "title": "Admin API endpoint moved",
    "summary": "The endpoint that listed client scopes moved under a new path.",
    "severity": "breaking",
    "action_required": "Update automation that calls the old path before upgrading."
  }
]

from is exclusive and to is inclusive, so the example returns everything recorded for the versions after 26.2.4 up to and including 27.0.0, oldest version first. Both parameters are required and must be version numbers such as 26.4.0; a missing or malformed one returns 400.

severity is breaking, config-change or deprecation. action_required is null when no concrete step is recorded. The content comes from the product’s own migration guides, so it is a summary of what upstream published, not a guarantee that your configuration is affected.

This endpoint describes a cluster type rather than any cluster of yours, so it needs an API key but no extra scope, like the versions list.

Instead of upgrading one version at a time by hand, ask for a target version. The cluster moves through every version of its upgrade path in order until it reaches it.

curl "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-path-preview?to=27.0.0" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"
{
  "from_version": "26.2.4",
  "target_version": "27.0.0",
  "force": false,
  "allowed": false,
  "steps": [
    { "version": "26.4.0", "state": "pending", "is_major_change": false, "has_breaking_changes": false },
    { "version": "27.0.0", "state": "pending", "is_major_change": true, "has_breaking_changes": true }
  ],
  "blockers": [
    { "version": "27.0.0", "kind": "major_jump", "overridable": true, "detail": "26.4.0 to 27.0.0 crosses a major version" },
    { "version": "27.0.0", "kind": "breaking_change", "overridable": true, "detail": "3 breaking changes between 26.4.0 and 27.0.0", "breaking_changes": ["Admin API endpoint moved"] }
  ]
}

The preview starts nothing and changes nothing. allowed says whether a request with the same force would be accepted. Add force=true to see the answer with force. The to parameter is required: a request without it returns 422 with an error naming to. This endpoint requires the clusters:read scope.

curl -X POST "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-paths" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta" \
  -H "Content-Type: application/json" \
  -d '{ "target_version": "26.4.0", "timing": "now" }'
  • target_version is the version the cluster should end on.
  • timing is now or maintenance_window. With now, each step starts when the previous one is confirmed complete. With maintenance_window, one step runs per maintenance window, and the next is queued when the previous one is done.
  • force is optional and defaults to false. It accepts breaking changes and major version jumps. It never overrides an incompatible extension or an inactive version.

The request returns 202 with the path, including its id. This endpoint requires the clusters:write scope.

A forced path can cross breaking changes, and there is no rollback once the database has migrated. A forced path is recorded in the audit log with who asked for it.

A request that cannot start returns an error and changes nothing:

  • 422 with a blockers list: the path has blockers. Without force, a breaking-change step or a major jump is listed in blockers by version. A step with an incompatible extension, or an inactive or quarantined version, is listed with or without force, naming the version and the extension.
  • 409: the cluster already has an active path, is being upgraded, has an upgrade queued, or is not available. A cluster holds one active path at a time, and a manual upgrade is refused while one runs.
  • 422 with an errors list instead of blockers: the request body is malformed, for example timing is not now or maintenance_window. Each entry names the field.
  • 400: the target is not a supported version, or the target is not newer than the current version.
curl "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-paths" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"

Returns the cluster’s paths, newest first, up to the 20 most recent, each shaped like the response of reading a path. The first one with status pending or running is the active path, so a path started elsewhere can be read or cancelled without knowing its id. This endpoint requires the clusters:read scope.

curl "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-paths/$PATH_ID" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"

The response carries target_version, timing, force, status, reached_version, running_version while a step is running, and every step with its state. status is pending, running, completed, failed or cancelled; a step is pending, running, done, failed, or skipped. A failed path carries failure_reason. This endpoint requires the clusters:read scope.

curl -X POST "https://api.skycloak.io/clusters/$CLUSTER_ID/upgrade-paths/$PATH_ID/cancel" \
  -H "API-Key: $SKYCLOAK_API_KEY" \
  -H "API-Version: 2026-06-01.beta"

The step in progress finishes, the remaining steps are skipped, and the path shows cancelled. reached_version is the version at the moment of the cancel and is not updated if the step in progress then finishes. Cancelling a path that already ended returns 409. This endpoint requires the clusters:write scope.