1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. kafka
  6. getVersion
Viewing docs for Scaleway v1.56.1
published on Thursday, Sep 17, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.56.1
published on Thursday, Sep 17, 2026 by pulumiverse

    The scaleway.kafka.getVersion data source is used to retrieve information about an available Kafka version.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Use the latest version
    const latest = scaleway.kafka.getVersion({
        name: "latest",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Use the latest version
    latest = scaleway.kafka.get_version(name="latest")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/kafka"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Use the latest version
    		_, err := kafka.GetVersion(ctx, &kafka.GetVersionArgs{
    			Name: "latest",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Use the latest version
        var latest = Scaleway.Kafka.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.kafka.KafkaFunctions;
    import com.pulumi.scaleway.kafka.inputs.GetVersionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = KafkaFunctions.getVersion(GetVersionArgs.builder()
                .name("latest")
                .build());
    
        }
    }
    
    variables:
      # Use the latest version
      latest:
        fn::invoke:
          function: scaleway:kafka:getVersion
          arguments:
            name: latest
    
    pulumi {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_kafka_getversion" "latest" {
      name = "latest"
    }
    
    # Use the latest version
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    // Use a specific version
    const byName = scaleway.kafka.getVersion({
        name: "4.0.0",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    # Use a specific version
    by_name = scaleway.kafka.get_version(name="4.0.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/kafka"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Use a specific version
    		_, err := kafka.GetVersion(ctx, &kafka.GetVersionArgs{
    			Name: "4.0.0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        // Use a specific version
        var byName = Scaleway.Kafka.GetVersion.Invoke(new()
        {
            Name = "4.0.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.kafka.KafkaFunctions;
    import com.pulumi.scaleway.kafka.inputs.GetVersionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = KafkaFunctions.getVersion(GetVersionArgs.builder()
                .name("4.0.0")
                .build());
    
        }
    }
    
    variables:
      # Use a specific version
      byName:
        fn::invoke:
          function: scaleway:kafka:getVersion
          arguments:
            name: 4.0.0
    
    pulumi {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_kafka_getversion" "byName" {
      name = "4.0.0"
    }
    
    # Use a specific version
    

    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?: InvokeOutputOptions): Output<GetVersionResult>
    def get_version(name: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVersionResult
    def get_version_output(name: pulumi.Input[Optional[str]] = None,
                    region: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = 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 Output<GetVersionResult> Invoke(GetVersionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    public static Output<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    public static Output<GetVersionResult> getVersion(GetVersionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scaleway:kafka/getVersion:getVersion
      arguments:
        # arguments dictionary
    data "scaleway_kafka_get_version" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    Region string
    The region the Kafka version is available in.
    Name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    Region string
    The region the Kafka version is available in.
    name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    region string
    The region the Kafka version is available in.
    name String
    The Kafka version name. Use latest to retrieve the most recent available version.
    region String
    The region the Kafka version is available in.
    name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    region string
    The region the Kafka version is available in.
    name str
    The Kafka version name. Use latest to retrieve the most recent available version.
    region str
    The region the Kafka version is available in.
    name String
    The Kafka version name. Use latest to retrieve the most recent available version.
    region String
    The region the Kafka version is available in.

    getVersion Result

    The following output properties are available:

    AvailableSettings List<Pulumiverse.Scaleway.Kafka.Outputs.GetVersionAvailableSetting>
    The cluster configuration settings available for clusters running this version.
    EndOfLifeAt string
    The end-of-life date of the version (RFC 3339 format).
    Id string
    The ID of the version, in the {region}/{version} format.
    Name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    Region string
    The region the Kafka version is available in.
    AvailableSettings []GetVersionAvailableSetting
    The cluster configuration settings available for clusters running this version.
    EndOfLifeAt string
    The end-of-life date of the version (RFC 3339 format).
    Id string
    The ID of the version, in the {region}/{version} format.
    Name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    Region string
    The region the Kafka version is available in.
    available_settings list(object)
    The cluster configuration settings available for clusters running this version.
    end_of_life_at string
    The end-of-life date of the version (RFC 3339 format).
    id string
    The ID of the version, in the {region}/{version} format.
    name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    region string
    The region the Kafka version is available in.
    availableSettings List<GetVersionAvailableSetting>
    The cluster configuration settings available for clusters running this version.
    endOfLifeAt String
    The end-of-life date of the version (RFC 3339 format).
    id String
    The ID of the version, in the {region}/{version} format.
    name String
    The Kafka version name. Use latest to retrieve the most recent available version.
    region String
    The region the Kafka version is available in.
    availableSettings GetVersionAvailableSetting[]
    The cluster configuration settings available for clusters running this version.
    endOfLifeAt string
    The end-of-life date of the version (RFC 3339 format).
    id string
    The ID of the version, in the {region}/{version} format.
    name string
    The Kafka version name. Use latest to retrieve the most recent available version.
    region string
    The region the Kafka version is available in.
    available_settings Sequence[GetVersionAvailableSetting]
    The cluster configuration settings available for clusters running this version.
    end_of_life_at str
    The end-of-life date of the version (RFC 3339 format).
    id str
    The ID of the version, in the {region}/{version} format.
    name str
    The Kafka version name. Use latest to retrieve the most recent available version.
    region str
    The region the Kafka version is available in.
    availableSettings List<Property Map>
    The cluster configuration settings available for clusters running this version.
    endOfLifeAt String
    The end-of-life date of the version (RFC 3339 format).
    id String
    The ID of the version, in the {region}/{version} format.
    name String
    The Kafka version name. Use latest to retrieve the most recent available version.
    region String
    The region the Kafka version is available in.

    Supporting Types

    GetVersionAvailableSetting

    BoolProperty Pulumiverse.Scaleway.Kafka.Inputs.GetVersionAvailableSettingBoolProperty
    Boolean property, if the setting is a boolean.
    Description string
    The setting description.
    FloatProperty Pulumiverse.Scaleway.Kafka.Inputs.GetVersionAvailableSettingFloatProperty
    Float property, if the setting is a float.
    HotConfigurable bool
    Whether the setting can be applied without a restart.
    IntProperty Pulumiverse.Scaleway.Kafka.Inputs.GetVersionAvailableSettingIntProperty
    Integer property, if the setting is an integer.
    Name string
    The setting name.
    StringProperty Pulumiverse.Scaleway.Kafka.Inputs.GetVersionAvailableSettingStringProperty
    String property, if the setting is a string.
    BoolProperty GetVersionAvailableSettingBoolProperty
    Boolean property, if the setting is a boolean.
    Description string
    The setting description.
    FloatProperty GetVersionAvailableSettingFloatProperty
    Float property, if the setting is a float.
    HotConfigurable bool
    Whether the setting can be applied without a restart.
    IntProperty GetVersionAvailableSettingIntProperty
    Integer property, if the setting is an integer.
    Name string
    The setting name.
    StringProperty GetVersionAvailableSettingStringProperty
    String property, if the setting is a string.
    bool_property object
    Boolean property, if the setting is a boolean.
    description string
    The setting description.
    float_property object
    Float property, if the setting is a float.
    hot_configurable bool
    Whether the setting can be applied without a restart.
    int_property object
    Integer property, if the setting is an integer.
    name string
    The setting name.
    string_property object
    String property, if the setting is a string.
    boolProperty GetVersionAvailableSettingBoolProperty
    Boolean property, if the setting is a boolean.
    description String
    The setting description.
    floatProperty GetVersionAvailableSettingFloatProperty
    Float property, if the setting is a float.
    hotConfigurable Boolean
    Whether the setting can be applied without a restart.
    intProperty GetVersionAvailableSettingIntProperty
    Integer property, if the setting is an integer.
    name String
    The setting name.
    stringProperty GetVersionAvailableSettingStringProperty
    String property, if the setting is a string.
    boolProperty GetVersionAvailableSettingBoolProperty
    Boolean property, if the setting is a boolean.
    description string
    The setting description.
    floatProperty GetVersionAvailableSettingFloatProperty
    Float property, if the setting is a float.
    hotConfigurable boolean
    Whether the setting can be applied without a restart.
    intProperty GetVersionAvailableSettingIntProperty
    Integer property, if the setting is an integer.
    name string
    The setting name.
    stringProperty GetVersionAvailableSettingStringProperty
    String property, if the setting is a string.
    bool_property GetVersionAvailableSettingBoolProperty
    Boolean property, if the setting is a boolean.
    description str
    The setting description.
    float_property GetVersionAvailableSettingFloatProperty
    Float property, if the setting is a float.
    hot_configurable bool
    Whether the setting can be applied without a restart.
    int_property GetVersionAvailableSettingIntProperty
    Integer property, if the setting is an integer.
    name str
    The setting name.
    string_property GetVersionAvailableSettingStringProperty
    String property, if the setting is a string.
    boolProperty Property Map
    Boolean property, if the setting is a boolean.
    description String
    The setting description.
    floatProperty Property Map
    Float property, if the setting is a float.
    hotConfigurable Boolean
    Whether the setting can be applied without a restart.
    intProperty Property Map
    Integer property, if the setting is an integer.
    name String
    The setting name.
    stringProperty Property Map
    String property, if the setting is a string.

    GetVersionAvailableSettingBoolProperty

    DefaultValue bool
    The default value of the setting.
    DefaultValue bool
    The default value of the setting.
    default_value bool
    The default value of the setting.
    defaultValue Boolean
    The default value of the setting.
    defaultValue boolean
    The default value of the setting.
    default_value bool
    The default value of the setting.
    defaultValue Boolean
    The default value of the setting.

    GetVersionAvailableSettingFloatProperty

    DefaultValue double
    The default value of the setting.
    Max double
    The maximum value of the setting.
    Min double
    The minimum value of the setting.
    Unit string
    The unit of the setting.
    DefaultValue float64
    The default value of the setting.
    Max float64
    The maximum value of the setting.
    Min float64
    The minimum value of the setting.
    Unit string
    The unit of the setting.
    default_value number
    The default value of the setting.
    max number
    The maximum value of the setting.
    min number
    The minimum value of the setting.
    unit string
    The unit of the setting.
    defaultValue Double
    The default value of the setting.
    max Double
    The maximum value of the setting.
    min Double
    The minimum value of the setting.
    unit String
    The unit of the setting.
    defaultValue number
    The default value of the setting.
    max number
    The maximum value of the setting.
    min number
    The minimum value of the setting.
    unit string
    The unit of the setting.
    default_value float
    The default value of the setting.
    max float
    The maximum value of the setting.
    min float
    The minimum value of the setting.
    unit str
    The unit of the setting.
    defaultValue Number
    The default value of the setting.
    max Number
    The maximum value of the setting.
    min Number
    The minimum value of the setting.
    unit String
    The unit of the setting.

    GetVersionAvailableSettingIntProperty

    DefaultValue int
    The default value of the setting.
    Max int
    The maximum value of the setting.
    Min int
    The minimum value of the setting.
    Unit string
    The unit of the setting.
    DefaultValue int
    The default value of the setting.
    Max int
    The maximum value of the setting.
    Min int
    The minimum value of the setting.
    Unit string
    The unit of the setting.
    default_value number
    The default value of the setting.
    max number
    The maximum value of the setting.
    min number
    The minimum value of the setting.
    unit string
    The unit of the setting.
    defaultValue Integer
    The default value of the setting.
    max Integer
    The maximum value of the setting.
    min Integer
    The minimum value of the setting.
    unit String
    The unit of the setting.
    defaultValue number
    The default value of the setting.
    max number
    The maximum value of the setting.
    min number
    The minimum value of the setting.
    unit string
    The unit of the setting.
    default_value int
    The default value of the setting.
    max int
    The maximum value of the setting.
    min int
    The minimum value of the setting.
    unit str
    The unit of the setting.
    defaultValue Number
    The default value of the setting.
    max Number
    The maximum value of the setting.
    min Number
    The minimum value of the setting.
    unit String
    The unit of the setting.

    GetVersionAvailableSettingStringProperty

    DefaultValue string
    The default value of the setting.
    StringConstraint string
    The string constraint of the setting (e.g. a regex).
    DefaultValue string
    The default value of the setting.
    StringConstraint string
    The string constraint of the setting (e.g. a regex).
    default_value string
    The default value of the setting.
    string_constraint string
    The string constraint of the setting (e.g. a regex).
    defaultValue String
    The default value of the setting.
    stringConstraint String
    The string constraint of the setting (e.g. a regex).
    defaultValue string
    The default value of the setting.
    stringConstraint string
    The string constraint of the setting (e.g. a regex).
    default_value str
    The default value of the setting.
    string_constraint str
    The string constraint of the setting (e.g. a regex).
    defaultValue String
    The default value of the setting.
    stringConstraint String
    The string constraint of the setting (e.g. a regex).

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.56.1
    published on Thursday, Sep 17, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial