1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getDdsInstanceV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getDdsInstanceV3

Explore with Pulumi AI

opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

Up-to-date reference of API arguments for DDS instance you can get at documentation portal

Use this data source to get info of the OpenTelekomCloud DDS instance.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const instance = opentelekomcloud.getDdsInstanceV3({
    instanceId: instanceId,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
instance_id = config.require_object("instanceId")
instance = opentelekomcloud.get_dds_instance_v3(instance_id=instance_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"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 := opentelekomcloud.LookupDdsInstanceV3(ctx, &opentelekomcloud.LookupDdsInstanceV3Args{
			InstanceId: pulumi.StringRef(instanceId),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var instanceId = config.RequireObject<dynamic>("instanceId");
    var instance = Opentelekomcloud.GetDdsInstanceV3.Invoke(new()
    {
        InstanceId = instanceId,
    });

});
Copy
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.GetDdsInstanceV3Args;
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 instance = OpentelekomcloudFunctions.getDdsInstanceV3(GetDdsInstanceV3Args.builder()
            .instanceId(instanceId)
            .build());

    }
}
Copy
configuration:
  instanceId:
    type: dynamic
variables:
  instance:
    fn::invoke:
      function: opentelekomcloud:getDdsInstanceV3
      arguments:
        instanceId: ${instanceId}
Copy

