flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getRdsInstances
Start a Neo task
Explain and create a flexibleengine.getRdsInstances resource
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to list all available RDS instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const test = flexibleengine.getRdsInstances({
name: "rds-instance",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
test = flexibleengine.get_rds_instances(name="rds-instance")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.GetRdsInstances(ctx, &flexibleengine.GetRdsInstancesArgs{
Name: pulumi.StringRef("rds-instance"),
}, 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 test = Flexibleengine.GetRdsInstances.Invoke(new()
{
Name = "rds-instance",
});
});
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.GetRdsInstancesArgs;
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 test = FlexibleengineFunctions.getRdsInstances(GetRdsInstancesArgs.builder()
.name("rds-instance")
.build());
}
}
variables:
test:
fn::invoke:
function: flexibleengine:getRdsInstances
arguments:
name: rds-instance
Using getRdsInstances
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 getRdsInstances(args: GetRdsInstancesArgs, opts?: InvokeOptions): Promise<GetRdsInstancesResult>
function getRdsInstancesOutput(args: GetRdsInstancesOutputArgs, opts?: InvokeOptions): Output<GetRdsInstancesResult>def get_rds_instances(datastore_type: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
subnet_id: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRdsInstancesResult
def get_rds_instances_output(datastore_type: Optional[pulumi.Input[str]] = None,
enterprise_project_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRdsInstancesResult]func GetRdsInstances(ctx *Context, args *GetRdsInstancesArgs, opts ...InvokeOption) (*GetRdsInstancesResult, error)
func GetRdsInstancesOutput(ctx *Context, args *GetRdsInstancesOutputArgs, opts ...InvokeOption) GetRdsInstancesResultOutput> Note: This function is named GetRdsInstances in the Go SDK.
public static class GetRdsInstances
{
public static Task<GetRdsInstancesResult> InvokeAsync(GetRdsInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetRdsInstancesResult> Invoke(GetRdsInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRdsInstancesResult> getRdsInstances(GetRdsInstancesArgs args, InvokeOptions options)
public static Output<GetRdsInstancesResult> getRdsInstances(GetRdsInstancesArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getRdsInstances:getRdsInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Datastore
Type string - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- Subnet
Id string - Specifies the network ID of a subnet.
- Type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- Vpc
Id string - Specifies the VPC ID.
- Datastore
Type string - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- Subnet
Id string - Specifies the network ID of a subnet.
- Type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- Vpc
Id string - Specifies the VPC ID.
- datastore
Type String - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- enterprise
Project StringId - Specifies the enterprise project id.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- region String
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- subnet
Id String - Specifies the network ID of a subnet.
- type String
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- vpc
Id String - Specifies the VPC ID.
- datastore
Type string - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- enterprise
Project stringId - Specifies the enterprise project id.
- id string
- Indicates the node ID.
- name string
- Specifies the name of the instance.
- region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- subnet
Id string - Specifies the network ID of a subnet.
- type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- vpc
Id string - Specifies the VPC ID.
- datastore_
type str - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- enterprise_
project_ strid - Specifies the enterprise project id.
- id str
- Indicates the node ID.
- name str
- Specifies the name of the instance.
- region str
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- subnet_
id str - Specifies the network ID of a subnet.
- type str
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- vpc_
id str - Specifies the VPC ID.
- datastore
Type String - Specifies the type of the database. Valid values are: MySQL, PostgreSQL, SQLServer and MariaDB.
- enterprise
Project StringId - Specifies the enterprise project id.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- region String
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- subnet
Id String - Specifies the network ID of a subnet.
- type String
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- vpc
Id String - Specifies the VPC ID.
getRdsInstances Result
The following output properties are available:
- Id string
- Indicates the node ID.
- Instances
List<Get
Rds Instances Instance> - An array of available instances. The instances object structure is documented below.
- Region string
- The region of the instance.
- Datastore
Type string - Enterprise
Project stringId - Indicates the enterprise project id.
- Name string
- Indicates the node name.
- Subnet
Id string - Indicates the network ID of a subnet.
- Type string
- Indicates the volume type.
- Vpc
Id string - Indicates the VPC ID.
- Id string
- Indicates the node ID.
- Instances
[]Get
Rds Instances Instance - An array of available instances. The instances object structure is documented below.
- Region string
- The region of the instance.
- Datastore
Type string - Enterprise
Project stringId - Indicates the enterprise project id.
- Name string
- Indicates the node name.
- Subnet
Id string - Indicates the network ID of a subnet.
- Type string
- Indicates the volume type.
- Vpc
Id string - Indicates the VPC ID.
- id String
- Indicates the node ID.
- instances
List<Get
Rds Instances Instance> - An array of available instances. The instances object structure is documented below.
- region String
- The region of the instance.
- datastore
Type String - enterprise
Project StringId - Indicates the enterprise project id.
- name String
- Indicates the node name.
- subnet
Id String - Indicates the network ID of a subnet.
- type String
- Indicates the volume type.
- vpc
Id String - Indicates the VPC ID.
- id string
- Indicates the node ID.
- instances
Get
Rds Instances Instance[] - An array of available instances. The instances object structure is documented below.
- region string
- The region of the instance.
- datastore
Type string - enterprise
Project stringId - Indicates the enterprise project id.
- name string
- Indicates the node name.
- subnet
Id string - Indicates the network ID of a subnet.
- type string
- Indicates the volume type.
- vpc
Id string - Indicates the VPC ID.
- id str
- Indicates the node ID.
- instances
Sequence[Get
Rds Instances Instance] - An array of available instances. The instances object structure is documented below.
- region str
- The region of the instance.
- datastore_
type str - enterprise_
project_ strid - Indicates the enterprise project id.
- name str
- Indicates the node name.
- subnet_
id str - Indicates the network ID of a subnet.
- type str
- Indicates the volume type.
- vpc_
id str - Indicates the VPC ID.
- id String
- Indicates the node ID.
- instances List<Property Map>
- An array of available instances. The instances object structure is documented below.
- region String
- The region of the instance.
- datastore
Type String - enterprise
Project StringId - Indicates the enterprise project id.
- name String
- Indicates the node name.
- subnet
Id String - Indicates the network ID of a subnet.
- type String
- Indicates the volume type.
- vpc
Id String - Indicates the VPC ID.
Supporting Types
GetRdsInstancesInstance
- Availability
Zones List<string> - Indicates the availability zone where the node resides.
- Backup
Strategies List<GetRds Instances Instance Backup Strategy> - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- Created string
- Indicates the creation time.
- Dbs
List<Get
Rds Instances Instance Db> - Indicates the database information. The db object structure is documented below.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Fixed
Ip string - Indicates the intranet floating IP address of the instance.
- Flavor string
- Indicates the instance specifications.
- Ha
Replication stringMode - Indicates the replication mode for the standby DB instance.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Nodes
List<Get
Rds Instances Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- Param
Group stringId - Indicates the configuration ID.
- Private
Ips List<string> - Indicates the private ips in list.
- Public
Ips List<string> - Indicates the public ips in list.
- Region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- Security
Group stringId - Indicates the security group ID.
- Ssl
Enable bool - Indicates whether to enable SSL.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet.
- Dictionary<string, string>
- Indicates the tags of the instance.
- Time
Zone string - Indicates the time zone.
- Volumes
List<Get
Rds Instances Instance Volume> - Indicates the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID.
- Availability
Zones []string - Indicates the availability zone where the node resides.
- Backup
Strategies []GetRds Instances Instance Backup Strategy - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- Created string
- Indicates the creation time.
- Dbs
[]Get
Rds Instances Instance Db - Indicates the database information. The db object structure is documented below.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Fixed
Ip string - Indicates the intranet floating IP address of the instance.
- Flavor string
- Indicates the instance specifications.
- Ha
Replication stringMode - Indicates the replication mode for the standby DB instance.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Nodes
[]Get
Rds Instances Instance Node - Indicates the instance nodes information. The nodes object structure is documented below.
- Param
Group stringId - Indicates the configuration ID.
- Private
Ips []string - Indicates the private ips in list.
- Public
Ips []string - Indicates the public ips in list.
- Region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- Security
Group stringId - Indicates the security group ID.
- Ssl
Enable bool - Indicates whether to enable SSL.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet.
- map[string]string
- Indicates the tags of the instance.
- Time
Zone string - Indicates the time zone.
- Volumes
[]Get
Rds Instances Instance Volume - Indicates the volume information. The volume object structure is documented below.
- Vpc
Id string - Specifies the VPC ID.
- availability
Zones List<String> - Indicates the availability zone where the node resides.
- backup
Strategies List<GetRds Instances Instance Backup Strategy> - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- created String
- Indicates the creation time.
- dbs
List<Get
Rds Instances Instance Db> - Indicates the database information. The db object structure is documented below.
- enterprise
Project StringId - Specifies the enterprise project id.
- fixed
Ip String - Indicates the intranet floating IP address of the instance.
- flavor String
- Indicates the instance specifications.
- ha
Replication StringMode - Indicates the replication mode for the standby DB instance.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- nodes
List<Get
Rds Instances Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group StringId - Indicates the configuration ID.
- private
Ips List<String> - Indicates the private ips in list.
- public
Ips List<String> - Indicates the public ips in list.
- region String
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- security
Group StringId - Indicates the security group ID.
- ssl
Enable Boolean - Indicates whether to enable SSL.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet.
- Map<String,String>
- Indicates the tags of the instance.
- time
Zone String - Indicates the time zone.
- volumes
List<Get
Rds Instances Instance Volume> - Indicates the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID.
- availability
Zones string[] - Indicates the availability zone where the node resides.
- backup
Strategies GetRds Instances Instance Backup Strategy[] - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- created string
- Indicates the creation time.
- dbs
Get
Rds Instances Instance Db[] - Indicates the database information. The db object structure is documented below.
- enterprise
Project stringId - Specifies the enterprise project id.
- fixed
Ip string - Indicates the intranet floating IP address of the instance.
- flavor string
- Indicates the instance specifications.
- ha
Replication stringMode - Indicates the replication mode for the standby DB instance.
- id string
- Indicates the node ID.
- name string
- Specifies the name of the instance.
- nodes
Get
Rds Instances Instance Node[] - Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group stringId - Indicates the configuration ID.
- private
Ips string[] - Indicates the private ips in list.
- public
Ips string[] - Indicates the public ips in list.
- region string
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- security
Group stringId - Indicates the security group ID.
- ssl
Enable boolean - Indicates whether to enable SSL.
- status string
- Indicates the node status.
- subnet
Id string - Specifies the network ID of a subnet.
- {[key: string]: string}
- Indicates the tags of the instance.
- time
Zone string - Indicates the time zone.
- volumes
Get
Rds Instances Instance Volume[] - Indicates the volume information. The volume object structure is documented below.
- vpc
Id string - Specifies the VPC ID.
- availability_
zones Sequence[str] - Indicates the availability zone where the node resides.
- backup_
strategies Sequence[GetRds Instances Instance Backup Strategy] - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- created str
- Indicates the creation time.
- dbs
Sequence[Get
Rds Instances Instance Db] - Indicates the database information. The db object structure is documented below.
- enterprise_
project_ strid - Specifies the enterprise project id.
- fixed_
ip str - Indicates the intranet floating IP address of the instance.
- flavor str
- Indicates the instance specifications.
- ha_
replication_ strmode - Indicates the replication mode for the standby DB instance.
- id str
- Indicates the node ID.
- name str
- Specifies the name of the instance.
- nodes
Sequence[Get
Rds Instances Instance Node] - Indicates the instance nodes information. The nodes object structure is documented below.
- param_
group_ strid - Indicates the configuration ID.
- private_
ips Sequence[str] - Indicates the private ips in list.
- public_
ips Sequence[str] - Indicates the public ips in list.
- region str
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- security_
group_ strid - Indicates the security group ID.
- ssl_
enable bool - Indicates whether to enable SSL.
- status str
- Indicates the node status.
- subnet_
id str - Specifies the network ID of a subnet.
- Mapping[str, str]
- Indicates the tags of the instance.
- time_
zone str - Indicates the time zone.
- volumes
Sequence[Get
Rds Instances Instance Volume] - Indicates the volume information. The volume object structure is documented below.
- vpc_
id str - Specifies the VPC ID.
- availability
Zones List<String> - Indicates the availability zone where the node resides.
- backup
Strategies List<Property Map> - Indicates the advanced backup policy. The backup_strategy object structure is documented below.
- created String
- Indicates the creation time.
- dbs List<Property Map>
- Indicates the database information. The db object structure is documented below.
- enterprise
Project StringId - Specifies the enterprise project id.
- fixed
Ip String - Indicates the intranet floating IP address of the instance.
- flavor String
- Indicates the instance specifications.
- ha
Replication StringMode - Indicates the replication mode for the standby DB instance.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes object structure is documented below.
- param
Group StringId - Indicates the configuration ID.
- private
Ips List<String> - Indicates the private ips in list.
- public
Ips List<String> - Indicates the public ips in list.
- region String
- The region in which query obtain the instances. If omitted, the provider-level region will be used.
- security
Group StringId - Indicates the security group ID.
- ssl
Enable Boolean - Indicates whether to enable SSL.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet.
- Map<String>
- Indicates the tags of the instance.
- time
Zone String - Indicates the time zone.
- volumes List<Property Map>
- Indicates the volume information. The volume object structure is documented below.
- vpc
Id String - Specifies the VPC ID.
GetRdsInstancesInstanceBackupStrategy
- keep_
days float - Indicates the number of days to retain the generated.
- start_
time str - Indicates the backup time window.
GetRdsInstancesInstanceDb
GetRdsInstancesInstanceNode
- Availability
Zone string - Indicates the availability zone where the node resides.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Role string
- Indicates the node type.
- Status string
- Indicates the node status.
- Availability
Zone string - Indicates the availability zone where the node resides.
- Id string
- Indicates the node ID.
- Name string
- Specifies the name of the instance.
- Role string
- Indicates the node type.
- Status string
- Indicates the node status.
- availability
Zone String - Indicates the availability zone where the node resides.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- role String
- Indicates the node type.
- status String
- Indicates the node status.
- availability
Zone string - Indicates the availability zone where the node resides.
- id string
- Indicates the node ID.
- name string
- Specifies the name of the instance.
- role string
- Indicates the node type.
- status string
- Indicates the node status.
- availability_
zone str - Indicates the availability zone where the node resides.
- id str
- Indicates the node ID.
- name str
- Specifies the name of the instance.
- role str
- Indicates the node type.
- status str
- Indicates the node status.
- availability
Zone String - Indicates the availability zone where the node resides.
- id String
- Indicates the node ID.
- name String
- Specifies the name of the instance.
- role String
- Indicates the node type.
- status String
- Indicates the node status.
GetRdsInstancesInstanceVolume
- Disk
Encryption stringId - Indicates the kms key id.
- Size double
- Indicates the volume size.
- Type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- Disk
Encryption stringId - Indicates the kms key id.
- Size float64
- Indicates the volume size.
- Type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- disk
Encryption StringId - Indicates the kms key id.
- size Double
- Indicates the volume size.
- type String
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- disk
Encryption stringId - Indicates the kms key id.
- size number
- Indicates the volume size.
- type string
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- disk_
encryption_ strid - Indicates the kms key id.
- size float
- Indicates the volume size.
- type str
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
- disk
Encryption StringId - Indicates the kms key id.
- size Number
- Indicates the volume size.
- type String
- Specifies the type of the instance. Valid values are: Single, Ha, Replica, and Enterprise.
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
