1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getRdsBackupV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getRdsBackupV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for RDSv3 instance backup you can get at documentation portal

    Use this data source to get information about RDSv3 instance backup.

    Example Usage

    Finding the latest automatic backup:

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const backup = opentelekomcloud.getRdsBackupV3({
        instanceId: _var.rds_instance_id,
        type: "auto",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    backup = opentelekomcloud.get_rds_backup_v3(instance_id=var["rds_instance_id"],
        type="auto")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupRdsBackupV3(ctx, &opentelekomcloud.LookupRdsBackupV3Args{
    			InstanceId: _var.Rds_instance_id,
    			Type:       pulumi.StringRef("auto"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var backup = Opentelekomcloud.GetRdsBackupV3.Invoke(new()
        {
            InstanceId = @var.Rds_instance_id,
            Type = "auto",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetRdsBackupV3Args;
    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 backup = OpentelekomcloudFunctions.getRdsBackupV3(GetRdsBackupV3Args.builder()
                .instanceId(var_.rds_instance_id())
                .type("auto")
                .build());
    
        }
    }
    
    variables:
      backup:
        fn::invoke:
          function: opentelekomcloud:getRdsBackupV3
          arguments:
            instanceId: ${var.rds_instance_id}
            type: auto
    

    Using getRdsBackupV3

    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 getRdsBackupV3(args: GetRdsBackupV3Args, opts?: InvokeOptions): Promise<GetRdsBackupV3Result>
    function getRdsBackupV3Output(args: GetRdsBackupV3OutputArgs, opts?: InvokeOptions): Output<GetRdsBackupV3Result>
    def get_rds_backup_v3(backup_id: Optional[str] = None,
                          id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          type: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRdsBackupV3Result
    def get_rds_backup_v3_output(backup_id: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          instance_id: Optional[pulumi.Input[str]] = None,
                          type: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetRdsBackupV3Result]
    func LookupRdsBackupV3(ctx *Context, args *LookupRdsBackupV3Args, opts ...InvokeOption) (*LookupRdsBackupV3Result, error)
    func LookupRdsBackupV3Output(ctx *Context, args *LookupRdsBackupV3OutputArgs, opts ...InvokeOption) LookupRdsBackupV3ResultOutput

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

    public static class GetRdsBackupV3 
    {
        public static Task<GetRdsBackupV3Result> InvokeAsync(GetRdsBackupV3Args args, InvokeOptions? opts = null)
        public static Output<GetRdsBackupV3Result> Invoke(GetRdsBackupV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdsBackupV3Result> getRdsBackupV3(GetRdsBackupV3Args args, InvokeOptions options)
    public static Output<GetRdsBackupV3Result> getRdsBackupV3(GetRdsBackupV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getRdsBackupV3:getRdsBackupV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the DB instance ID.
    BackupId string
    Specifies the backup ID.
    Id string
    Type string

    Specifies the backup type.

    Possible values:

    InstanceId string
    Specifies the DB instance ID.
    BackupId string
    Specifies the backup ID.
    Id string
    Type string

    Specifies the backup type.

    Possible values:

    instanceId String
    Specifies the DB instance ID.
    backupId String
    Specifies the backup ID.
    id String
    type String

    Specifies the backup type.

    Possible values:

    instanceId string
    Specifies the DB instance ID.
    backupId string
    Specifies the backup ID.
    id string
    type string

    Specifies the backup type.

    Possible values:

    instance_id str
    Specifies the DB instance ID.
    backup_id str
    Specifies the backup ID.
    id str
    type str

    Specifies the backup type.

    Possible values:

    instanceId String
    Specifies the DB instance ID.
    backupId String
    Specifies the backup ID.
    id String
    type String

    Specifies the backup type.

    Possible values:

    getRdsBackupV3 Result

    The following output properties are available:

    BeginTime string
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    Databases List<string>
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    DbType string
    Indicates the DB engine.
    DbVersion string
    Indicates the database version.
    EndTime string
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    Id string
    InstanceId string
    Name string
    Indicates the backup name.
    Size double
    Indicates the backup size in kB.
    Status string
    Indicates the status of the backup.
    Type string
    Indicates the backup type.
    BackupId string
    BeginTime string
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    Databases []string
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    DbType string
    Indicates the DB engine.
    DbVersion string
    Indicates the database version.
    EndTime string
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    Id string
    InstanceId string
    Name string
    Indicates the backup name.
    Size float64
    Indicates the backup size in kB.
    Status string
    Indicates the status of the backup.
    Type string
    Indicates the backup type.
    BackupId string
    beginTime String
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    databases List<String>
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    dbType String
    Indicates the DB engine.
    dbVersion String
    Indicates the database version.
    endTime String
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    id String
    instanceId String
    name String
    Indicates the backup name.
    size Double
    Indicates the backup size in kB.
    status String
    Indicates the status of the backup.
    type String
    Indicates the backup type.
    backupId String
    beginTime string
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    databases string[]
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    dbType string
    Indicates the DB engine.
    dbVersion string
    Indicates the database version.
    endTime string
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    id string
    instanceId string
    name string
    Indicates the backup name.
    size number
    Indicates the backup size in kB.
    status string
    Indicates the status of the backup.
    type string
    Indicates the backup type.
    backupId string
    begin_time str
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    databases Sequence[str]
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    db_type str
    Indicates the DB engine.
    db_version str
    Indicates the database version.
    end_time str
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    id str
    instance_id str
    name str
    Indicates the backup name.
    size float
    Indicates the backup size in kB.
    status str
    Indicates the status of the backup.
    type str
    Indicates the backup type.
    backup_id str
    beginTime String
    Indicates the backup start time in the yyyy-mm-ddThh:mm:ssZ format.
    databases List<String>
    Indicates a list of self-built Microsoft SQL Server databases that support partial backups.
    dbType String
    Indicates the DB engine.
    dbVersion String
    Indicates the database version.
    endTime String
    Indicates the backup end time in the yyyy-mm-ddThh:mm:ssZ format.
    id String
    instanceId String
    name String
    Indicates the backup name.
    size Number
    Indicates the backup size in kB.
    status String
    Indicates the status of the backup.
    type String
    Indicates the backup type.
    backupId String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud