---
title: "Retrieve Available Upgrades for an Existing Kubernetes Cluster"
method: GET
path: "/v2/kubernetes/clusters/{cluster_id}/upgrades"
tags: ["DigitalOcean-public.v2-new_Kubernetes"]
---

# Retrieve Available Upgrades for an Existing Kubernetes Cluster

`GET /v2/kubernetes/clusters/{cluster_id}/upgrades`

To determine whether a cluster can be upgraded, and the versions to which it
can be upgraded, send a GET request to
`/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.

## Path parameters

- `cluster_id` string, uuid, required

## Response `200`

The response will be a JSON object with a key called
`available_upgrade_versions`. The value of this will be an array of objects,
representing the upgrade versions currently available for this cluster.

If the cluster is up-to-date (i.e. there are no upgrades currently available)
`available_upgrade_versions` will be `null`.

- object
  - `available_upgrade_versions` KubernetesVersion[], nullable
    - `slug` string — The slug identifier for an available version of Kubernetes for use when creating or updating a cluster. The string contains both the upstream version of Kubernetes as well as the DigitalOcean revision.
    - `kubernetes_version` string — The upstream version string for the version of Kubernetes provided by a given slug.
    - `supported_features` string[] — The features available with the version of Kubernetes provided by a given slug.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
