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

opentelekomcloud.DdsInstanceV3

Explore with Pulumi AI

opentelekomcloud logo
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

    Manages DDS instance resource within OpenTelekomCloud

    Example Usage

    Creating A Replica Set

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.requireObject("availabilityZone");
    const vpcId = config.requireObject("vpcId");
    const subnetId = config.requireObject("subnetId");
    const securityGroupId = config.requireObject("securityGroupId");
    const instance = new opentelekomcloud.DdsInstanceV3("instance", {
        datastore: {
            type: "DDS-Community",
            version: "3.4",
            storageEngine: "wiredTiger",
        },
        availabilityZone: availabilityZone,
        vpcId: vpcId,
        subnetId: subnetId,
        securityGroupId: securityGroupId,
        password: "5ecuredPa55w0rd@",
        mode: "ReplicaSet",
        flavors: [{
            type: "replica",
            num: 1,
            storage: "ULTRAHIGH",
            size: 30,
            specCode: "dds.mongodb.s2.medium.4.repset",
        }],
        tags: {
            foo: "bar",
            new_test: "new_test2",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    availability_zone = config.require_object("availabilityZone")
    vpc_id = config.require_object("vpcId")
    subnet_id = config.require_object("subnetId")
    security_group_id = config.require_object("securityGroupId")
    instance = opentelekomcloud.DdsInstanceV3("instance",
        datastore={
            "type": "DDS-Community",
            "version": "3.4",
            "storage_engine": "wiredTiger",
        },
        availability_zone=availability_zone,
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        security_group_id=security_group_id,
        password="5ecuredPa55w0rd@",
        mode="ReplicaSet",
        flavors=[{
            "type": "replica",
            "num": 1,
            "storage": "ULTRAHIGH",
            "size": 30,
            "spec_code": "dds.mongodb.s2.medium.4.repset",
        }],
        tags={
            "foo": "bar",
            "new_test": "new_test2",
        })
    
    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, "")
    		availabilityZone := cfg.RequireObject("availabilityZone")
    		vpcId := cfg.RequireObject("vpcId")
    		subnetId := cfg.RequireObject("subnetId")
    		securityGroupId := cfg.RequireObject("securityGroupId")
    		_, err := opentelekomcloud.NewDdsInstanceV3(ctx, "instance", &opentelekomcloud.DdsInstanceV3Args{
    			Datastore: &opentelekomcloud.DdsInstanceV3DatastoreArgs{
    				Type:          pulumi.String("DDS-Community"),
    				Version:       pulumi.String("3.4"),
    				StorageEngine: pulumi.String("wiredTiger"),
    			},
    			AvailabilityZone: pulumi.Any(availabilityZone),
    			VpcId:            pulumi.Any(vpcId),
    			SubnetId:         pulumi.Any(subnetId),
    			SecurityGroupId:  pulumi.Any(securityGroupId),
    			Password:         pulumi.String("5ecuredPa55w0rd@"),
    			Mode:             pulumi.String("ReplicaSet"),
    			Flavors: opentelekomcloud.DdsInstanceV3FlavorArray{
    				&opentelekomcloud.DdsInstanceV3FlavorArgs{
    					Type:     pulumi.String("replica"),
    					Num:      pulumi.Float64(1),
    					Storage:  pulumi.String("ULTRAHIGH"),
    					Size:     pulumi.Float64(30),
    					SpecCode: pulumi.String("dds.mongodb.s2.medium.4.repset"),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"foo":      pulumi.String("bar"),
    				"new_test": pulumi.String("new_test2"),
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.RequireObject<dynamic>("availabilityZone");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var securityGroupId = config.RequireObject<dynamic>("securityGroupId");
        var instance = new Opentelekomcloud.DdsInstanceV3("instance", new()
        {
            Datastore = new Opentelekomcloud.Inputs.DdsInstanceV3DatastoreArgs
            {
                Type = "DDS-Community",
                Version = "3.4",
                StorageEngine = "wiredTiger",
            },
            AvailabilityZone = availabilityZone,
            VpcId = vpcId,
            SubnetId = subnetId,
            SecurityGroupId = securityGroupId,
            Password = "5ecuredPa55w0rd@",
            Mode = "ReplicaSet",
            Flavors = new[]
            {
                new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
                {
                    Type = "replica",
                    Num = 1,
                    Storage = "ULTRAHIGH",
                    Size = 30,
                    SpecCode = "dds.mongodb.s2.medium.4.repset",
                },
            },
            Tags = 
            {
                { "foo", "bar" },
                { "new_test", "new_test2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DdsInstanceV3;
    import com.pulumi.opentelekomcloud.DdsInstanceV3Args;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3DatastoreArgs;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3FlavorArgs;
    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 availabilityZone = config.get("availabilityZone");
            final var vpcId = config.get("vpcId");
            final var subnetId = config.get("subnetId");
            final var securityGroupId = config.get("securityGroupId");
            var instance = new DdsInstanceV3("instance", DdsInstanceV3Args.builder()
                .datastore(DdsInstanceV3DatastoreArgs.builder()
                    .type("DDS-Community")
                    .version("3.4")
                    .storageEngine("wiredTiger")
                    .build())
                .availabilityZone(availabilityZone)
                .vpcId(vpcId)
                .subnetId(subnetId)
                .securityGroupId(securityGroupId)
                .password("5ecuredPa55w0rd@")
                .mode("ReplicaSet")
                .flavors(DdsInstanceV3FlavorArgs.builder()
                    .type("replica")
                    .num(1)
                    .storage("ULTRAHIGH")
                    .size(30)
                    .specCode("dds.mongodb.s2.medium.4.repset")
                    .build())
                .tags(Map.ofEntries(
                    Map.entry("foo", "bar"),
                    Map.entry("new_test", "new_test2")
                ))
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: dynamic
      vpcId:
        type: dynamic
      subnetId:
        type: dynamic
      securityGroupId:
        type: dynamic
    resources:
      instance:
        type: opentelekomcloud:DdsInstanceV3
        properties:
          datastore:
            type: DDS-Community
            version: '3.4'
            storageEngine: wiredTiger
          availabilityZone: ${availabilityZone}
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          securityGroupId: ${securityGroupId}
          password: 5ecuredPa55w0rd@
          mode: ReplicaSet
          flavors:
            - type: replica
              num: 1
              storage: ULTRAHIGH
              size: 30
              specCode: dds.mongodb.s2.medium.4.repset
          tags:
            foo: bar
            new_test: new_test2
    

    Creating A Cluster Community Edition

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.requireObject("availabilityZone");
    const vpcId = config.requireObject("vpcId");
    const subnetId = config.requireObject("subnetId");
    const securityGroupId = config.requireObject("securityGroupId");
    const instance = new opentelekomcloud.DdsInstanceV3("instance", {
        datastore: {
            type: "DDS-Community",
            version: "3.4",
            storageEngine: "wiredTiger",
        },
        availabilityZone: availabilityZone,
        vpcId: vpcId,
        subnetId: subnetId,
        securityGroupId: securityGroupId,
        password: "5ecuredPa55w0rd2@",
        mode: "Sharding",
        flavors: [
            {
                type: "mongos",
                num: 2,
                specCode: "dds.mongodb.s2.medium.4.mongos",
            },
            {
                type: "shard",
                num: 2,
                storage: "ULTRAHIGH",
                size: 20,
                specCode: "dds.mongodb.s2.medium.4.shard",
            },
            {
                type: "config",
                num: 1,
                storage: "ULTRAHIGH",
                size: 20,
                specCode: "dds.mongodb.s2.large.2.config",
            },
        ],
        backupStrategy: {
            startTime: "08:00-09:00",
            keepDays: 8,
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    availability_zone = config.require_object("availabilityZone")
    vpc_id = config.require_object("vpcId")
    subnet_id = config.require_object("subnetId")
    security_group_id = config.require_object("securityGroupId")
    instance = opentelekomcloud.DdsInstanceV3("instance",
        datastore={
            "type": "DDS-Community",
            "version": "3.4",
            "storage_engine": "wiredTiger",
        },
        availability_zone=availability_zone,
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        security_group_id=security_group_id,
        password="5ecuredPa55w0rd2@",
        mode="Sharding",
        flavors=[
            {
                "type": "mongos",
                "num": 2,
                "spec_code": "dds.mongodb.s2.medium.4.mongos",
            },
            {
                "type": "shard",
                "num": 2,
                "storage": "ULTRAHIGH",
                "size": 20,
                "spec_code": "dds.mongodb.s2.medium.4.shard",
            },
            {
                "type": "config",
                "num": 1,
                "storage": "ULTRAHIGH",
                "size": 20,
                "spec_code": "dds.mongodb.s2.large.2.config",
            },
        ],
        backup_strategy={
            "start_time": "08:00-09:00",
            "keep_days": 8,
        })
    
    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, "")
    		availabilityZone := cfg.RequireObject("availabilityZone")
    		vpcId := cfg.RequireObject("vpcId")
    		subnetId := cfg.RequireObject("subnetId")
    		securityGroupId := cfg.RequireObject("securityGroupId")
    		_, err := opentelekomcloud.NewDdsInstanceV3(ctx, "instance", &opentelekomcloud.DdsInstanceV3Args{
    			Datastore: &opentelekomcloud.DdsInstanceV3DatastoreArgs{
    				Type:          pulumi.String("DDS-Community"),
    				Version:       pulumi.String("3.4"),
    				StorageEngine: pulumi.String("wiredTiger"),
    			},
    			AvailabilityZone: pulumi.Any(availabilityZone),
    			VpcId:            pulumi.Any(vpcId),
    			SubnetId:         pulumi.Any(subnetId),
    			SecurityGroupId:  pulumi.Any(securityGroupId),
    			Password:         pulumi.String("5ecuredPa55w0rd2@"),
    			Mode:             pulumi.String("Sharding"),
    			Flavors: opentelekomcloud.DdsInstanceV3FlavorArray{
    				&opentelekomcloud.DdsInstanceV3FlavorArgs{
    					Type:     pulumi.String("mongos"),
    					Num:      pulumi.Float64(2),
    					SpecCode: pulumi.String("dds.mongodb.s2.medium.4.mongos"),
    				},
    				&opentelekomcloud.DdsInstanceV3FlavorArgs{
    					Type:     pulumi.String("shard"),
    					Num:      pulumi.Float64(2),
    					Storage:  pulumi.String("ULTRAHIGH"),
    					Size:     pulumi.Float64(20),
    					SpecCode: pulumi.String("dds.mongodb.s2.medium.4.shard"),
    				},
    				&opentelekomcloud.DdsInstanceV3FlavorArgs{
    					Type:     pulumi.String("config"),
    					Num:      pulumi.Float64(1),
    					Storage:  pulumi.String("ULTRAHIGH"),
    					Size:     pulumi.Float64(20),
    					SpecCode: pulumi.String("dds.mongodb.s2.large.2.config"),
    				},
    			},
    			BackupStrategy: &opentelekomcloud.DdsInstanceV3BackupStrategyArgs{
    				StartTime: pulumi.String("08:00-09:00"),
    				KeepDays:  pulumi.Float64(8),
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.RequireObject<dynamic>("availabilityZone");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var securityGroupId = config.RequireObject<dynamic>("securityGroupId");
        var instance = new Opentelekomcloud.DdsInstanceV3("instance", new()
        {
            Datastore = new Opentelekomcloud.Inputs.DdsInstanceV3DatastoreArgs
            {
                Type = "DDS-Community",
                Version = "3.4",
                StorageEngine = "wiredTiger",
            },
            AvailabilityZone = availabilityZone,
            VpcId = vpcId,
            SubnetId = subnetId,
            SecurityGroupId = securityGroupId,
            Password = "5ecuredPa55w0rd2@",
            Mode = "Sharding",
            Flavors = new[]
            {
                new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
                {
                    Type = "mongos",
                    Num = 2,
                    SpecCode = "dds.mongodb.s2.medium.4.mongos",
                },
                new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
                {
                    Type = "shard",
                    Num = 2,
                    Storage = "ULTRAHIGH",
                    Size = 20,
                    SpecCode = "dds.mongodb.s2.medium.4.shard",
                },
                new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
                {
                    Type = "config",
                    Num = 1,
                    Storage = "ULTRAHIGH",
                    Size = 20,
                    SpecCode = "dds.mongodb.s2.large.2.config",
                },
            },
            BackupStrategy = new Opentelekomcloud.Inputs.DdsInstanceV3BackupStrategyArgs
            {
                StartTime = "08:00-09:00",
                KeepDays = 8,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DdsInstanceV3;
    import com.pulumi.opentelekomcloud.DdsInstanceV3Args;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3DatastoreArgs;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3FlavorArgs;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3BackupStrategyArgs;
    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 availabilityZone = config.get("availabilityZone");
            final var vpcId = config.get("vpcId");
            final var subnetId = config.get("subnetId");
            final var securityGroupId = config.get("securityGroupId");
            var instance = new DdsInstanceV3("instance", DdsInstanceV3Args.builder()
                .datastore(DdsInstanceV3DatastoreArgs.builder()
                    .type("DDS-Community")
                    .version("3.4")
                    .storageEngine("wiredTiger")
                    .build())
                .availabilityZone(availabilityZone)
                .vpcId(vpcId)
                .subnetId(subnetId)
                .securityGroupId(securityGroupId)
                .password("5ecuredPa55w0rd2@")
                .mode("Sharding")
                .flavors(            
                    DdsInstanceV3FlavorArgs.builder()
                        .type("mongos")
                        .num(2)
                        .specCode("dds.mongodb.s2.medium.4.mongos")
                        .build(),
                    DdsInstanceV3FlavorArgs.builder()
                        .type("shard")
                        .num(2)
                        .storage("ULTRAHIGH")
                        .size(20)
                        .specCode("dds.mongodb.s2.medium.4.shard")
                        .build(),
                    DdsInstanceV3FlavorArgs.builder()
                        .type("config")
                        .num(1)
                        .storage("ULTRAHIGH")
                        .size(20)
                        .specCode("dds.mongodb.s2.large.2.config")
                        .build())
                .backupStrategy(DdsInstanceV3BackupStrategyArgs.builder()
                    .startTime("08:00-09:00")
                    .keepDays("8")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: dynamic
      vpcId:
        type: dynamic
      subnetId:
        type: dynamic
      securityGroupId:
        type: dynamic
    resources:
      instance:
        type: opentelekomcloud:DdsInstanceV3
        properties:
          datastore:
            type: DDS-Community
            version: '3.4'
            storageEngine: wiredTiger
          availabilityZone: ${availabilityZone}
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          securityGroupId: ${securityGroupId}
          password: 5ecuredPa55w0rd2@
          mode: Sharding
          flavors:
            - type: mongos
              num: 2
              specCode: dds.mongodb.s2.medium.4.mongos
            - type: shard
              num: 2
              storage: ULTRAHIGH
              size: 20
              specCode: dds.mongodb.s2.medium.4.shard
            - type: config
              num: 1
              storage: ULTRAHIGH
              size: 20
              specCode: dds.mongodb.s2.large.2.config
          backupStrategy:
            startTime: 08:00-09:00
            keepDays: '8'
    

    Creating A Single Node Instance

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.requireObject("availabilityZone");
    const vpcId = config.requireObject("vpcId");
    const subnetId = config.requireObject("subnetId");
    const securityGroupId = config.requireObject("securityGroupId");
    const instance = new opentelekomcloud.DdsInstanceV3("instance", {
        datastore: {
            type: "DDS-Community",
            version: "3.4",
            storageEngine: "wiredTiger",
        },
        availabilityZone: availabilityZone,
        vpcId: vpcId,
        subnetId: subnetId,
        securityGroupId: securityGroupId,
        password: "5ecuredPa55w0rd@",
        mode: "Single",
        flavors: [{
            type: "single",
            num: 1,
            storage: "ULTRAHIGH",
            size: 30,
            specCode: "dds.mongodb.s2.medium.4.single",
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    availability_zone = config.require_object("availabilityZone")
    vpc_id = config.require_object("vpcId")
    subnet_id = config.require_object("subnetId")
    security_group_id = config.require_object("securityGroupId")
    instance = opentelekomcloud.DdsInstanceV3("instance",
        datastore={
            "type": "DDS-Community",
            "version": "3.4",
            "storage_engine": "wiredTiger",
        },
        availability_zone=availability_zone,
        vpc_id=vpc_id,
        subnet_id=subnet_id,
        security_group_id=security_group_id,
        password="5ecuredPa55w0rd@",
        mode="Single",
        flavors=[{
            "type": "single",
            "num": 1,
            "storage": "ULTRAHIGH",
            "size": 30,
            "spec_code": "dds.mongodb.s2.medium.4.single",
        }])
    
    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, "")
    		availabilityZone := cfg.RequireObject("availabilityZone")
    		vpcId := cfg.RequireObject("vpcId")
    		subnetId := cfg.RequireObject("subnetId")
    		securityGroupId := cfg.RequireObject("securityGroupId")
    		_, err := opentelekomcloud.NewDdsInstanceV3(ctx, "instance", &opentelekomcloud.DdsInstanceV3Args{
    			Datastore: &opentelekomcloud.DdsInstanceV3DatastoreArgs{
    				Type:          pulumi.String("DDS-Community"),
    				Version:       pulumi.String("3.4"),
    				StorageEngine: pulumi.String("wiredTiger"),
    			},
    			AvailabilityZone: pulumi.Any(availabilityZone),
    			VpcId:            pulumi.Any(vpcId),
    			SubnetId:         pulumi.Any(subnetId),
    			SecurityGroupId:  pulumi.Any(securityGroupId),
    			Password:         pulumi.String("5ecuredPa55w0rd@"),
    			Mode:             pulumi.String("Single"),
    			Flavors: opentelekomcloud.DdsInstanceV3FlavorArray{
    				&opentelekomcloud.DdsInstanceV3FlavorArgs{
    					Type:     pulumi.String("single"),
    					Num:      pulumi.Float64(1),
    					Storage:  pulumi.String("ULTRAHIGH"),
    					Size:     pulumi.Float64(30),
    					SpecCode: pulumi.String("dds.mongodb.s2.medium.4.single"),
    				},
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.RequireObject<dynamic>("availabilityZone");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var securityGroupId = config.RequireObject<dynamic>("securityGroupId");
        var instance = new Opentelekomcloud.DdsInstanceV3("instance", new()
        {
            Datastore = new Opentelekomcloud.Inputs.DdsInstanceV3DatastoreArgs
            {
                Type = "DDS-Community",
                Version = "3.4",
                StorageEngine = "wiredTiger",
            },
            AvailabilityZone = availabilityZone,
            VpcId = vpcId,
            SubnetId = subnetId,
            SecurityGroupId = securityGroupId,
            Password = "5ecuredPa55w0rd@",
            Mode = "Single",
            Flavors = new[]
            {
                new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
                {
                    Type = "single",
                    Num = 1,
                    Storage = "ULTRAHIGH",
                    Size = 30,
                    SpecCode = "dds.mongodb.s2.medium.4.single",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DdsInstanceV3;
    import com.pulumi.opentelekomcloud.DdsInstanceV3Args;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3DatastoreArgs;
    import com.pulumi.opentelekomcloud.inputs.DdsInstanceV3FlavorArgs;
    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 availabilityZone = config.get("availabilityZone");
            final var vpcId = config.get("vpcId");
            final var subnetId = config.get("subnetId");
            final var securityGroupId = config.get("securityGroupId");
            var instance = new DdsInstanceV3("instance", DdsInstanceV3Args.builder()
                .datastore(DdsInstanceV3DatastoreArgs.builder()
                    .type("DDS-Community")
                    .version("3.4")
                    .storageEngine("wiredTiger")
                    .build())
                .availabilityZone(availabilityZone)
                .vpcId(vpcId)
                .subnetId(subnetId)
                .securityGroupId(securityGroupId)
                .password("5ecuredPa55w0rd@")
                .mode("Single")
                .flavors(DdsInstanceV3FlavorArgs.builder()
                    .type("single")
                    .num(1)
                    .storage("ULTRAHIGH")
                    .size(30)
                    .specCode("dds.mongodb.s2.medium.4.single")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: dynamic
      vpcId:
        type: dynamic
      subnetId:
        type: dynamic
      securityGroupId:
        type: dynamic
    resources:
      instance:
        type: opentelekomcloud:DdsInstanceV3
        properties:
          datastore:
            type: DDS-Community
            version: '3.4'
            storageEngine: wiredTiger
          availabilityZone: ${availabilityZone}
          vpcId: ${vpcId}
          subnetId: ${subnetId}
          securityGroupId: ${securityGroupId}
          password: 5ecuredPa55w0rd@
          mode: Single
          flavors:
            - type: single
              num: 1
              storage: ULTRAHIGH
              size: 30
              specCode: dds.mongodb.s2.medium.4.single
    

    Create DdsInstanceV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DdsInstanceV3(name: string, args: DdsInstanceV3Args, opts?: CustomResourceOptions);
    @overload
    def DdsInstanceV3(resource_name: str,
                      args: DdsInstanceV3Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DdsInstanceV3(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      password: Optional[str] = None,
                      vpc_id: Optional[str] = None,
                      datastore: Optional[DdsInstanceV3DatastoreArgs] = None,
                      subnet_id: Optional[str] = None,
                      availability_zone: Optional[str] = None,
                      flavors: Optional[Sequence[DdsInstanceV3FlavorArgs]] = None,
                      mode: Optional[str] = None,
                      security_group_id: Optional[str] = None,
                      disk_encryption_id: Optional[str] = None,
                      port: Optional[float] = None,
                      region: Optional[str] = None,
                      name: Optional[str] = None,
                      ssl: Optional[bool] = None,
                      dds_instance_v3_id: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      timeouts: Optional[DdsInstanceV3TimeoutsArgs] = None,
                      backup_strategy: Optional[DdsInstanceV3BackupStrategyArgs] = None)
    func NewDdsInstanceV3(ctx *Context, name string, args DdsInstanceV3Args, opts ...ResourceOption) (*DdsInstanceV3, error)
    public DdsInstanceV3(string name, DdsInstanceV3Args args, CustomResourceOptions? opts = null)
    public DdsInstanceV3(String name, DdsInstanceV3Args args)
    public DdsInstanceV3(String name, DdsInstanceV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:DdsInstanceV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DdsInstanceV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DdsInstanceV3Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DdsInstanceV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DdsInstanceV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DdsInstanceV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ddsInstanceV3Resource = new Opentelekomcloud.DdsInstanceV3("ddsInstanceV3Resource", new()
    {
        Password = "string",
        VpcId = "string",
        Datastore = new Opentelekomcloud.Inputs.DdsInstanceV3DatastoreArgs
        {
            Type = "string",
            Version = "string",
            StorageEngine = "string",
        },
        SubnetId = "string",
        AvailabilityZone = "string",
        Flavors = new[]
        {
            new Opentelekomcloud.Inputs.DdsInstanceV3FlavorArgs
            {
                Num = 0,
                SpecCode = "string",
                Type = "string",
                Size = 0,
                Storage = "string",
            },
        },
        Mode = "string",
        SecurityGroupId = "string",
        DiskEncryptionId = "string",
        Port = 0,
        Region = "string",
        Name = "string",
        Ssl = false,
        DdsInstanceV3Id = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.DdsInstanceV3TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        BackupStrategy = new Opentelekomcloud.Inputs.DdsInstanceV3BackupStrategyArgs
        {
            KeepDays = 0,
            StartTime = "string",
            Period = "string",
        },
    });
    
    example, err := opentelekomcloud.NewDdsInstanceV3(ctx, "ddsInstanceV3Resource", &opentelekomcloud.DdsInstanceV3Args{
    	Password: pulumi.String("string"),
    	VpcId:    pulumi.String("string"),
    	Datastore: &opentelekomcloud.DdsInstanceV3DatastoreArgs{
    		Type:          pulumi.String("string"),
    		Version:       pulumi.String("string"),
    		StorageEngine: pulumi.String("string"),
    	},
    	SubnetId:         pulumi.String("string"),
    	AvailabilityZone: pulumi.String("string"),
    	Flavors: opentelekomcloud.DdsInstanceV3FlavorArray{
    		&opentelekomcloud.DdsInstanceV3FlavorArgs{
    			Num:      pulumi.Float64(0),
    			SpecCode: pulumi.String("string"),
    			Type:     pulumi.String("string"),
    			Size:     pulumi.Float64(0),
    			Storage:  pulumi.String("string"),
    		},
    	},
    	Mode:             pulumi.String("string"),
    	SecurityGroupId:  pulumi.String("string"),
    	DiskEncryptionId: pulumi.String("string"),
    	Port:             pulumi.Float64(0),
    	Region:           pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Ssl:              pulumi.Bool(false),
    	DdsInstanceV3Id:  pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.DdsInstanceV3TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	BackupStrategy: &opentelekomcloud.DdsInstanceV3BackupStrategyArgs{
    		KeepDays:  pulumi.Float64(0),
    		StartTime: pulumi.String("string"),
    		Period:    pulumi.String("string"),
    	},
    })
    
    var ddsInstanceV3Resource = new DdsInstanceV3("ddsInstanceV3Resource", DdsInstanceV3Args.builder()
        .password("string")
        .vpcId("string")
        .datastore(DdsInstanceV3DatastoreArgs.builder()
            .type("string")
            .version("string")
            .storageEngine("string")
            .build())
        .subnetId("string")
        .availabilityZone("string")
        .flavors(DdsInstanceV3FlavorArgs.builder()
            .num(0)
            .specCode("string")
            .type("string")
            .size(0)
            .storage("string")
            .build())
        .mode("string")
        .securityGroupId("string")
        .diskEncryptionId("string")
        .port(0)
        .region("string")
        .name("string")
        .ssl(false)
        .ddsInstanceV3Id("string")
        .tags(Map.of("string", "string"))
        .timeouts(DdsInstanceV3TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .backupStrategy(DdsInstanceV3BackupStrategyArgs.builder()
            .keepDays(0)
            .startTime("string")
            .period("string")
            .build())
        .build());
    
    dds_instance_v3_resource = opentelekomcloud.DdsInstanceV3("ddsInstanceV3Resource",
        password="string",
        vpc_id="string",
        datastore={
            "type": "string",
            "version": "string",
            "storage_engine": "string",
        },
        subnet_id="string",
        availability_zone="string",
        flavors=[{
            "num": 0,
            "spec_code": "string",
            "type": "string",
            "size": 0,
            "storage": "string",
        }],
        mode="string",
        security_group_id="string",
        disk_encryption_id="string",
        port=0,
        region="string",
        name="string",
        ssl=False,
        dds_instance_v3_id="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        backup_strategy={
            "keep_days": 0,
            "start_time": "string",
            "period": "string",
        })
    
    const ddsInstanceV3Resource = new opentelekomcloud.DdsInstanceV3("ddsInstanceV3Resource", {
        password: "string",
        vpcId: "string",
        datastore: {
            type: "string",
            version: "string",
            storageEngine: "string",
        },
        subnetId: "string",
        availabilityZone: "string",
        flavors: [{
            num: 0,
            specCode: "string",
            type: "string",
            size: 0,
            storage: "string",
        }],
        mode: "string",
        securityGroupId: "string",
        diskEncryptionId: "string",
        port: 0,
        region: "string",
        name: "string",
        ssl: false,
        ddsInstanceV3Id: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        backupStrategy: {
            keepDays: 0,
            startTime: "string",
            period: "string",
        },
    });
    
    type: opentelekomcloud:DdsInstanceV3
    properties:
        availabilityZone: string
        backupStrategy:
            keepDays: 0
            period: string
            startTime: string
        datastore:
            storageEngine: string
            type: string
            version: string
        ddsInstanceV3Id: string
        diskEncryptionId: string
        flavors:
            - num: 0
              size: 0
              specCode: string
              storage: string
              type: string
        mode: string
        name: string
        password: string
        port: 0
        region: string
        securityGroupId: string
        ssl: false
        subnetId: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
        vpcId: string
    

    DdsInstanceV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DdsInstanceV3 resource accepts the following input properties:

    AvailabilityZone string
    Specifies the ID of the availability zone.
    Datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    Flavors List<DdsInstanceV3Flavor>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    Mode string
    Specifies the mode of the database instance.
    Password string
    Specifies the Administrator password of the database instance.
    SecurityGroupId string
    Specifies the security group ID of the DDS instance.
    SubnetId string
    Specifies the subnet Network ID.
    VpcId string
    Specifies the VPC ID.
    BackupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    DdsInstanceV3Id string
    Indicates the node ID.
    DiskEncryptionId string
    Specifies the disk encryption ID of the instance.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    Port double
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    Region string
    Specifies the region of the DDS instance.
    Ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts DdsInstanceV3Timeouts
    AvailabilityZone string
    Specifies the ID of the availability zone.
    Datastore DdsInstanceV3DatastoreArgs
    Specifies database information. The structure is described below.
    Flavors []DdsInstanceV3FlavorArgs
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    Mode string
    Specifies the mode of the database instance.
    Password string
    Specifies the Administrator password of the database instance.
    SecurityGroupId string
    Specifies the security group ID of the DDS instance.
    SubnetId string
    Specifies the subnet Network ID.
    VpcId string
    Specifies the VPC ID.
    BackupStrategy DdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The structure is described below.
    DdsInstanceV3Id string
    Indicates the node ID.
    DiskEncryptionId string
    Specifies the disk encryption ID of the instance.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    Port float64
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    Region string
    Specifies the region of the DDS instance.
    Ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    Tags map[string]string
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    Timeouts DdsInstanceV3TimeoutsArgs
    availabilityZone String
    Specifies the ID of the availability zone.
    datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    flavors List<DdsInstanceV3Flavor>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode String
    Specifies the mode of the database instance.
    password String
    Specifies the Administrator password of the database instance.
    securityGroupId String
    Specifies the security group ID of the DDS instance.
    subnetId String
    Specifies the subnet Network ID.
    vpcId String
    Specifies the VPC ID.
    backupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    ddsInstanceV3Id String
    Indicates the node ID.
    diskEncryptionId String
    Specifies the disk encryption ID of the instance.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    port Double
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region String
    Specifies the region of the DDS instance.
    ssl Boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    tags Map<String,String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts DdsInstanceV3Timeouts
    availabilityZone string
    Specifies the ID of the availability zone.
    datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    flavors DdsInstanceV3Flavor[]
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode string
    Specifies the mode of the database instance.
    password string
    Specifies the Administrator password of the database instance.
    securityGroupId string
    Specifies the security group ID of the DDS instance.
    subnetId string
    Specifies the subnet Network ID.
    vpcId string
    Specifies the VPC ID.
    backupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    ddsInstanceV3Id string
    Indicates the node ID.
    diskEncryptionId string
    Specifies the disk encryption ID of the instance.
    name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    port number
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region string
    Specifies the region of the DDS instance.
    ssl boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    tags {[key: string]: string}
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts DdsInstanceV3Timeouts
    availability_zone str
    Specifies the ID of the availability zone.
    datastore DdsInstanceV3DatastoreArgs
    Specifies database information. The structure is described below.
    flavors Sequence[DdsInstanceV3FlavorArgs]
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode str
    Specifies the mode of the database instance.
    password str
    Specifies the Administrator password of the database instance.
    security_group_id str
    Specifies the security group ID of the DDS instance.
    subnet_id str
    Specifies the subnet Network ID.
    vpc_id str
    Specifies the VPC ID.
    backup_strategy DdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The structure is described below.
    dds_instance_v3_id str
    Indicates the node ID.
    disk_encryption_id str
    Specifies the disk encryption ID of the instance.
    name str
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    port float
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region str
    Specifies the region of the DDS instance.
    ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    tags Mapping[str, str]
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts DdsInstanceV3TimeoutsArgs
    availabilityZone String
    Specifies the ID of the availability zone.
    datastore Property Map
    Specifies database information. The structure is described below.
    flavors List<Property Map>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode String
    Specifies the mode of the database instance.
    password String
    Specifies the Administrator password of the database instance.
    securityGroupId String
    Specifies the security group ID of the DDS instance.
    subnetId String
    Specifies the subnet Network ID.
    vpcId String
    Specifies the VPC ID.
    backupStrategy Property Map
    Specifies the advanced backup policy. The structure is described below.
    ddsInstanceV3Id String
    Indicates the node ID.
    diskEncryptionId String
    Specifies the disk encryption ID of the instance.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    port Number
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region String
    Specifies the region of the DDS instance.
    ssl Boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    tags Map<String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DdsInstanceV3 resource produces the following output properties:

    CreatedAt string
    Indicates the creation time.
    DbUsername string
    Indicates the DB Administator name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes List<DdsInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    PayMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    Status string
    Indicates the node status.
    TimeZone string
    Indicates the time zone.
    UpdatedAt string
    Indicates the update time.
    CreatedAt string
    Indicates the creation time.
    DbUsername string
    Indicates the DB Administator name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes []DdsInstanceV3Node
    Indicates the instance nodes information. Structure is documented below.
    PayMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    Status string
    Indicates the node status.
    TimeZone string
    Indicates the time zone.
    UpdatedAt string
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    dbUsername String
    Indicates the DB Administator name.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<DdsInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    payMode String
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    status String
    Indicates the node status.
    timeZone String
    Indicates the time zone.
    updatedAt String
    Indicates the update time.
    createdAt string
    Indicates the creation time.
    dbUsername string
    Indicates the DB Administator name.
    id string
    The provider-assigned unique ID for this managed resource.
    nodes DdsInstanceV3Node[]
    Indicates the instance nodes information. Structure is documented below.
    payMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    status string
    Indicates the node status.
    timeZone string
    Indicates the time zone.
    updatedAt string
    Indicates the update time.
    created_at str
    Indicates the creation time.
    db_username str
    Indicates the DB Administator name.
    id str
    The provider-assigned unique ID for this managed resource.
    nodes Sequence[DdsInstanceV3Node]
    Indicates the instance nodes information. Structure is documented below.
    pay_mode str
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    status str
    Indicates the node status.
    time_zone str
    Indicates the time zone.
    updated_at str
    Indicates the update time.
    createdAt String
    Indicates the creation time.
    dbUsername String
    Indicates the DB Administator name.
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<Property Map>
    Indicates the instance nodes information. Structure is documented below.
    payMode String
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    status String
    Indicates the node status.
    timeZone String
    Indicates the time zone.
    updatedAt String
    Indicates the update time.

    Look up Existing DdsInstanceV3 Resource

    Get an existing DdsInstanceV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DdsInstanceV3State, opts?: CustomResourceOptions): DdsInstanceV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            backup_strategy: Optional[DdsInstanceV3BackupStrategyArgs] = None,
            created_at: Optional[str] = None,
            datastore: Optional[DdsInstanceV3DatastoreArgs] = None,
            db_username: Optional[str] = None,
            dds_instance_v3_id: Optional[str] = None,
            disk_encryption_id: Optional[str] = None,
            flavors: Optional[Sequence[DdsInstanceV3FlavorArgs]] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            nodes: Optional[Sequence[DdsInstanceV3NodeArgs]] = None,
            password: Optional[str] = None,
            pay_mode: Optional[str] = None,
            port: Optional[float] = None,
            region: Optional[str] = None,
            security_group_id: Optional[str] = None,
            ssl: Optional[bool] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            time_zone: Optional[str] = None,
            timeouts: Optional[DdsInstanceV3TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            vpc_id: Optional[str] = None) -> DdsInstanceV3
    func GetDdsInstanceV3(ctx *Context, name string, id IDInput, state *DdsInstanceV3State, opts ...ResourceOption) (*DdsInstanceV3, error)
    public static DdsInstanceV3 Get(string name, Input<string> id, DdsInstanceV3State? state, CustomResourceOptions? opts = null)
    public static DdsInstanceV3 get(String name, Output<String> id, DdsInstanceV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:DdsInstanceV3    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityZone string
    Specifies the ID of the availability zone.
    BackupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    CreatedAt string
    Indicates the creation time.
    Datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    DbUsername string
    Indicates the DB Administator name.
    DdsInstanceV3Id string
    Indicates the node ID.
    DiskEncryptionId string
    Specifies the disk encryption ID of the instance.
    Flavors List<DdsInstanceV3Flavor>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    Mode string
    Specifies the mode of the database instance.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    Nodes List<DdsInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    Password string
    Specifies the Administrator password of the database instance.
    PayMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    Port double
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    Region string
    Specifies the region of the DDS instance.
    SecurityGroupId string
    Specifies the security group ID of the DDS instance.
    Ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    Status string
    Indicates the node status.
    SubnetId string
    Specifies the subnet Network ID.
    Tags Dictionary<string, string>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    TimeZone string
    Indicates the time zone.
    Timeouts DdsInstanceV3Timeouts
    UpdatedAt string
    Indicates the update time.
    VpcId string
    Specifies the VPC ID.
    AvailabilityZone string
    Specifies the ID of the availability zone.
    BackupStrategy DdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The structure is described below.
    CreatedAt string
    Indicates the creation time.
    Datastore DdsInstanceV3DatastoreArgs
    Specifies database information. The structure is described below.
    DbUsername string
    Indicates the DB Administator name.
    DdsInstanceV3Id string
    Indicates the node ID.
    DiskEncryptionId string
    Specifies the disk encryption ID of the instance.
    Flavors []DdsInstanceV3FlavorArgs
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    Mode string
    Specifies the mode of the database instance.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    Nodes []DdsInstanceV3NodeArgs
    Indicates the instance nodes information. Structure is documented below.
    Password string
    Specifies the Administrator password of the database instance.
    PayMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    Port float64
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    Region string
    Specifies the region of the DDS instance.
    SecurityGroupId string
    Specifies the security group ID of the DDS instance.
    Ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    Status string
    Indicates the node status.
    SubnetId string
    Specifies the subnet Network ID.
    Tags map[string]string
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    TimeZone string
    Indicates the time zone.
    Timeouts DdsInstanceV3TimeoutsArgs
    UpdatedAt string
    Indicates the update time.
    VpcId string
    Specifies the VPC ID.
    availabilityZone String
    Specifies the ID of the availability zone.
    backupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    createdAt String
    Indicates the creation time.
    datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    dbUsername String
    Indicates the DB Administator name.
    ddsInstanceV3Id String
    Indicates the node ID.
    diskEncryptionId String
    Specifies the disk encryption ID of the instance.
    flavors List<DdsInstanceV3Flavor>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode String
    Specifies the mode of the database instance.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    nodes List<DdsInstanceV3Node>
    Indicates the instance nodes information. Structure is documented below.
    password String
    Specifies the Administrator password of the database instance.
    payMode String
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    port Double
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region String
    Specifies the region of the DDS instance.
    securityGroupId String
    Specifies the security group ID of the DDS instance.
    ssl Boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    status String
    Indicates the node status.
    subnetId String
    Specifies the subnet Network ID.
    tags Map<String,String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeZone String
    Indicates the time zone.
    timeouts DdsInstanceV3Timeouts
    updatedAt String
    Indicates the update time.
    vpcId String
    Specifies the VPC ID.
    availabilityZone string
    Specifies the ID of the availability zone.
    backupStrategy DdsInstanceV3BackupStrategy
    Specifies the advanced backup policy. The structure is described below.
    createdAt string
    Indicates the creation time.
    datastore DdsInstanceV3Datastore
    Specifies database information. The structure is described below.
    dbUsername string
    Indicates the DB Administator name.
    ddsInstanceV3Id string
    Indicates the node ID.
    diskEncryptionId string
    Specifies the disk encryption ID of the instance.
    flavors DdsInstanceV3Flavor[]
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode string
    Specifies the mode of the database instance.
    name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    nodes DdsInstanceV3Node[]
    Indicates the instance nodes information. Structure is documented below.
    password string
    Specifies the Administrator password of the database instance.
    payMode string
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    port number
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region string
    Specifies the region of the DDS instance.
    securityGroupId string
    Specifies the security group ID of the DDS instance.
    ssl boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    status string
    Indicates the node status.
    subnetId string
    Specifies the subnet Network ID.
    tags {[key: string]: string}
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeZone string
    Indicates the time zone.
    timeouts DdsInstanceV3Timeouts
    updatedAt string
    Indicates the update time.
    vpcId string
    Specifies the VPC ID.
    availability_zone str
    Specifies the ID of the availability zone.
    backup_strategy DdsInstanceV3BackupStrategyArgs
    Specifies the advanced backup policy. The structure is described below.
    created_at str
    Indicates the creation time.
    datastore DdsInstanceV3DatastoreArgs
    Specifies database information. The structure is described below.
    db_username str
    Indicates the DB Administator name.
    dds_instance_v3_id str
    Indicates the node ID.
    disk_encryption_id str
    Specifies the disk encryption ID of the instance.
    flavors Sequence[DdsInstanceV3FlavorArgs]
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode str
    Specifies the mode of the database instance.
    name str
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    nodes Sequence[DdsInstanceV3NodeArgs]
    Indicates the instance nodes information. Structure is documented below.
    password str
    Specifies the Administrator password of the database instance.
    pay_mode str
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    port float
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region str
    Specifies the region of the DDS instance.
    security_group_id str
    Specifies the security group ID of the DDS instance.
    ssl bool

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    status str
    Indicates the node status.
    subnet_id str
    Specifies the subnet Network ID.
    tags Mapping[str, str]
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    time_zone str
    Indicates the time zone.
    timeouts DdsInstanceV3TimeoutsArgs
    updated_at str
    Indicates the update time.
    vpc_id str
    Specifies the VPC ID.
    availabilityZone String
    Specifies the ID of the availability zone.
    backupStrategy Property Map
    Specifies the advanced backup policy. The structure is described below.
    createdAt String
    Indicates the creation time.
    datastore Property Map
    Specifies database information. The structure is described below.
    dbUsername String
    Indicates the DB Administator name.
    ddsInstanceV3Id String
    Indicates the node ID.
    diskEncryptionId String
    Specifies the disk encryption ID of the instance.
    flavors List<Property Map>
    Specifies the flavor information. The structure is described below. Changing this creates a new instance.
    mode String
    Specifies the mode of the database instance.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    nodes List<Property Map>
    Indicates the instance nodes information. Structure is documented below.
    password String
    Specifies the Administrator password of the database instance.
    payMode String
    Indicates the billing mode. 0: indicates the pay-per-use billing mode.
    port Number
    Specifies the database access port. The valid values are range from 2100 to 9500 and 27017, 27018, 27019. Defaults to 8635.
    region String
    Specifies the region of the DDS instance.
    securityGroupId String
    Specifies the security group ID of the DDS instance.
    ssl Boolean

    Specifies whether to enable or disable SSL. Defaults to true.

    The instance will be restarted in the background when switching SSL. Please operate with caution.

    status String
    Indicates the node status.
    subnetId String
    Specifies the subnet Network ID.
    tags Map<String>
    Tags key/value pairs to associate with the volume. Changing this updates the existing volume tags.
    timeZone String
    Indicates the time zone.
    timeouts Property Map
    updatedAt String
    Indicates the update time.
    vpcId String
    Specifies the VPC ID.

    Supporting Types

    DdsInstanceV3BackupStrategy, DdsInstanceV3BackupStrategyArgs

    KeepDays double
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    StartTime string
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    Period string
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.
    KeepDays float64
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    StartTime string
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    Period string
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.
    keepDays Double
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    startTime String
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    period String
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.
    keepDays number
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    startTime string
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    period string
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.
    keep_days float
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    start_time str
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    period str
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.
    keepDays Number
    Specifies the number of days to retain the generated backup files. The value range is from 0 to 732.

    • If this parameter is set to 0, the automated backup policy is not set.
    • If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
    startTime String
    Specifies the backup time window. Automated backups will be triggered during the backup time window. The value cannot be empty. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format.

    • The HH value must be 1 greater than the hh value.
    • The values from mm and MM must be the same and must be set to any of the following 00, 15, 30, or 45.
    period String
    Specifies the backup cycle. Data will be automatically backed up on the selected days every week.

    • If you set the keep_days to 0, this parameter is no need to set.
    • If you set the keep_days within 6 days, set the parameter value to 1,2,3,4,5,6,7, data is automatically backed up on each day every week.
    • If you set the keep_days between 7 and 732 days, set the parameter value to at least one day of every week. For example: 1, 3,5.

    DdsInstanceV3Datastore, DdsInstanceV3DatastoreArgs

    Type string
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    Version string
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    StorageEngine string
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4
    Type string
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    Version string
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    StorageEngine string
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4
    type String
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    version String
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    storageEngine String
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4
    type string
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    version string
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    storageEngine string
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4
    type str
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    version str
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    storage_engine str
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4
    type String
    Specifies the database type. DDS Community Edition is supported. The value is DDS-Community.
    version String
    Specifies the database version. The values are 3.2, 3.4, 4.0, 4.2, 4.4.
    storageEngine String
    Specifies the storage engine. Currently, DDS supports the WiredTiger and RocksDB storage engine. The values are wiredTiger, rocksDB. WiredTiger engine supports versions 3.2, 3.4, 4.0 while RocksDB supports versions 4.2, 4.4

    DdsInstanceV3Flavor, DdsInstanceV3FlavorArgs

    Num double
    Specifies the node quantity. Valid value:
    SpecCode string

    Specifies the resource specification code.

    The backup_strategy block supports:

    Type string
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    Size double

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    Storage string

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    Num float64
    Specifies the node quantity. Valid value:
    SpecCode string

    Specifies the resource specification code.

    The backup_strategy block supports:

    Type string
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    Size float64

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    Storage string

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    num Double
    Specifies the node quantity. Valid value:
    specCode String

    Specifies the resource specification code.

    The backup_strategy block supports:

    type String
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    size Double

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    storage String

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    num number
    Specifies the node quantity. Valid value:
    specCode string

    Specifies the resource specification code.

    The backup_strategy block supports:

    type string
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    size number

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    storage string

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    num float
    Specifies the node quantity. Valid value:
    spec_code str

    Specifies the resource specification code.

    The backup_strategy block supports:

    type str
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    size float

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    storage str

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    num Number
    Specifies the node quantity. Valid value:
    specCode String

    Specifies the resource specification code.

    The backup_strategy block supports:

    type String
    Specifies the node type. Valid value:

    • For a cluster instance, the value can be mongos, shard, or config.
    • For a replica set instance, the value is replica.
    • For a single node instance, the value is single.
    size Number

    Specifies the disk size. The value must be a multiple of 10. The unit is GB.

    • For a cluster instance, the storage space of a shard node can be 10 to 1000 GB, and the config storage space is 20 GB. This parameter is invalid for mongos nodes. Therefore, you do not need to specify the storage space for mongos nodes.
    • For a replica set instance, the value ranges from 10 to 2000.

    This parameter is mandatory for all nodes except mongos. This parameter is invalid for the mongos nodes.

    storage String

    Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

    This parameter is optional for all nodes except mongos. This parameter is invalid for the mongos nodes.

    DdsInstanceV3Node, DdsInstanceV3NodeArgs

    Id string
    Indicates the node ID.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    PrivateIp string
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    PublicIp string
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    Role string
    Indicates the node role.
    Status string
    Indicates the node status.
    Type string
    Indicates the node type.
    Id string
    Indicates the node ID.
    Name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    PrivateIp string
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    PublicIp string
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    Role string
    Indicates the node role.
    Status string
    Indicates the node status.
    Type string
    Indicates the node type.
    id String
    Indicates the node ID.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    privateIp String
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    publicIp String
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    role String
    Indicates the node role.
    status String
    Indicates the node status.
    type String
    Indicates the node type.
    id string
    Indicates the node ID.
    name string
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    privateIp string
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    publicIp string
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    role string
    Indicates the node role.
    status string
    Indicates the node status.
    type string
    Indicates the node type.
    id str
    Indicates the node ID.
    name str
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    private_ip str
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    public_ip str
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    role str
    Indicates the node role.
    status str
    Indicates the node status.
    type str
    Indicates the node type.
    id String
    Indicates the node ID.
    name String
    Specifies the DB instance name. The DB instance name of the same type is unique in the same tenant.
    privateIp String
    Indicates the private IP address of a node. This parameter is valid only for mongos nodes, replica set instances.
    publicIp String
    Indicates the EIP that has been bound on a node. This parameter is valid only for mongos nodes of cluster instances, primary nodes and secondary nodes of replica set instances.
    role String
    Indicates the node role.
    status String
    Indicates the node status.
    type String
    Indicates the node type.

    DdsInstanceV3Timeouts, DdsInstanceV3TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    DDSv3 Instance can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/ddsInstanceV3:DdsInstanceV3 instance_1 c1851195-cdcb-4d23-96cb-032e6a3ee667
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

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