1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getPSQLVersionsV2
Viewing docs for IonosCloud v0.3.1
published on Wednesday, Jun 10, 2026 by ionos-cloud
ionoscloud logo
Viewing docs for IonosCloud v0.3.1
published on Wednesday, Jun 10, 2026 by ionos-cloud

    The DBaaS PostgreSQL v2 Versions data source can be used to retrieve the list of available PostgreSQL versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = ionoscloud.dbaas.getPSQLVersionsV2({
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_psql_versions_v2(location="de/txl")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/dbaas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbaas.GetPSQLVersionsV2(ctx, &dbaas.GetPSQLVersionsV2Args{
    			Location: "de/txl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Dbaas.GetPSQLVersionsV2.Invoke(new()
        {
            Location = "de/txl",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.dbaas.DbaasFunctions;
    import com.pulumi.ionoscloud.dbaas.inputs.GetPSQLVersionsV2Args;
    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 example = DbaasFunctions.getPSQLVersionsV2(GetPSQLVersionsV2Args.builder()
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getPSQLVersionsV2
          arguments:
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getpsqlversionsv2" "example" {
      location = "de/txl"
    }
    

    Using getPSQLVersionsV2

    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 getPSQLVersionsV2(args: GetPSQLVersionsV2Args, opts?: InvokeOptions): Promise<GetPSQLVersionsV2Result>
    function getPSQLVersionsV2Output(args: GetPSQLVersionsV2OutputArgs, opts?: InvokeOptions): Output<GetPSQLVersionsV2Result>
    def get_psql_versions_v2(location: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetPSQLVersionsV2Result
    def get_psql_versions_v2_output(location: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetPSQLVersionsV2Result]
    func GetPSQLVersionsV2(ctx *Context, args *GetPSQLVersionsV2Args, opts ...InvokeOption) (*GetPSQLVersionsV2Result, error)
    func GetPSQLVersionsV2Output(ctx *Context, args *GetPSQLVersionsV2OutputArgs, opts ...InvokeOption) GetPSQLVersionsV2ResultOutput

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

    public static class GetPSQLVersionsV2 
    {
        public static Task<GetPSQLVersionsV2Result> InvokeAsync(GetPSQLVersionsV2Args args, InvokeOptions? opts = null)
        public static Output<GetPSQLVersionsV2Result> Invoke(GetPSQLVersionsV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPSQLVersionsV2Result> getPSQLVersionsV2(GetPSQLVersionsV2Args args, InvokeOptions options)
    public static Output<GetPSQLVersionsV2Result> getPSQLVersionsV2(GetPSQLVersionsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getPSQLVersionsV2:getPSQLVersionsV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_getpsqlversionsv2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    Location string
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location string
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location String
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location string
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location str
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    location String
    [string] The region in which to look up available versions. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.

    getPSQLVersionsV2 Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Versions List<Ionoscloud.GetPSQLVersionsV2Version>
    The list of available PostgreSQL versions. Each version has the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Versions []GetPSQLVersionsV2Version
    The list of available PostgreSQL versions. Each version has the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    versions list(object)
    The list of available PostgreSQL versions. Each version has the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<GetPSQLVersionsV2Version>
    The list of available PostgreSQL versions. Each version has the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    versions GetPSQLVersionsV2Version[]
    The list of available PostgreSQL versions. Each version has the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    versions Sequence[GetPSQLVersionsV2Version]
    The list of available PostgreSQL versions. Each version has the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<Property Map>
    The list of available PostgreSQL versions. Each version has the following attributes:

    Supporting Types

    GetPSQLVersionsV2Version

    CanUpgradeTos List<string>
    List of versions that this version can be upgraded to.
    Comment string
    Additional information about the version status.
    Id string
    The ID (UUID) of the PostgreSQL version.
    Status string
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    Version string
    The PostgreSQL version string.
    CanUpgradeTos []string
    List of versions that this version can be upgraded to.
    Comment string
    Additional information about the version status.
    Id string
    The ID (UUID) of the PostgreSQL version.
    Status string
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    Version string
    The PostgreSQL version string.
    can_upgrade_tos list(string)
    List of versions that this version can be upgraded to.
    comment string
    Additional information about the version status.
    id string
    The ID (UUID) of the PostgreSQL version.
    status string
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    version string
    The PostgreSQL version string.
    canUpgradeTos List<String>
    List of versions that this version can be upgraded to.
    comment String
    Additional information about the version status.
    id String
    The ID (UUID) of the PostgreSQL version.
    status String
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    version String
    The PostgreSQL version string.
    canUpgradeTos string[]
    List of versions that this version can be upgraded to.
    comment string
    Additional information about the version status.
    id string
    The ID (UUID) of the PostgreSQL version.
    status string
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    version string
    The PostgreSQL version string.
    can_upgrade_tos Sequence[str]
    List of versions that this version can be upgraded to.
    comment str
    Additional information about the version status.
    id str
    The ID (UUID) of the PostgreSQL version.
    status str
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    version str
    The PostgreSQL version string.
    canUpgradeTos List<String>
    List of versions that this version can be upgraded to.
    comment String
    Additional information about the version status.
    id String
    The ID (UUID) of the PostgreSQL version.
    status String
    The support status of the version (e.g. BETA, SUPPORTED, RECOMMENDED, DEPRECATED).
    version String
    The PostgreSQL version string.

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    Viewing docs for IonosCloud v0.3.1
    published on Wednesday, Jun 10, 2026 by ionos-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial