flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getRdsBackups
Explore with Pulumi AI
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 dictionary
The following arguments are supported:
- Instance
Id This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 Ddm This property is required. bool - Whether a DDM instance has been associated.
- Begin
Time This property is required. string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- Databases
This property is required. List<GetRds Backups Backup Database> - Database been backed up. The databases structure is documented below.
- Datastores
This property is required. List<GetRds Backups Backup Datastore> - The database information. The datastore structure is documented below.
- End
Time This property is required. 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
This property is required. string - Backup ID.
- Instance
Id This property is required. string - Specifies the DB instance ID.
- Name
This property is required. string - Specifies the backup name.
- Size
This property is required. double - Backup size in KB.
- Status
This property is required. string - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- Type
This property is required. string - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- Associated
With Ddm This property is required. bool - Whether a DDM instance has been associated.
- Begin
Time This property is required. string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- Databases
This property is required. []GetRds Backups Backup Database - Database been backed up. The databases structure is documented below.
- Datastores
This property is required. []GetRds Backups Backup Datastore - The database information. The datastore structure is documented below.
- End
Time This property is required. 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
This property is required. string - Backup ID.
- Instance
Id This property is required. string - Specifies the DB instance ID.
- Name
This property is required. string - Specifies the backup name.
- Size
This property is required. float64 - Backup size in KB.
- Status
This property is required. string - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- Type
This property is required. string - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With Ddm This property is required. Boolean - Whether a DDM instance has been associated.
- begin
Time This property is required. String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
This property is required. List<GetRds Backups Backup Database> - Database been backed up. The databases structure is documented below.
- datastores
This property is required. List<GetRds Backups Backup Datastore> - The database information. The datastore structure is documented below.
- end
Time This property is required. 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
This property is required. String - Backup ID.
- instance
Id This property is required. String - Specifies the DB instance ID.
- name
This property is required. String - Specifies the backup name.
- size
This property is required. Double - Backup size in KB.
- status
This property is required. String - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type
This property is required. String - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With Ddm This property is required. boolean - Whether a DDM instance has been associated.
- begin
Time This property is required. string - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
This property is required. GetRds Backups Backup Database[] - Database been backed up. The databases structure is documented below.
- datastores
This property is required. GetRds Backups Backup Datastore[] - The database information. The datastore structure is documented below.
- end
Time This property is required. 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
This property is required. string - Backup ID.
- instance
Id This property is required. string - Specifies the DB instance ID.
- name
This property is required. string - Specifies the backup name.
- size
This property is required. number - Backup size in KB.
- status
This property is required. string - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type
This property is required. string - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated_
with_ ddm This property is required. bool - Whether a DDM instance has been associated.
- begin_
time This property is required. str - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
This property is required. Sequence[GetRds Backups Backup Database] - Database been backed up. The databases structure is documented below.
- datastores
This property is required. Sequence[GetRds Backups Backup Datastore] - The database information. The datastore structure is documented below.
- end_
time This property is required. 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
This property is required. str - Backup ID.
- instance_
id This property is required. str - Specifies the DB instance ID.
- name
This property is required. str - Specifies the backup name.
- size
This property is required. float - Backup size in KB.
- status
This property is required. str - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type
This property is required. str - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
- associated
With Ddm This property is required. Boolean - Whether a DDM instance has been associated.
- begin
Time This property is required. String - Specifies the start time for obtaining the backup list. The format of the start time is "yyyy-mm-ddThh:mm:ssZ".
- databases
This property is required. List<Property Map> - Database been backed up. The databases structure is documented below.
- datastores
This property is required. List<Property Map> - The database information. The datastore structure is documented below.
- end
Time This property is required. 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
This property is required. String - Backup ID.
- instance
Id This property is required. String - Specifies the DB instance ID.
- name
This property is required. String - Specifies the backup name.
- size
This property is required. Number - Backup size in KB.
- status
This property is required. String - Backup status. The options are as follows:
- BUILDING: Backup in progress.
- COMPLETED: Backup completed.
- FAILED: Backup failed.
- DELETING: Backup being deleted.
- type
This property is required. String - DB engine. The value can be: MySQL, PostgreSQL, SQL Server, MariaDB.
GetRdsBackupsBackupDatabase
- Name
This property is required. string - Specifies the backup name.
- Name
This property is required. string - Specifies the backup name.
- name
This property is required. String - Specifies the backup name.
- name
This property is required. string - Specifies the backup name.
- name
This property is required. str - Specifies the backup name.
- name
This property is required. String - Specifies the backup name.
GetRdsBackupsBackupDatastore
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud