1. Packages
  2. Packages
  3. Edgecenter Provider
  4. API Docs
  5. getDbaasBackup
Viewing docs for edgecenter 0.14.4
published on Thursday, Jul 30, 2026 by edge-center
Viewing docs for edgecenter 0.14.4
published on Thursday, Jul 30, 2026 by edge-center

    Retrieve a DBaaS backup by its ID or unique name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const example = edgecenter.getDbaasBackup({
        projectId: 1,
        regionId: 1,
        name: "backup-example",
    });
    export const backupView = example;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    example = edgecenter.get_dbaas_backup(project_id=1,
        region_id=1,
        name="backup-example")
    pulumi.export("backupView", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := edgecenter.LookupDbaasBackup(ctx, &edgecenter.LookupDbaasBackupArgs{
    			ProjectId: pulumi.Float64Ref(1),
    			RegionId:  pulumi.Float64Ref(1),
    			Name:      pulumi.StringRef("backup-example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("backupView", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Edgecenter.GetDbaasBackup.Invoke(new()
        {
            ProjectId = 1,
            RegionId = 1,
            Name = "backup-example",
        });
    
        return new Dictionary<string, object?>
        {
            ["backupView"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetDbaasBackupArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 = EdgecenterFunctions.getDbaasBackup(GetDbaasBackupArgs.builder()
                .projectId(1)
                .regionId(1)
                .name("backup-example")
                .build());
    
            ctx.export("backupView", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: edgecenter:getDbaasBackup
          arguments:
            projectId: 1
            regionId: 1
            name: backup-example
    outputs:
      backupView: ${example}
    
    Example coming soon!
    

    Using getDbaasBackup

    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 getDbaasBackup(args: GetDbaasBackupArgs, opts?: InvokeOptions): Promise<GetDbaasBackupResult>
    function getDbaasBackupOutput(args: GetDbaasBackupOutputArgs, opts?: InvokeOptions): Output<GetDbaasBackupResult>
    def get_dbaas_backup(id: Optional[str] = None,
                         name: Optional[str] = None,
                         project_id: Optional[float] = None,
                         project_name: Optional[str] = None,
                         region_id: Optional[float] = None,
                         region_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDbaasBackupResult
    def get_dbaas_backup_output(id: pulumi.Input[Optional[str]] = None,
                         name: pulumi.Input[Optional[str]] = None,
                         project_id: pulumi.Input[Optional[float]] = None,
                         project_name: pulumi.Input[Optional[str]] = None,
                         region_id: pulumi.Input[Optional[float]] = None,
                         region_name: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDbaasBackupResult]
    func LookupDbaasBackup(ctx *Context, args *LookupDbaasBackupArgs, opts ...InvokeOption) (*LookupDbaasBackupResult, error)
    func LookupDbaasBackupOutput(ctx *Context, args *LookupDbaasBackupOutputArgs, opts ...InvokeOption) LookupDbaasBackupResultOutput

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

    public static class GetDbaasBackup 
    {
        public static Task<GetDbaasBackupResult> InvokeAsync(GetDbaasBackupArgs args, InvokeOptions? opts = null)
        public static Output<GetDbaasBackupResult> Invoke(GetDbaasBackupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbaasBackupResult> getDbaasBackup(GetDbaasBackupArgs args, InvokeOptions options)
    public static Output<GetDbaasBackupResult> getDbaasBackup(GetDbaasBackupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getDbaasBackup:getDbaasBackup
      arguments:
        # arguments dictionary
    data "edgecenter_get_dbaas_backup" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The backup UUID. Either 'id' or 'name' must be specified.
    Name string
    The unique backup name. Either 'id' or 'name' must be specified.
    ProjectId double
    The project ID. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The region ID. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    Id string
    The backup UUID. Either 'id' or 'name' must be specified.
    Name string
    The unique backup name. Either 'id' or 'name' must be specified.
    ProjectId float64
    The project ID. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The region ID. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    id string
    The backup UUID. Either 'id' or 'name' must be specified.
    name string
    The unique backup name. Either 'id' or 'name' must be specified.
    project_id number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    project_name string
    The project name. Either 'projectid' or 'projectname' must be specified.
    region_id number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    region_name string
    The region name. Either 'regionid' or 'regionname' must be specified.
    id String
    The backup UUID. Either 'id' or 'name' must be specified.
    name String
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId Double
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The region name. Either 'regionid' or 'regionname' must be specified.
    id string
    The backup UUID. Either 'id' or 'name' must be specified.
    name string
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    id str
    The backup UUID. Either 'id' or 'name' must be specified.
    name str
    The unique backup name. Either 'id' or 'name' must be specified.
    project_id float
    The project ID. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The project name. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The region ID. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The region name. Either 'regionid' or 'regionname' must be specified.
    id String
    The backup UUID. Either 'id' or 'name' must be specified.
    name String
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId Number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The region name. Either 'regionid' or 'regionname' must be specified.

    getDbaasBackup Result

    The following output properties are available:

    BackupType string
    ClusterId string
    CreatedAt string
    CreatorTaskId string
    Dbms List<GetDbaasBackupDbm>
    Description string
    FinishedAt string
    HasChild bool
    IsService bool
    ParentId string
    Size double
    Status string
    TaskId string
    UpdatedAt string
    Id string
    The backup UUID. Either 'id' or 'name' must be specified.
    Name string
    The unique backup name. Either 'id' or 'name' must be specified.
    ProjectId double
    The project ID. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The region ID. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    BackupType string
    ClusterId string
    CreatedAt string
    CreatorTaskId string
    Dbms []GetDbaasBackupDbm
    Description string
    FinishedAt string
    HasChild bool
    IsService bool
    ParentId string
    Size float64
    Status string
    TaskId string
    UpdatedAt string
    Id string
    The backup UUID. Either 'id' or 'name' must be specified.
    Name string
    The unique backup name. Either 'id' or 'name' must be specified.
    ProjectId float64
    The project ID. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The region ID. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    backup_type string
    cluster_id string
    created_at string
    creator_task_id string
    dbms list(object)
    description string
    finished_at string
    has_child bool
    is_service bool
    parent_id string
    size number
    status string
    task_id string
    updated_at string
    id string
    The backup UUID. Either 'id' or 'name' must be specified.
    name string
    The unique backup name. Either 'id' or 'name' must be specified.
    project_id number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    project_name string
    The project name. Either 'projectid' or 'projectname' must be specified.
    region_id number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    region_name string
    The region name. Either 'regionid' or 'regionname' must be specified.
    backupType String
    clusterId String
    createdAt String
    creatorTaskId String
    dbms List<GetDbaasBackupDbm>
    description String
    finishedAt String
    hasChild Boolean
    isService Boolean
    parentId String
    size Double
    status String
    taskId String
    updatedAt String
    id String
    The backup UUID. Either 'id' or 'name' must be specified.
    name String
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId Double
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The region name. Either 'regionid' or 'regionname' must be specified.
    backupType string
    clusterId string
    createdAt string
    creatorTaskId string
    dbms GetDbaasBackupDbm[]
    description string
    finishedAt string
    hasChild boolean
    isService boolean
    parentId string
    size number
    status string
    taskId string
    updatedAt string
    id string
    The backup UUID. Either 'id' or 'name' must be specified.
    name string
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The region name. Either 'regionid' or 'regionname' must be specified.
    backup_type str
    cluster_id str
    created_at str
    creator_task_id str
    dbms Sequence[GetDbaasBackupDbm]
    description str
    finished_at str
    has_child bool
    is_service bool
    parent_id str
    size float
    status str
    task_id str
    updated_at str
    id str
    The backup UUID. Either 'id' or 'name' must be specified.
    name str
    The unique backup name. Either 'id' or 'name' must be specified.
    project_id float
    The project ID. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The project name. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The region ID. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The region name. Either 'regionid' or 'regionname' must be specified.
    backupType String
    clusterId String
    createdAt String
    creatorTaskId String
    dbms List<Property Map>
    description String
    finishedAt String
    hasChild Boolean
    isService Boolean
    parentId String
    size Number
    status String
    taskId String
    updatedAt String
    id String
    The backup UUID. Either 'id' or 'name' must be specified.
    name String
    The unique backup name. Either 'id' or 'name' must be specified.
    projectId Number
    The project ID. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The project name. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The region ID. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The region name. Either 'regionid' or 'regionname' must be specified.

    Supporting Types

    GetDbaasBackupDbm

    Type string
    Version string
    Type string
    Version string
    type string
    version string
    type String
    version String
    type string
    version string
    type str
    version str
    type String
    version String

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    Viewing docs for edgecenter 0.14.4
    published on Thursday, Jul 30, 2026 by edge-center

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial