flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getRdsBackups
Start a Neo task
Explain and create a flexibleengine.getRdsBackups resource
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the list of RDS backups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const test = flexibleengine.getRdsBackups({
instanceId: instanceId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = flexibleengine.get_rds_backups(instance_id=instance_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
_, err := flexibleengine.GetRdsBackups(ctx, &flexibleengine.GetRdsBackupsArgs{
InstanceId: instanceId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var test = Flexibleengine.GetRdsBackups.Invoke(new()
{
InstanceId = instanceId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetRdsBackupsArgs;
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 config = ctx.config();
final var instanceId = config.get("instanceId");
final var test = FlexibleengineFunctions.getRdsBackups(GetRdsBackupsArgs.builder()
.instanceId(instanceId)
.build());
}
}
configuration:
instanceId:
type: dynamic
variables:
test:
fn::invoke:
function: flexibleengine:getRdsBackups
arguments:
instanceId: ${instanceId}
Using getRdsBackups
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 getRdsBackups(args: GetRdsBackupsArgs, opts?: InvokeOptions): Promise<GetRdsBackupsResult>
function getRdsBackupsOutput(args: GetRdsBackupsOutputArgs, opts?: InvokeOptions): Output<GetRdsBackupsResult>def get_rds_backups(backup_id: Optional[str] = None,
backup_type: Optional[str] = None,
begin_time: Optional[str] = None,
end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRdsBackupsResult
def get_rds_backups_output(backup_id: Optional[pulumi.Input[str]] = None,
backup_type: Optional[pulumi.Input[str]] = None,
begin_time: Optional[pulumi.Input[str]] = None,
end_time: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRdsBackupsResult]func GetRdsBackups(ctx *Context, args *GetRdsBackupsArgs, opts ...InvokeOption) (*GetRdsBackupsResult, error)
func GetRdsBackupsOutput(ctx *Context, args *GetRdsBackupsOutputArgs, opts ...InvokeOption) GetRdsBackupsResultOutput> Note: This function is named GetRdsBackups in the Go SDK.
public static class GetRdsBackups
{
public static Task<GetRdsBackupsResult> InvokeAsync(GetRdsBackupsArgs args, InvokeOptions? opts = null)
public static Output<GetRdsBackupsResult> Invoke(GetRdsBackupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRdsBackupsResult> getRdsBackups(GetRdsBackupsArgs args, InvokeOptions options)
public static Output<GetRdsBackupsResult> getRdsBackups(GetRdsBackupsArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getRdsBackups:getRdsBackups
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - Specifies the DB instance ID.
- Backup
Id string - Specifies the backup ID.
- Backup
Type string - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- Begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- End
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- Id string
- Backup ID.
- Name string
- Specifies the backup name.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- Instance
Id string - Specifies the DB instance ID.
- Backup
Id string - Specifies the backup ID.
- Backup
Type string - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- Begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- End
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- Id string
- Backup ID.
- Name string
- Specifies the backup name.
- Region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- instance
Id String - Specifies the DB instance ID.
- backup
Id String - Specifies the backup ID.
- backup
Type String - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- begin
Time String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- end
Time String - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id String
- Backup ID.
- name String
- Specifies the backup name.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- instance
Id string - Specifies the DB instance ID.
- backup
Id string - Specifies the backup ID.
- backup
Type string - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- end
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id string
- Backup ID.
- name string
- Specifies the backup name.
- region string
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- instance_
id str - Specifies the DB instance ID.
- backup_
id str - Specifies the backup ID.
- backup_
type str - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- begin_
time str - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- end_
time str - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id str
- Backup ID.
- name str
- Specifies the backup name.
- region str
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
- instance
Id String - Specifies the DB instance ID.
- backup
Id String - Specifies the backup ID.
- backup
Type String - Specifies the backup type. The options are as follows:
- auto: Automated full backup.
- manual: Manual full backup.
- fragment: Differential full backup.
- incremental: Automated incremental backup.
- begin
Time String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- end
Time String - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id String
- Backup ID.
- name String
- Specifies the backup name.
- region String
- Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
getRdsBackups Result
The following output properties are available:
- Backups
List<Get
Rds Backups Backup> - Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- Id string
- Backup ID.
- Instance
Id string - RDS instance ID.
- Region string
- Backup
Id string - Backup
Type string - Begin
Time string - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- End
Time string - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- Name string
- Database to be backed up for Microsoft SQL Server.
- Backups
[]Get
Rds Backups Backup - Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- Id string
- Backup ID.
- Instance
Id string - RDS instance ID.
- Region string
- Backup
Id string - Backup
Type string - Begin
Time string - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- End
Time string - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- Name string
- Database to be backed up for Microsoft SQL Server.
- backups
List<Get
Rds Backups Backup> - Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- id String
- Backup ID.
- instance
Id String - RDS instance ID.
- region String
- backup
Id String - backup
Type String - begin
Time String - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- end
Time String - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- name String
- Database to be backed up for Microsoft SQL Server.
- backups
Get
Rds Backups Backup[] - Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- id string
- Backup ID.
- instance
Id string - RDS instance ID.
- region string
- backup
Id string - backup
Type string - begin
Time string - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- end
Time string - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- name string
- Database to be backed up for Microsoft SQL Server.
- backups
Sequence[Get
Rds Backups Backup] - Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- id str
- Backup ID.
- instance_
id str - RDS instance ID.
- region str
- backup_
id str - backup_
type str - begin_
time str - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- end_
time str - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- name str
- Database to be backed up for Microsoft SQL Server.
- backups List<Property Map>
- Backup list. For details, see Data structure of the Backup field. The backups structure is documented below.
- id String
- Backup ID.
- instance
Id String - RDS instance ID.
- region String
- backup
Id String - backup
Type String - begin
Time String - Backup start time in the "yyyy-mm-ddThh:mm:ssZ" format.
- end
Time String - Backup end time in the "yyyy-mm-ddThh:mm:ssZ" format.
- name String
- Database to be backed up for Microsoft SQL Server.
Supporting Types
GetRdsBackupsBackup
- Associated
With boolDdm - Whether a DDM instance has been associated.
- Begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- Databases
List<Get
Rds Backups Backup Database> - Database been backed up. The databases structure is documented below.
- Datastores
List<Get
Rds Backups Backup Datastore> - The database information. The datastore structure is documented below.
- End
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- Id string
- Backup ID.
- Instance
Id string - Specifies the DB instance ID.
- Name string
- Specifies the backup name.
- Size double
- Backup size in KB.
- Status string
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- Type string
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- Associated
With boolDdm - Whether a DDM instance has been associated.
- Begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- Databases
[]Get
Rds Backups Backup Database - Database been backed up. The databases structure is documented below.
- Datastores
[]Get
Rds Backups Backup Datastore - The database information. The datastore structure is documented below.
- End
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- Id string
- Backup ID.
- Instance
Id string - Specifies the DB instance ID.
- Name string
- Specifies the backup name.
- Size float64
- Backup size in KB.
- Status string
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- Type string
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With BooleanDdm - Whether a DDM instance has been associated.
- begin
Time String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
List<Get
Rds Backups Backup Database> - Database been backed up. The databases structure is documented below.
- datastores
List<Get
Rds Backups Backup Datastore> - The database information. The datastore structure is documented below.
- end
Time String - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id String
- Backup ID.
- instance
Id String - Specifies the DB instance ID.
- name String
- Specifies the backup name.
- size Double
- Backup size in KB.
- status String
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type String
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With booleanDdm - Whether a DDM instance has been associated.
- begin
Time string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
Get
Rds Backups Backup Database[] - Database been backed up. The databases structure is documented below.
- datastores
Get
Rds Backups Backup Datastore[] - The database information. The datastore structure is documented below.
- end
Time string - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id string
- Backup ID.
- instance
Id string - Specifies the DB instance ID.
- name string
- Specifies the backup name.
- size number
- Backup size in KB.
- status string
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type string
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated_
with_ boolddm - Whether a DDM instance has been associated.
- begin_
time str - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
Sequence[Get
Rds Backups Backup Database] - Database been backed up. The databases structure is documented below.
- datastores
Sequence[Get
Rds Backups Backup Datastore] - The database information. The datastore structure is documented below.
- end_
time str - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id str
- Backup ID.
- instance_
id str - Specifies the DB instance ID.
- name str
- Specifies the backup name.
- size float
- Backup size in KB.
- status str
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type str
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With BooleanDdm - Whether a DDM instance has been associated.
- begin
Time String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases List<Property Map>
- Database been backed up. The databases structure is documented below.
- datastores List<Property Map>
- The database information. The datastore structure is documented below.
- end
Time String - Specifies the end time for obtaining the backup list. The format of the end time is "yyyy-mm-ddThh:mm:ssZ" and the end time must be later than the start time.
- id String
- Backup ID.
- instance
Id String - Specifies the DB instance ID.
- name String
- Specifies the backup name.
- size Number
- Backup size in KB.
- status String
- Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type String
- DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
GetRdsBackupsBackupDatabase
- Name string
- Specifies the backup name.
- Name string
- Specifies the backup name.
- name String
- Specifies the backup name.
- name string
- Specifies the backup name.
- name str
- Specifies the backup name.
- name String
- Specifies the backup name.
GetRdsBackupsBackupDatastore
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
