published on Wednesday, Jun 10, 2026 by ionos-cloud
published on Wednesday, Jun 10, 2026 by ionos-cloud
The DBaaS PostgreSQL v2 Cluster data source can be used to search for and return an existing DBaaS PostgreSQL v2 Cluster. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.dbaas.getPSQLClusterV2({
id: "cluster_id",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_psql_cluster_v2(id="cluster_id",
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.LookupPSQLClusterV2(ctx, &dbaas.LookupPSQLClusterV2Args{
Id: pulumi.StringRef("cluster_id"),
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.GetPSQLClusterV2.Invoke(new()
{
Id = "cluster_id",
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.GetPSQLClusterV2Args;
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.getPSQLClusterV2(GetPSQLClusterV2Args.builder()
.id("cluster_id")
.location("de/txl")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getPSQLClusterV2
arguments:
id: cluster_id
location: de/txl
pulumi {
required_providers {
ionoscloud = {
source = "pulumi/ionoscloud"
}
}
}
data "ionoscloud_dbaas_getpsqlclusterv2" "example" {
id = "cluster_id"
location = "de/txl"
}
By Name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.dbaas.getPSQLClusterV2({
name: "cluster_name",
location: "de/txl",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.dbaas.get_psql_cluster_v2(name="cluster_name",
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.LookupPSQLClusterV2(ctx, &dbaas.LookupPSQLClusterV2Args{
Name: pulumi.StringRef("cluster_name"),
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.GetPSQLClusterV2.Invoke(new()
{
Name = "cluster_name",
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.GetPSQLClusterV2Args;
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.getPSQLClusterV2(GetPSQLClusterV2Args.builder()
.name("cluster_name")
.location("de/txl")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:dbaas:getPSQLClusterV2
arguments:
name: cluster_name
location: de/txl
pulumi {
required_providers {
ionoscloud = {
source = "pulumi/ionoscloud"
}
}
}
data "ionoscloud_dbaas_getpsqlclusterv2" "example" {
name = "cluster_name"
location = "de/txl"
}
Using getPSQLClusterV2
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 getPSQLClusterV2(args: GetPSQLClusterV2Args, opts?: InvokeOptions): Promise<GetPSQLClusterV2Result>
function getPSQLClusterV2Output(args: GetPSQLClusterV2OutputArgs, opts?: InvokeOptions): Output<GetPSQLClusterV2Result>def get_psql_cluster_v2(id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPSQLClusterV2Result
def get_psql_cluster_v2_output(id: pulumi.Input[Optional[str]] = None,
location: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPSQLClusterV2Result]func LookupPSQLClusterV2(ctx *Context, args *LookupPSQLClusterV2Args, opts ...InvokeOption) (*LookupPSQLClusterV2Result, error)
func LookupPSQLClusterV2Output(ctx *Context, args *LookupPSQLClusterV2OutputArgs, opts ...InvokeOption) LookupPSQLClusterV2ResultOutput> Note: This function is named LookupPSQLClusterV2 in the Go SDK.
public static class GetPSQLClusterV2
{
public static Task<GetPSQLClusterV2Result> InvokeAsync(GetPSQLClusterV2Args args, InvokeOptions? opts = null)
public static Output<GetPSQLClusterV2Result> Invoke(GetPSQLClusterV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPSQLClusterV2Result> getPSQLClusterV2(GetPSQLClusterV2Args args, InvokeOptions options)
public static Output<GetPSQLClusterV2Result> getPSQLClusterV2(GetPSQLClusterV2Args args, InvokeOptions options)
fn::invoke:
function: ionoscloud:dbaas/getPSQLClusterV2:getPSQLClusterV2
arguments:
# arguments dictionarydata "ionoscloud_dbaas_getpsqlclusterv2" "name" {
# arguments
}The following arguments are supported:
- Location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Id string
- [string] ID of the cluster you want to search for.
- Name string
- [string] The name of an existing cluster that you want to search for.
- Location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Id string
- [string] ID of the cluster you want to search for.
- Name string
- [string] The name of an existing cluster that you want to search for.
- location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id string
- [string] ID of the cluster you want to search for.
- name string
- [string] The name of an existing cluster that you want to search for.
- location String
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id String
- [string] ID of the cluster you want to search for.
- name String
- [string] The name of an existing cluster that you want to search for.
- location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id string
- [string] ID of the cluster you want to search for.
- name string
- [string] The name of an existing cluster that you want to search for.
- location str
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id str
- [string] ID of the cluster you want to search for.
- name str
- [string] The name of an existing cluster that you want to search for.
- location String
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- id String
- [string] ID of the cluster you want to search for.
- name String
- [string] The name of an existing cluster that you want to search for.
getPSQLClusterV2 Result
The following output properties are available:
- Backup
Ionoscloud.
Get PSQLCluster V2Backup - Backup configuration of the cluster.
- Connection
Pooler string - How database connections are managed and reused.
- Connections
Ionoscloud.
Get PSQLCluster V2Connections - Connection information of the PostgreSQL cluster.
- Description string
- Human-readable description of the cluster.
- Dns
Name string - The DNS name used to access the cluster.
- Id string
- The ID (UUID) of the cluster.
- Instances
Ionoscloud.
Get PSQLCluster V2Instances - The instance configuration for the PostgreSQL cluster.
- Location string
- The Object Storage location where the backups are stored.
- Logs
Enabled bool - Whether the collection and reporting of logs is enabled for this cluster.
- Maintenance
Window Ionoscloud.Get PSQLCluster V2Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- Metrics
Enabled bool - Whether the collection and reporting of metrics is enabled for this cluster.
- Name string
- The name of the PostgreSQL cluster.
- Replication
Mode string - Replication mode across the instances.
- Version string
- The PostgreSQL version of the cluster.
- Backup
Get
PSQLCluster V2Backup - Backup configuration of the cluster.
- Connection
Pooler string - How database connections are managed and reused.
- Connections
Get
PSQLCluster V2Connections - Connection information of the PostgreSQL cluster.
- Description string
- Human-readable description of the cluster.
- Dns
Name string - The DNS name used to access the cluster.
- Id string
- The ID (UUID) of the cluster.
- Instances
Get
PSQLCluster V2Instances - The instance configuration for the PostgreSQL cluster.
- Location string
- The Object Storage location where the backups are stored.
- Logs
Enabled bool - Whether the collection and reporting of logs is enabled for this cluster.
- Maintenance
Window GetPSQLCluster V2Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- Metrics
Enabled bool - Whether the collection and reporting of metrics is enabled for this cluster.
- Name string
- The name of the PostgreSQL cluster.
- Replication
Mode string - Replication mode across the instances.
- Version string
- The PostgreSQL version of the cluster.
- backup object
- Backup configuration of the cluster.
- connection_
pooler string - How database connections are managed and reused.
- connections object
- Connection information of the PostgreSQL cluster.
- description string
- Human-readable description of the cluster.
- dns_
name string - The DNS name used to access the cluster.
- id string
- The ID (UUID) of the cluster.
- instances object
- The instance configuration for the PostgreSQL cluster.
- location string
- The Object Storage location where the backups are stored.
- logs_
enabled bool - Whether the collection and reporting of logs is enabled for this cluster.
- maintenance_
window object - A weekly 4 hour-long window, during which maintenance might occur.
- metrics_
enabled bool - Whether the collection and reporting of metrics is enabled for this cluster.
- name string
- The name of the PostgreSQL cluster.
- replication_
mode string - Replication mode across the instances.
- version string
- The PostgreSQL version of the cluster.
- backup
Get
PSQLCluster V2Backup - Backup configuration of the cluster.
- connection
Pooler String - How database connections are managed and reused.
- connections
Get
PSQLCluster V2Connections - Connection information of the PostgreSQL cluster.
- description String
- Human-readable description of the cluster.
- dns
Name String - The DNS name used to access the cluster.
- id String
- The ID (UUID) of the cluster.
- instances
Get
PSQLCluster V2Instances - The instance configuration for the PostgreSQL cluster.
- location String
- The Object Storage location where the backups are stored.
- logs
Enabled Boolean - Whether the collection and reporting of logs is enabled for this cluster.
- maintenance
Window GetPSQLCluster V2Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- metrics
Enabled Boolean - Whether the collection and reporting of metrics is enabled for this cluster.
- name String
- The name of the PostgreSQL cluster.
- replication
Mode String - Replication mode across the instances.
- version String
- The PostgreSQL version of the cluster.
- backup
Get
PSQLCluster V2Backup - Backup configuration of the cluster.
- connection
Pooler string - How database connections are managed and reused.
- connections
Get
PSQLCluster V2Connections - Connection information of the PostgreSQL cluster.
- description string
- Human-readable description of the cluster.
- dns
Name string - The DNS name used to access the cluster.
- id string
- The ID (UUID) of the cluster.
- instances
Get
PSQLCluster V2Instances - The instance configuration for the PostgreSQL cluster.
- location string
- The Object Storage location where the backups are stored.
- logs
Enabled boolean - Whether the collection and reporting of logs is enabled for this cluster.
- maintenance
Window GetPSQLCluster V2Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- metrics
Enabled boolean - Whether the collection and reporting of metrics is enabled for this cluster.
- name string
- The name of the PostgreSQL cluster.
- replication
Mode string - Replication mode across the instances.
- version string
- The PostgreSQL version of the cluster.
- backup
Get
PSQLCluster V2Backup - Backup configuration of the cluster.
- connection_
pooler str - How database connections are managed and reused.
- connections
Get
PSQLCluster V2Connections - Connection information of the PostgreSQL cluster.
- description str
- Human-readable description of the cluster.
- dns_
name str - The DNS name used to access the cluster.
- id str
- The ID (UUID) of the cluster.
- instances
Get
PSQLCluster V2Instances - The instance configuration for the PostgreSQL cluster.
- location str
- The Object Storage location where the backups are stored.
- logs_
enabled bool - Whether the collection and reporting of logs is enabled for this cluster.
- maintenance_
window GetPSQLCluster V2Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- metrics_
enabled bool - Whether the collection and reporting of metrics is enabled for this cluster.
- name str
- The name of the PostgreSQL cluster.
- replication_
mode str - Replication mode across the instances.
- version str
- The PostgreSQL version of the cluster.
- backup Property Map
- Backup configuration of the cluster.
- connection
Pooler String - How database connections are managed and reused.
- connections Property Map
- Connection information of the PostgreSQL cluster.
- description String
- Human-readable description of the cluster.
- dns
Name String - The DNS name used to access the cluster.
- id String
- The ID (UUID) of the cluster.
- instances Property Map
- The instance configuration for the PostgreSQL cluster.
- location String
- The Object Storage location where the backups are stored.
- logs
Enabled Boolean - Whether the collection and reporting of logs is enabled for this cluster.
- maintenance
Window Property Map - A weekly 4 hour-long window, during which maintenance might occur.
- metrics
Enabled Boolean - Whether the collection and reporting of metrics is enabled for this cluster.
- name String
- The name of the PostgreSQL cluster.
- replication
Mode String - Replication mode across the instances.
- version String
- The PostgreSQL version of the cluster.
Supporting Types
GetPSQLClusterV2Backup
- Location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Retention
Days int - How many days cluster backups are retained.
- Location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- Retention
Days int - How many days cluster backups are retained.
- location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention_
days number - How many days cluster backups are retained.
- location String
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days Integer - How many days cluster backups are retained.
- location string
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days number - How many days cluster backups are retained.
- location str
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention_
days int - How many days cluster backups are retained.
- location String
[string] The region in which to look up the cluster. Available locations:
de/fra,de/fra/2,de/txl,es/vit,fr/par,gb/bhx,gb/lhr,us/ewr,us/las,us/mci.Either
idornamemust be provided. If none, or both are provided, the datasource will return an error.- retention
Days Number - How many days cluster backups are retained.
GetPSQLClusterV2Connections
- Datacenter
Id string - The datacenter the cluster is connected to.
- Lan
Id string - The numeric LAN ID the cluster is connected to.
- Primary
Instance stringAddress - The IP and netmask assigned to the cluster primary instance.
- Datacenter
Id string - The datacenter the cluster is connected to.
- Lan
Id string - The numeric LAN ID the cluster is connected to.
- Primary
Instance stringAddress - The IP and netmask assigned to the cluster primary instance.
- datacenter_
id string - The datacenter the cluster is connected to.
- lan_
id string - The numeric LAN ID the cluster is connected to.
- primary_
instance_ stringaddress - The IP and netmask assigned to the cluster primary instance.
- datacenter
Id String - The datacenter the cluster is connected to.
- lan
Id String - The numeric LAN ID the cluster is connected to.
- primary
Instance StringAddress - The IP and netmask assigned to the cluster primary instance.
- datacenter
Id string - The datacenter the cluster is connected to.
- lan
Id string - The numeric LAN ID the cluster is connected to.
- primary
Instance stringAddress - The IP and netmask assigned to the cluster primary instance.
- datacenter_
id str - The datacenter the cluster is connected to.
- lan_
id str - The numeric LAN ID the cluster is connected to.
- primary_
instance_ straddress - The IP and netmask assigned to the cluster primary instance.
- datacenter
Id String - The datacenter the cluster is connected to.
- lan
Id String - The numeric LAN ID the cluster is connected to.
- primary
Instance StringAddress - The IP and netmask assigned to the cluster primary instance.
GetPSQLClusterV2Instances
- Cores int
- The number of CPU cores per instance.
- Count int
- The total number of instances in the cluster (one primary and n-1 secondary).
- Ram int
- The amount of memory per instance in gigabytes (GB).
- Storage
Size int - The amount of storage per instance in gigabytes (GB).
- Cores int
- The number of CPU cores per instance.
- Count int
- The total number of instances in the cluster (one primary and n-1 secondary).
- Ram int
- The amount of memory per instance in gigabytes (GB).
- Storage
Size int - The amount of storage per instance in gigabytes (GB).
- cores number
- The number of CPU cores per instance.
- count number
- The total number of instances in the cluster (one primary and n-1 secondary).
- ram number
- The amount of memory per instance in gigabytes (GB).
- storage_
size number - The amount of storage per instance in gigabytes (GB).
- cores Integer
- The number of CPU cores per instance.
- count Integer
- The total number of instances in the cluster (one primary and n-1 secondary).
- ram Integer
- The amount of memory per instance in gigabytes (GB).
- storage
Size Integer - The amount of storage per instance in gigabytes (GB).
- cores number
- The number of CPU cores per instance.
- count number
- The total number of instances in the cluster (one primary and n-1 secondary).
- ram number
- The amount of memory per instance in gigabytes (GB).
- storage
Size number - The amount of storage per instance in gigabytes (GB).
- cores int
- The number of CPU cores per instance.
- count int
- The total number of instances in the cluster (one primary and n-1 secondary).
- ram int
- The amount of memory per instance in gigabytes (GB).
- storage_
size int - The amount of storage per instance in gigabytes (GB).
- cores Number
- The number of CPU cores per instance.
- count Number
- The total number of instances in the cluster (one primary and n-1 secondary).
- ram Number
- The amount of memory per instance in gigabytes (GB).
- storage
Size Number - The amount of storage per instance in gigabytes (GB).
GetPSQLClusterV2MaintenanceWindow
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- day_
of_ stringthe_ week - The name of the week day.
- time string
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
- day
Of stringThe Week - The name of the week day.
- time string
- Start of the maintenance window in UTC time.
- day_
of_ strthe_ week - The name of the week day.
- time str
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
published on Wednesday, Jun 10, 2026 by ionos-cloud