opentelekomcloud.getRdsBackupV3
Explore with Pulumi AI
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:
- Instance
Id string - Specifies the DB instance ID.
- Backup
Id string - Specifies the backup ID.
- Id string
- Type string
Specifies the backup type.
Possible values:
- Instance
Id string - Specifies the DB instance ID.
- Backup
Id string - Specifies the backup ID.
- Id string
- Type string
Specifies the backup type.
Possible values:
- instance
Id String - Specifies the DB instance ID.
- backup
Id String - Specifies the backup ID.
- id String
- type String
Specifies the backup type.
Possible values:
- instance
Id string - Specifies the DB instance ID.
- backup
Id 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:
- instance
Id String - Specifies the DB instance ID.
- backup
Id String - Specifies the backup ID.
- id String
- type String
Specifies the backup type.
Possible values:
getRdsBackupV3 Result
The following output properties are available:
- Begin
Time 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.
- Db
Type string - Indicates the DB engine.
- Db
Version string - Indicates the database version.
- End
Time string - Indicates the backup end time in the
yyyy-mm-ddThh:mm:ssZ
format. - Id string
- Instance
Id 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.
- Backup
Id string
- Begin
Time 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.
- Db
Type string - Indicates the DB engine.
- Db
Version string - Indicates the database version.
- End
Time string - Indicates the backup end time in the
yyyy-mm-ddThh:mm:ssZ
format. - Id string
- Instance
Id 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.
- Backup
Id string
- begin
Time 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.
- db
Type String - Indicates the DB engine.
- db
Version String - Indicates the database version.
- end
Time String - Indicates the backup end time in the
yyyy-mm-ddThh:mm:ssZ
format. - id String
- instance
Id 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.
- backup
Id String
- begin
Time 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.
- db
Type string - Indicates the DB engine.
- db
Version string - Indicates the database version.
- end
Time string - Indicates the backup end time in the
yyyy-mm-ddThh:mm:ssZ
format. - id string
- instance
Id 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.
- backup
Id 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
- begin
Time 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.
- db
Type String - Indicates the DB engine.
- db
Version String - Indicates the database version.
- end
Time String - Indicates the backup end time in the
yyyy-mm-ddThh:mm:ssZ
format. - id String
- instance
Id 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.
- backup
Id String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.