1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. messageq
  6. getVersion
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse

    Gets information about an available MessageQ version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const latest = scaleway.messageq.getVersion({
        name: "latest",
    });
    const specific = scaleway.messageq.getVersion({
        name: "4.0",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    latest = scaleway.messageq.get_version(name="latest")
    specific = scaleway.messageq.get_version(name="4.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/messageq"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := messageq.GetVersion(ctx, &messageq.GetVersionArgs{
    			Name: "latest",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = messageq.GetVersion(ctx, &messageq.GetVersionArgs{
    			Name: "4.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(() => 
    {
        var latest = Scaleway.Messageq.GetVersion.Invoke(new()
        {
            Name = "latest",
        });
    
        var specific = Scaleway.Messageq.GetVersion.Invoke(new()
        {
            Name = "4.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.messageq.MessageqFunctions;
    import com.pulumi.scaleway.messageq.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) {
            final var latest = MessageqFunctions.getVersion(GetVersionArgs.builder()
                .name("latest")
                .build());
    
            final var specific = MessageqFunctions.getVersion(GetVersionArgs.builder()
                .name("4.0")
                .build());
    
        }
    }
    
    variables:
      latest:
        fn::invoke:
          function: scaleway:messageq:getVersion
          arguments:
            name: latest
      specific:
        fn::invoke:
          function: scaleway:messageq:getVersion
          arguments:
            name: '4.0'
    
    pulumi {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_messageq_getversion" "latest" {
      name = "latest"
    }
    data "scaleway_messageq_getversion" "specific" {
      name = "4.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?: 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:messageq/getVersion:getVersion
      arguments:
        # arguments dictionary
    data "scaleway_messageq_get_version" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    Region string
    region) The region in which the version is available.
    Name string
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    Region string
    region) The region in which the version is available.
    name string
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    region string
    region) The region in which the version is available.
    name String
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    region String
    region) The region in which the version is available.
    name string
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    region string
    region) The region in which the version is available.
    name str
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    region str
    region) The region in which the version is available.
    name String
    The MessageQ version name. Use latest to retrieve the most recent available non-disabled version.
    region String
    region) The region in which the version is available.

    getVersion Result

    The following output properties are available:

    Beta bool
    Whether the version is in beta.
    Disabled bool
    Whether the version is disabled.
    EndOfLife 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
    Region string
    Version string
    The MessageQ version string.
    Beta bool
    Whether the version is in beta.
    Disabled bool
    Whether the version is disabled.
    EndOfLife 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
    Region string
    Version string
    The MessageQ version string.
    beta bool
    Whether the version is in beta.
    disabled bool
    Whether the version is disabled.
    end_of_life 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
    region string
    version string
    The MessageQ version string.
    beta Boolean
    Whether the version is in beta.
    disabled Boolean
    Whether the version is disabled.
    endOfLife 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
    region String
    version String
    The MessageQ version string.
    beta boolean
    Whether the version is in beta.
    disabled boolean
    Whether the version is disabled.
    endOfLife 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
    region string
    version string
    The MessageQ version string.
    beta bool
    Whether the version is in beta.
    disabled bool
    Whether the version is disabled.
    end_of_life 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
    region str
    version str
    The MessageQ version string.
    beta Boolean
    Whether the version is in beta.
    disabled Boolean
    Whether the version is disabled.
    endOfLife 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
    region String
    version String
    The MessageQ version 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
    Viewing docs for Scaleway v1.60.0
    published on Saturday, Oct 24, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial