GetKubernetesVersions

Provides access to the available DigitalOcean Kubernetes Service versions.

Example Usage

Output a list of all available versions

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(DigitalOcean.GetKubernetesVersions.InvokeAsync());
        this.K8s_versions = example.Apply(example => example.ValidVersions);
    }

    [Output("k8s-versions")]
    public Output<string> K8s_versions { get; set; }
}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

example = digitalocean.get_kubernetes_versions()
pulumi.export("k8s-versions", example.valid_versions)
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const example = digitalocean.getKubernetesVersions({});
export const k8s_versions = example.then(example => example.validVersions);

Using GetKubernetesVersions

function getKubernetesVersions(args: GetKubernetesVersionsArgs, opts?: InvokeOptions): Promise<GetKubernetesVersionsResult>
function  get_kubernetes_versions(version_prefix=None, opts=None)
func GetKubernetesVersions(ctx *Context, args *GetKubernetesVersionsArgs, opts ...InvokeOption) (*GetKubernetesVersionsResult, error)
public static class GetKubernetesVersions {
    public static Task<GetKubernetesVersionsResult> InvokeAsync(GetKubernetesVersionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

VersionPrefix string

If provided, this provider will only return versions that match the string prefix. For example, 1.15. will match all 1.15.x series releases.

VersionPrefix string

If provided, this provider will only return versions that match the string prefix. For example, 1.15. will match all 1.15.x series releases.

versionPrefix string

If provided, this provider will only return versions that match the string prefix. For example, 1.15. will match all 1.15.x series releases.

version_prefix str

If provided, this provider will only return versions that match the string prefix. For example, 1.15. will match all 1.15.x series releases.

GetKubernetesVersions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

LatestVersion string

The most recent version available.

ValidVersions List<string>

A list of available versions.

VersionPrefix string
Id string

The provider-assigned unique ID for this managed resource.

LatestVersion string

The most recent version available.

ValidVersions []string

A list of available versions.

VersionPrefix string
id string

The provider-assigned unique ID for this managed resource.

latestVersion string

The most recent version available.

validVersions string[]

A list of available versions.

versionPrefix string
id str

The provider-assigned unique ID for this managed resource.

latest_version str

The most recent version available.

valid_versions List[str]

A list of available versions.

version_prefix str

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes
This Pulumi package is based on the digitalocean Terraform Provider.