For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.kubernetes.clusters.byCluster_id(cluster_id).upgrades.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | UpgradesGetResponse>
Description
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/{cluster_id}/upgrades.
Parameters
cluster_id string required
Example: bd5f5959-5e1e-4205-a714-a914373942af
A unique ID that can be used to reference a Kubernetes cluster.
Min: 1
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.kubernetes.clusters
.byCluster_id("bd5f5959-5e1e-4205-a714-a914373942af").upgrades.get();
Response Example
Show Response Example
{
"available_upgrade_versions": [
{
"slug": "1.16.13-do.0",
"kubernetes_version": "1.16.13",
"supported_features": [
"cluster-autoscaler",
"docr-integration",
"token-authentication"
]
}
]
}
See /v2/kubernetes/clusters/{cluster_id}/upgrades in the API reference for additional detail on responses, headers, parameters, and more.