1. Packages
  2. Scaleway
  3. API Docs
  4. kubernetes
  5. getVersion
Scaleway v1.41.0 published on Saturday, Jan 10, 2026 by pulumiverse
scaleway logo
Scaleway v1.41.0 published on Saturday, Jan 10, 2026 by pulumiverse

    The scaleway.kubernetes.getVersion data source is used to retrieve information about a Kubernetes version.

    Refer to the Kubernetes documentation and API documentation for more information.

    You can also use the scaleway-cli with scw k8s version list to list all available versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Use the latest version
    const latest = scaleway.kubernetes.getVersion({
        name: "latest",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Use the latest version
    latest = scaleway.kubernetes.get_version(name="latest")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/kubernetes"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Use the latest version
    		_, err := kubernetes.GetVersion(ctx, &kubernetes.GetVersionArgs{
    			Name: "latest",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Use the latest version
        var latest = Scaleway.Kubernetes.GetVersion.Invoke(new()
        {
            Name = "latest",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.kubernetes.KubernetesFunctions;
    import com.pulumi.scaleway.kubernetes.inputs.GetVersionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Use the latest version
            final var latest = KubernetesFunctions.getVersion(GetVersionArgs.builder()
                .name("latest")
                .build());
    
        }
    }
    
    variables:
      # Use the latest version
      latest:
        fn::invoke:
          function: scaleway:kubernetes:getVersion
          arguments:
            name: latest
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Use a specific version
    const byName = scaleway.kubernetes.getVersion({
        name: "1.26.0",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Use a specific version
    by_name = scaleway.kubernetes.get_version(name="1.26.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/kubernetes"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Use a specific version
    		_, err := kubernetes.GetVersion(ctx, &kubernetes.GetVersionArgs{
    			Name: "1.26.0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Use a specific version
        var byName = Scaleway.Kubernetes.GetVersion.Invoke(new()
        {
            Name = "1.26.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.kubernetes.KubernetesFunctions;
    import com.pulumi.scaleway.kubernetes.inputs.GetVersionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Use a specific version
            final var byName = KubernetesFunctions.getVersion(GetVersionArgs.builder()
                .name("1.26.0")
                .build());
    
        }
    }
    
    variables:
      # Use a specific version
      byName:
        fn::invoke:
          function: scaleway:kubernetes:getVersion
          arguments:
            name: 1.26.0
    

    Using getVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVersion(args: GetVersionArgs, opts?: InvokeOptions): Promise<GetVersionResult>
    function getVersionOutput(args: GetVersionOutputArgs, opts?: InvokeOptions): Output<GetVersionResult>
    def get_version(name: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVersionResult
    def get_version_output(name: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVersionResult]
    func GetVersion(ctx *Context, args *GetVersionArgs, opts ...InvokeOption) (*GetVersionResult, error)
    func GetVersionOutput(ctx *Context, args *GetVersionOutputArgs, opts ...InvokeOption) GetVersionResultOutput

    > Note: This function is named GetVersion in the Go SDK.

    public static class GetVersion 
    {
        public static Task<GetVersionResult> InvokeAsync(GetVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetVersionResult> Invoke(GetVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    public static Output<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:kubernetes/getVersion:getVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Kubernetes version.
    Region string
    region) The region in which the version exists.
    Name string
    The name of the Kubernetes version.
    Region string
    region) The region in which the version exists.
    name String
    The name of the Kubernetes version.
    region String
    region) The region in which the version exists.
    name string
    The name of the Kubernetes version.
    region string
    region) The region in which the version exists.
    name str
    The name of the Kubernetes version.
    region str
    region) The region in which the version exists.
    name String
    The name of the Kubernetes version.
    region String
    region) The region in which the version exists.

    getVersion Result

    The following output properties are available:

    AvailableCnis List<string>
    The list of supported Container Network Interface (CNI) plugins for this version.
    AvailableContainerRuntimes List<string>
    The list of supported container runtimes for this version.
    AvailableFeatureGates List<string>
    The list of supported feature gates for this version.
    Id string
    The provider-assigned unique ID for this managed resource.
    MajorMinorOnly string
    Name string
    Region string
    AvailableCnis []string
    The list of supported Container Network Interface (CNI) plugins for this version.
    AvailableContainerRuntimes []string
    The list of supported container runtimes for this version.
    AvailableFeatureGates []string
    The list of supported feature gates for this version.
    Id string
    The provider-assigned unique ID for this managed resource.
    MajorMinorOnly string
    Name string
    Region string
    availableCnis List<String>
    The list of supported Container Network Interface (CNI) plugins for this version.
    availableContainerRuntimes List<String>
    The list of supported container runtimes for this version.
    availableFeatureGates List<String>
    The list of supported feature gates for this version.
    id String
    The provider-assigned unique ID for this managed resource.
    majorMinorOnly String
    name String
    region String
    availableCnis string[]
    The list of supported Container Network Interface (CNI) plugins for this version.
    availableContainerRuntimes string[]
    The list of supported container runtimes for this version.
    availableFeatureGates string[]
    The list of supported feature gates for this version.
    id string
    The provider-assigned unique ID for this managed resource.
    majorMinorOnly string
    name string
    region string
    available_cnis Sequence[str]
    The list of supported Container Network Interface (CNI) plugins for this version.
    available_container_runtimes Sequence[str]
    The list of supported container runtimes for this version.
    available_feature_gates Sequence[str]
    The list of supported feature gates for this version.
    id str
    The provider-assigned unique ID for this managed resource.
    major_minor_only str
    name str
    region str
    availableCnis List<String>
    The list of supported Container Network Interface (CNI) plugins for this version.
    availableContainerRuntimes List<String>
    The list of supported container runtimes for this version.
    availableFeatureGates List<String>
    The list of supported feature gates for this version.
    id String
    The provider-assigned unique ID for this managed resource.
    majorMinorOnly String
    name String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.41.0 published on Saturday, Jan 10, 2026 by pulumiverse
      Meet Neo: Your AI Platform Teammate