opentelekomcloud 1.36.41 published on Thursday, Jun 19, 2025 by opentelekomcloud
opentelekomcloud.getRdsInstanceV3
Explore with Pulumi AI
opentelekomcloud 1.36.41 published on Thursday, Jun 19, 2025 by opentelekomcloud
Up-to-date reference of API arguments for RDSv3 instance you can get at documentation portal
Use the opentelekomcloud.RdsInstanceV3
datasource to query DB instances according to search criteria.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const instance = opentelekomcloud.getRdsInstanceV3({
datastoreType: "PostgreSQL",
id: "rds_instance_1_id",
name: "rds_instance_1",
subnetId: "subnet-id",
type: "single",
vpcId: "vpc-id",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
instance = opentelekomcloud.get_rds_instance_v3(datastore_type="PostgreSQL",
id="rds_instance_1_id",
name="rds_instance_1",
subnet_id="subnet-id",
type="single",
vpc_id="vpc-id")
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.LookupRdsInstanceV3(ctx, &opentelekomcloud.LookupRdsInstanceV3Args{
DatastoreType: pulumi.StringRef("PostgreSQL"),
Id: pulumi.StringRef("rds_instance_1_id"),
Name: pulumi.StringRef("rds_instance_1"),
SubnetId: pulumi.StringRef("subnet-id"),
Type: pulumi.StringRef("single"),
VpcId: pulumi.StringRef("vpc-id"),
}, 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 instance = Opentelekomcloud.GetRdsInstanceV3.Invoke(new()
{
DatastoreType = "PostgreSQL",
Id = "rds_instance_1_id",
Name = "rds_instance_1",
SubnetId = "subnet-id",
Type = "single",
VpcId = "vpc-id",
});
});
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.GetRdsInstanceV3Args;
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 instance = OpentelekomcloudFunctions.getRdsInstanceV3(GetRdsInstanceV3Args.builder()
.datastoreType("PostgreSQL")
.id("rds_instance_1_id")
.name("rds_instance_1")
.subnetId("subnet-id")
.type("single")
.vpcId("vpc-id")
.build());
}
}
variables:
instance:
fn::invoke:
function: opentelekomcloud:getRdsInstanceV3
arguments:
datastoreType: PostgreSQL
id: rds_instance_1_id
name: rds_instance_1
subnetId: subnet-id
type: single
vpcId: vpc-id
Using getRdsInstanceV3
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 getRdsInstanceV3(args: GetRdsInstanceV3Args, opts?: InvokeOptions): Promise<GetRdsInstanceV3Result>
function getRdsInstanceV3Output(args: GetRdsInstanceV3OutputArgs, opts?: InvokeOptions): Output<GetRdsInstanceV3Result>
def get_rds_instance_v3(datastore_type: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
port: Optional[float] = None,
region: Optional[str] = None,
subnet_id: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRdsInstanceV3Result
def get_rds_instance_v3_output(datastore_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
port: Optional[pulumi.Input[float]] = 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[GetRdsInstanceV3Result]
func LookupRdsInstanceV3(ctx *Context, args *LookupRdsInstanceV3Args, opts ...InvokeOption) (*LookupRdsInstanceV3Result, error)
func LookupRdsInstanceV3Output(ctx *Context, args *LookupRdsInstanceV3OutputArgs, opts ...InvokeOption) LookupRdsInstanceV3ResultOutput
> Note: This function is named LookupRdsInstanceV3
in the Go SDK.
public static class GetRdsInstanceV3
{
public static Task<GetRdsInstanceV3Result> InvokeAsync(GetRdsInstanceV3Args args, InvokeOptions? opts = null)
public static Output<GetRdsInstanceV3Result> Invoke(GetRdsInstanceV3InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRdsInstanceV3Result> getRdsInstanceV3(GetRdsInstanceV3Args args, InvokeOptions options)
public static Output<GetRdsInstanceV3Result> getRdsInstanceV3(GetRdsInstanceV3Args args, InvokeOptions options)
fn::invoke:
function: opentelekomcloud:index/getRdsInstanceV3:getRdsInstanceV3
arguments:
# arguments dictionary
The following arguments are supported:
- Datastore
Type string - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- Id string
- ID of the RDS instance.
- Name string
- Specifies the DB instance ID.
- Port double
- Indicates the database port number.
- Region string
- Indicates the region where the DB instance is deployed.
- Subnet
Id string - Specifies the network ID of the subnet.
- Type string
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- Vpc
Id string - Specifies the VPC ID.
- Datastore
Type string - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- Id string
- ID of the RDS instance.
- Name string
- Specifies the DB instance ID.
- Port float64
- Indicates the database port number.
- Region string
- Indicates the region where the DB instance is deployed.
- Subnet
Id string - Specifies the network ID of the subnet.
- Type string
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- Vpc
Id string - Specifies the VPC ID.
- datastore
Type String - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- id String
- ID of the RDS instance.
- name String
- Specifies the DB instance ID.
- port Double
- Indicates the database port number.
- region String
- Indicates the region where the DB instance is deployed.
- subnet
Id String - Specifies the network ID of the subnet.
- type String
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id String - Specifies the VPC ID.
- datastore
Type string - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- id string
- ID of the RDS instance.
- name string
- Specifies the DB instance ID.
- port number
- Indicates the database port number.
- region string
- Indicates the region where the DB instance is deployed.
- subnet
Id string - Specifies the network ID of the subnet.
- type string
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id string - Specifies the VPC ID.
- datastore_
type str - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- id str
- ID of the RDS instance.
- name str
- Specifies the DB instance ID.
- port float
- Indicates the database port number.
- region str
- Indicates the region where the DB instance is deployed.
- subnet_
id str - Specifies the network ID of the subnet.
- type str
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc_
id str - Specifies the VPC ID.
- datastore
Type String - Specifies the database type.
Its value can be any of the following and is case-sensitive:
MySQL
,PostgreSQL
,SQLServer
- id String
- ID of the RDS instance.
- name String
- Specifies the DB instance ID.
- port Number
- Indicates the database port number.
- region String
- Indicates the region where the DB instance is deployed.
- subnet
Id String - Specifies the network ID of the subnet.
- type String
- Specifies the instance type based query. The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id String - Specifies the VPC ID.
getRdsInstanceV3 Result
The following output properties are available:
- Availability
Zones List<string> - Indicates the availability zone.
- Backup
Strategies List<GetRds Instance V3Backup Strategy> - Created string
- Indicates the creation time.
- Datastore
Version string - Indicates the database version.
- Db
Username string - Indicates the database username.
- Disk
Encryption stringId - Indicates the disk encryption ID.
- Fixed
Ip string - Flavor string
- Indicates the flavor ID.
- Ha Dictionary<string, string>
- Id string
- Indicates the DB instance ID.
- Nodes
List<Get
Rds Instance V3Node> - Indicates the node information.
- Private
Ips List<string> - Indicates the private IP address. It is a blank string until an ECS is created.
- Public
Ips List<string> - Indicates the public IP address.
- Region string
- Indicates the region where the DB instance is deployed.
- Security
Group stringId - Indicates the security group ID.
- Status string
- Indicates the DB instance status.
- Dictionary<string, string>
- Indicates the tags.
- Timezone string
- Indicates the time zone.
- Updated string
- Indicates the update time.
- Volume
Size double - Indicates the volume size.
- Volume
Type string - Indicates the volume type.
- Datastore
Type string - Indicates the database type.
- Name string
- Indicates created the DB instance name.
- Port double
- Indicates the database port number.
- Subnet
Id string - Indicates the network ID of the subnet.
- Type string
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- Vpc
Id string - Indicates the VPC ID.
- Availability
Zones []string - Indicates the availability zone.
- Backup
Strategies []GetRds Instance V3Backup Strategy - Created string
- Indicates the creation time.
- Datastore
Version string - Indicates the database version.
- Db
Username string - Indicates the database username.
- Disk
Encryption stringId - Indicates the disk encryption ID.
- Fixed
Ip string - Flavor string
- Indicates the flavor ID.
- Ha map[string]string
- Id string
- Indicates the DB instance ID.
- Nodes
[]Get
Rds Instance V3Node - Indicates the node information.
- Private
Ips []string - Indicates the private IP address. It is a blank string until an ECS is created.
- Public
Ips []string - Indicates the public IP address.
- Region string
- Indicates the region where the DB instance is deployed.
- Security
Group stringId - Indicates the security group ID.
- Status string
- Indicates the DB instance status.
- map[string]string
- Indicates the tags.
- Timezone string
- Indicates the time zone.
- Updated string
- Indicates the update time.
- Volume
Size float64 - Indicates the volume size.
- Volume
Type string - Indicates the volume type.
- Datastore
Type string - Indicates the database type.
- Name string
- Indicates created the DB instance name.
- Port float64
- Indicates the database port number.
- Subnet
Id string - Indicates the network ID of the subnet.
- Type string
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- Vpc
Id string - Indicates the VPC ID.
- availability
Zones List<String> - Indicates the availability zone.
- backup
Strategies List<GetRds Instance V3Backup Strategy> - created String
- Indicates the creation time.
- datastore
Version String - Indicates the database version.
- db
Username String - Indicates the database username.
- disk
Encryption StringId - Indicates the disk encryption ID.
- fixed
Ip String - flavor String
- Indicates the flavor ID.
- ha Map<String,String>
- id String
- Indicates the DB instance ID.
- nodes
List<Get
Rds Instance V3Node> - Indicates the node information.
- private
Ips List<String> - Indicates the private IP address. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address.
- region String
- Indicates the region where the DB instance is deployed.
- security
Group StringId - Indicates the security group ID.
- status String
- Indicates the DB instance status.
- Map<String,String>
- Indicates the tags.
- timezone String
- Indicates the time zone.
- updated String
- Indicates the update time.
- volume
Size Double - Indicates the volume size.
- volume
Type String - Indicates the volume type.
- datastore
Type String - Indicates the database type.
- name String
- Indicates created the DB instance name.
- port Double
- Indicates the database port number.
- subnet
Id String - Indicates the network ID of the subnet.
- type String
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id String - Indicates the VPC ID.
- availability
Zones string[] - Indicates the availability zone.
- backup
Strategies GetRds Instance V3Backup Strategy[] - created string
- Indicates the creation time.
- datastore
Version string - Indicates the database version.
- db
Username string - Indicates the database username.
- disk
Encryption stringId - Indicates the disk encryption ID.
- fixed
Ip string - flavor string
- Indicates the flavor ID.
- ha {[key: string]: string}
- id string
- Indicates the DB instance ID.
- nodes
Get
Rds Instance V3Node[] - Indicates the node information.
- private
Ips string[] - Indicates the private IP address. It is a blank string until an ECS is created.
- public
Ips string[] - Indicates the public IP address.
- region string
- Indicates the region where the DB instance is deployed.
- security
Group stringId - Indicates the security group ID.
- status string
- Indicates the DB instance status.
- {[key: string]: string}
- Indicates the tags.
- timezone string
- Indicates the time zone.
- updated string
- Indicates the update time.
- volume
Size number - Indicates the volume size.
- volume
Type string - Indicates the volume type.
- datastore
Type string - Indicates the database type.
- name string
- Indicates created the DB instance name.
- port number
- Indicates the database port number.
- subnet
Id string - Indicates the network ID of the subnet.
- type string
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id string - Indicates the VPC ID.
- availability_
zones Sequence[str] - Indicates the availability zone.
- backup_
strategies Sequence[GetRds Instance V3Backup Strategy] - created str
- Indicates the creation time.
- datastore_
version str - Indicates the database version.
- db_
username str - Indicates the database username.
- disk_
encryption_ strid - Indicates the disk encryption ID.
- fixed_
ip str - flavor str
- Indicates the flavor ID.
- ha Mapping[str, str]
- id str
- Indicates the DB instance ID.
- nodes
Sequence[Get
Rds Instance V3Node] - Indicates the node information.
- private_
ips Sequence[str] - Indicates the private IP address. It is a blank string until an ECS is created.
- public_
ips Sequence[str] - Indicates the public IP address.
- region str
- Indicates the region where the DB instance is deployed.
- security_
group_ strid - Indicates the security group ID.
- status str
- Indicates the DB instance status.
- Mapping[str, str]
- Indicates the tags.
- timezone str
- Indicates the time zone.
- updated str
- Indicates the update time.
- volume_
size float - Indicates the volume size.
- volume_
type str - Indicates the volume type.
- datastore_
type str - Indicates the database type.
- name str
- Indicates created the DB instance name.
- port float
- Indicates the database port number.
- subnet_
id str - Indicates the network ID of the subnet.
- type str
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc_
id str - Indicates the VPC ID.
- availability
Zones List<String> - Indicates the availability zone.
- backup
Strategies List<Property Map> - created String
- Indicates the creation time.
- datastore
Version String - Indicates the database version.
- db
Username String - Indicates the database username.
- disk
Encryption StringId - Indicates the disk encryption ID.
- fixed
Ip String - flavor String
- Indicates the flavor ID.
- ha Map<String>
- id String
- Indicates the DB instance ID.
- nodes List<Property Map>
- Indicates the node information.
- private
Ips List<String> - Indicates the private IP address. It is a blank string until an ECS is created.
- public
Ips List<String> - Indicates the public IP address.
- region String
- Indicates the region where the DB instance is deployed.
- security
Group StringId - Indicates the security group ID.
- status String
- Indicates the DB instance status.
- Map<String>
- Indicates the tags.
- timezone String
- Indicates the time zone.
- updated String
- Indicates the update time.
- volume
Size Number - Indicates the volume size.
- volume
Type String - Indicates the volume type.
- datastore
Type String - Indicates the database type.
- name String
- Indicates created the DB instance name.
- port Number
- Indicates the database port number.
- subnet
Id String - Indicates the network ID of the subnet.
- type String
- The value is Single, Ha, or Replica, which correspond to single instance, primary/standby instances, and read replica, respectively.
- vpc
Id String - Indicates the VPC ID.
Supporting Types
GetRdsInstanceV3BackupStrategy
- keep_
days float - start_
time str
GetRdsInstanceV3Node
- Availability
Zone string - Indicates the availability zone.
- Id string
- ID of the RDS instance.
- Name string
- Specifies the DB instance ID.
- Role string
- Status string
- Indicates the DB instance status.
- Availability
Zone string - Indicates the availability zone.
- Id string
- ID of the RDS instance.
- Name string
- Specifies the DB instance ID.
- Role string
- Status string
- Indicates the DB instance status.
- availability
Zone String - Indicates the availability zone.
- id String
- ID of the RDS instance.
- name String
- Specifies the DB instance ID.
- role String
- status String
- Indicates the DB instance status.
- availability
Zone string - Indicates the availability zone.
- id string
- ID of the RDS instance.
- name string
- Specifies the DB instance ID.
- role string
- status string
- Indicates the DB instance status.
- availability_
zone str - Indicates the availability zone.
- id str
- ID of the RDS instance.
- name str
- Specifies the DB instance ID.
- role str
- status str
- Indicates the DB instance status.
- availability
Zone String - Indicates the availability zone.
- id String
- ID of the RDS instance.
- name String
- Specifies the DB instance ID.
- role String
- status String
- Indicates the DB instance status.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.
opentelekomcloud 1.36.41 published on Thursday, Jun 19, 2025 by opentelekomcloud