1. Packages
  2. Packages
  3. Ionoscloud
  4. API Docs
  5. dbaas
  6. getPSQLBackupLocationV2
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 Backup Locations data source can be used to retrieve the list of available backup locations. Use this data source to find valid values for the backupLocation attribute of the ionoscloud.dbaas.PSQLClusterV2 resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = ionoscloud.dbaas.getPSQLBackupLocationV2({
        location: "de/txl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.dbaas.get_psql_backup_location_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.GetPSQLBackupLocationV2(ctx, &dbaas.GetPSQLBackupLocationV2Args{
    			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.GetPSQLBackupLocationV2.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.GetPSQLBackupLocationV2Args;
    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.getPSQLBackupLocationV2(GetPSQLBackupLocationV2Args.builder()
                .location("de/txl")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:dbaas:getPSQLBackupLocationV2
          arguments:
            location: de/txl
    
    pulumi {
      required_providers {
        ionoscloud = {
          source = "pulumi/ionoscloud"
        }
      }
    }
    
    data "ionoscloud_dbaas_getpsqlbackuplocationv2" "example" {
      location = "de/txl"
    }
    

    Using getPSQLBackupLocationV2

    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 getPSQLBackupLocationV2(args: GetPSQLBackupLocationV2Args, opts?: InvokeOptions): Promise<GetPSQLBackupLocationV2Result>
    function getPSQLBackupLocationV2Output(args: GetPSQLBackupLocationV2OutputArgs, opts?: InvokeOptions): Output<GetPSQLBackupLocationV2Result>
    def get_psql_backup_location_v2(location: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetPSQLBackupLocationV2Result
    def get_psql_backup_location_v2_output(location: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetPSQLBackupLocationV2Result]
    func GetPSQLBackupLocationV2(ctx *Context, args *GetPSQLBackupLocationV2Args, opts ...InvokeOption) (*GetPSQLBackupLocationV2Result, error)
    func GetPSQLBackupLocationV2Output(ctx *Context, args *GetPSQLBackupLocationV2OutputArgs, opts ...InvokeOption) GetPSQLBackupLocationV2ResultOutput

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

    public static class GetPSQLBackupLocationV2 
    {
        public static Task<GetPSQLBackupLocationV2Result> InvokeAsync(GetPSQLBackupLocationV2Args args, InvokeOptions? opts = null)
        public static Output<GetPSQLBackupLocationV2Result> Invoke(GetPSQLBackupLocationV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPSQLBackupLocationV2Result> getPSQLBackupLocationV2(GetPSQLBackupLocationV2Args args, InvokeOptions options)
    public static Output<GetPSQLBackupLocationV2Result> getPSQLBackupLocationV2(GetPSQLBackupLocationV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:dbaas/getPSQLBackupLocationV2:getPSQLBackupLocationV2
      arguments:
        # arguments dictionary
    data "ionoscloud_dbaas_getpsqlbackuplocationv2" "name" {
        # arguments
    }

    The following arguments are supported:

    Location string
    [string] The region in which to look up backup locations. 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 backup locations. 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 backup locations. 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 backup locations. 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 backup locations. 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 backup locations. 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 backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.

    getPSQLBackupLocationV2 Result

    The following output properties are available:

    BackupLocations List<Ionoscloud.GetPSQLBackupLocationV2BackupLocation>
    The list of available backup locations. Each backup location has the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Object Storage location identifier (e.g. de, eu-central-2).
    BackupLocations []GetPSQLBackupLocationV2BackupLocation
    The list of available backup locations. Each backup location has the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Object Storage location identifier (e.g. de, eu-central-2).
    backup_locations list(object)
    The list of available backup locations. Each backup location has the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Object Storage location identifier (e.g. de, eu-central-2).
    backupLocations List<GetPSQLBackupLocationV2BackupLocation>
    The list of available backup locations. Each backup location has the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Object Storage location identifier (e.g. de, eu-central-2).
    backupLocations GetPSQLBackupLocationV2BackupLocation[]
    The list of available backup locations. Each backup location has the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Object Storage location identifier (e.g. de, eu-central-2).
    backup_locations Sequence[GetPSQLBackupLocationV2BackupLocation]
    The list of available backup locations. Each backup location has the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Object Storage location identifier (e.g. de, eu-central-2).
    backupLocations List<Property Map>
    The list of available backup locations. Each backup location has the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Object Storage location identifier (e.g. de, eu-central-2).

    Supporting Types

    GetPSQLBackupLocationV2BackupLocation

    Id string
    The ID (UUID) of the backup location.
    Location string
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    Id string
    The ID (UUID) of the backup location.
    Location string
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    id string
    The ID (UUID) of the backup location.
    location string
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    id String
    The ID (UUID) of the backup location.
    location String
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    id string
    The ID (UUID) of the backup location.
    location string
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    id str
    The ID (UUID) of the backup location.
    location str
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.
    id String
    The ID (UUID) of the backup location.
    location String
    [string] The region in which to look up backup locations. Available locations: de/fra, de/fra/2, de/txl, es/vit, fr/par, gb/bhx, gb/lhr, us/ewr, us/las, us/mci.

    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