Using getDdsInstanceV3

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 getDdsInstanceV3(args: GetDdsInstanceV3Args, opts?: InvokeOptions): Promise<GetDdsInstanceV3Result>
function getDdsInstanceV3Output(args: GetDdsInstanceV3OutputArgs, opts?: InvokeOptions): Output<GetDdsInstanceV3Result>
Copy
def get_dds_instance_v3(datastore_type: Optional[str] = None,
                        id: Optional[str] = None,
                        instance_id: Optional[str] = None,
                        name: Optional[str] = None,
                        subnet_id: Optional[str] = None,
                        vpc_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDdsInstanceV3Result
def get_dds_instance_v3_output(datastore_type: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        instance_id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        subnet_id: Optional[pulumi.Input[str]] = None,
                        vpc_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDdsInstanceV3Result]
Copy
func LookupDdsInstanceV3(ctx *Context, args *LookupDdsInstanceV3Args, opts ...InvokeOption) (*LookupDdsInstanceV3Result, error)
func LookupDdsInstanceV3Output(ctx *Context, args *LookupDdsInstanceV3OutputArgs, opts ...InvokeOption) LookupDdsInstanceV3ResultOutput
Copy

> Note: This function is named LookupDdsInstanceV3 in the Go SDK.

public static class GetDdsInstanceV3 
{
    public static Task<GetDdsInstanceV3Result> InvokeAsync(GetDdsInstanceV3Args args, InvokeOptions? opts = null)
    public static Output<GetDdsInstanceV3Result> Invoke(GetDdsInstanceV3InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDdsInstanceV3Result> getDdsInstanceV3(GetDdsInstanceV3Args args, InvokeOptions options)
public static Output<GetDdsInstanceV3Result> getDdsInstanceV3(GetDdsInstanceV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getDdsInstanceV3:getDdsInstanceV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DatastoreType string
Specifies the database type. The value is DDS-Community.
Id string
Indicates the DB instance ID.
InstanceId string
Specifies the DB instance ID.
Name string
Specifies the DB instance name.
SubnetId string
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
VpcId string
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.
DatastoreType string
Specifies the database type. The value is DDS-Community.
Id string
Indicates the DB instance ID.
InstanceId string
Specifies the DB instance ID.
Name string
Specifies the DB instance name.
SubnetId string
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
VpcId string
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.
datastoreType String
Specifies the database type. The value is DDS-Community.
id String
Indicates the DB instance ID.
instanceId String
Specifies the DB instance ID.
name String
Specifies the DB instance name.
subnetId String
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
vpcId String
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.
datastoreType string
Specifies the database type. The value is DDS-Community.
id string
Indicates the DB instance ID.
instanceId string
Specifies the DB instance ID.
name string
Specifies the DB instance name.
subnetId string
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
vpcId string
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.
datastore_type str
Specifies the database type. The value is DDS-Community.
id str
Indicates the DB instance ID.
instance_id str
Specifies the DB instance ID.
name str
Specifies the DB instance name.
subnet_id str
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
vpc_id str
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.
datastoreType String
Specifies the database type. The value is DDS-Community.
id String
Indicates the DB instance ID.
instanceId String
Specifies the DB instance ID.
name String
Specifies the DB instance name.
subnetId String
Specifies the network ID of the subnet. You can log in to the VPC console and obtain the network ID of the subnet in the VPC where the DDS instance is located.
vpcId String
Specifies the VPC ID. You can log in to the VPC console and obtain the ID of the VPC where the DDS instance is located.

getDdsInstanceV3 Result

The following output properties are available:

BackupStrategies List<GetDdsInstanceV3BackupStrategy>
Datastores List<GetDdsInstanceV3Datastore>
DbUsername string
Indicates the default username.
DiskEncryptionId string
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
Id string
Indicates the DB instance ID.
Mode string
Indicates the instance type, which is the same as the request parameter.
Nodes List<GetDdsInstanceV3Node>
PayMode string
Port double
Region string
Indicates the region where the DB instance is deployed.
SecurityGroupId string
Indicates the security group ID.
Ssl bool
Indicates that SSL is enabled or not.
Status string
Indicates the DB instance status.
DatastoreType string
InstanceId string
Name string
Indicates the DB instance name.
SubnetId string
Indicates the subnet ID.
VpcId string
Indicates the VPC ID.
BackupStrategies []GetDdsInstanceV3BackupStrategy
Datastores []GetDdsInstanceV3Datastore
DbUsername string
Indicates the default username.
DiskEncryptionId string
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
Id string
Indicates the DB instance ID.
Mode string
Indicates the instance type, which is the same as the request parameter.
Nodes []GetDdsInstanceV3Node
PayMode string
Port float64
Region string
Indicates the region where the DB instance is deployed.
SecurityGroupId string
Indicates the security group ID.
Ssl bool
Indicates that SSL is enabled or not.
Status string
Indicates the DB instance status.
DatastoreType string
InstanceId string
Name string
Indicates the DB instance name.
SubnetId string
Indicates the subnet ID.
VpcId string
Indicates the VPC ID.
backupStrategies List<GetDdsInstanceV3BackupStrategy>
datastores List<GetDdsInstanceV3Datastore>
dbUsername String
Indicates the default username.
diskEncryptionId String
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
id String
Indicates the DB instance ID.
mode String
Indicates the instance type, which is the same as the request parameter.
nodes List<GetDdsInstanceV3Node>
payMode String
port Double
region String
Indicates the region where the DB instance is deployed.
securityGroupId String
Indicates the security group ID.
ssl Boolean
Indicates that SSL is enabled or not.
status String
Indicates the DB instance status.
datastoreType String
instanceId String
name String
Indicates the DB instance name.
subnetId String
Indicates the subnet ID.
vpcId String
Indicates the VPC ID.
backupStrategies GetDdsInstanceV3BackupStrategy[]
datastores GetDdsInstanceV3Datastore[]
dbUsername string
Indicates the default username.
diskEncryptionId string
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
id string
Indicates the DB instance ID.
mode string
Indicates the instance type, which is the same as the request parameter.
nodes GetDdsInstanceV3Node[]
payMode string
port number
region string
Indicates the region where the DB instance is deployed.
securityGroupId string
Indicates the security group ID.
ssl boolean
Indicates that SSL is enabled or not.
status string
Indicates the DB instance status.
datastoreType string
instanceId string
name string
Indicates the DB instance name.
subnetId string
Indicates the subnet ID.
vpcId string
Indicates the VPC ID.
backup_strategies Sequence[GetDdsInstanceV3BackupStrategy]
datastores Sequence[GetDdsInstanceV3Datastore]
db_username str
Indicates the default username.
disk_encryption_id str
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
id str
Indicates the DB instance ID.
mode str
Indicates the instance type, which is the same as the request parameter.
nodes Sequence[GetDdsInstanceV3Node]
pay_mode str
port float
region str
Indicates the region where the DB instance is deployed.
security_group_id str
Indicates the security group ID.
ssl bool
Indicates that SSL is enabled or not.
status str
Indicates the DB instance status.
datastore_type str
instance_id str
name str
Indicates the DB instance name.
subnet_id str
Indicates the subnet ID.
vpc_id str
Indicates the VPC ID.
backupStrategies List<Property Map>
datastores List<Property Map>
dbUsername String
Indicates the default username.
diskEncryptionId String
Indicates the disk encryption key ID. This parameter is returned only when the instance disk is encrypted.
id String
Indicates the DB instance ID.
mode String
Indicates the instance type, which is the same as the request parameter.
nodes List<Property Map>
payMode String
port Number
region String
Indicates the region where the DB instance is deployed.
securityGroupId String
Indicates the security group ID.
ssl Boolean
Indicates that SSL is enabled or not.
status String
Indicates the DB instance status.
datastoreType String
instanceId String
name String
Indicates the DB instance name.
subnetId String
Indicates the subnet ID.
vpcId String
Indicates the VPC ID.

Supporting Types

GetDdsInstanceV3BackupStrategy

KeepDays This property is required. double
StartTime This property is required. string
KeepDays This property is required. float64
StartTime This property is required. string
keepDays This property is required. Double
startTime This property is required. String
keepDays This property is required. number
startTime This property is required. string
keep_days This property is required. float
start_time This property is required. str
keepDays This property is required. Number
startTime This property is required. String

GetDdsInstanceV3Datastore

StorageEngine This property is required. string
Type This property is required. string
Version This property is required. string
StorageEngine This property is required. string
Type This property is required. string
Version This property is required. string
storageEngine This property is required. String
type This property is required. String
version This property is required. String
storageEngine This property is required. string
type This property is required. string
version This property is required. string
storage_engine This property is required. str
type This property is required. str
version This property is required. str
storageEngine This property is required. String
type This property is required. String
version This property is required. String

GetDdsInstanceV3Node

Id This property is required. string
Indicates the DB instance ID.
Name This property is required. string
Specifies the DB instance name.
PrivateIp This property is required. string
PublicIp This property is required. string
Role This property is required. string
Status This property is required. string
Indicates the DB instance status.
Type This property is required. string
Id This property is required. string
Indicates the DB instance ID.
Name This property is required. string
Specifies the DB instance name.
PrivateIp This property is required. string
PublicIp This property is required. string
Role This property is required. string
Status This property is required. string
Indicates the DB instance status.
Type This property is required. string
id This property is required. String
Indicates the DB instance ID.
name This property is required. String
Specifies the DB instance name.
privateIp This property is required. String
publicIp This property is required. String
role This property is required. String
status This property is required. String
Indicates the DB instance status.
type This property is required. String
id This property is required. string
Indicates the DB instance ID.
name This property is required. string
Specifies the DB instance name.
privateIp This property is required. string
publicIp This property is required. string
role This property is required. string
status This property is required. string
Indicates the DB instance status.
type This property is required. string
id This property is required. str
Indicates the DB instance ID.
name This property is required. str
Specifies the DB instance name.
private_ip This property is required. str
public_ip This property is required. str
role This property is required. str
status This property is required. str
Indicates the DB instance status.
type This property is required. str
id This property is required. String
Indicates the DB instance ID.
name This property is required. String
Specifies the DB instance name.
privateIp This property is required. String
publicIp This property is required. String
role This property is required. String
status This property is required. String
Indicates the DB instance status.
type This property is required. String

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud