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

opentelekomcloud.DdmSchemaV1

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 DDM schema you can get at documentation portal

    Manages DDM schema resource within OpenTelekomCloud

    Example Usage

    Creating A Basic DDM Schema

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const username = config.requireObject("username");
    const password = config.requireObject("password");
    const schema1 = new opentelekomcloud.DdmSchemaV1("schema1", {
        instanceId: "b4cd6aeb0b7445d3bf271457c6941544in09",
        shardMode: "cluster",
        shardNumber: 8,
        shardUnit: 8,
        rds: [{
            id: "55d93e249b77461b81f990fa805db3f3in01",
            adminUsername: username,
            adminPassword: password,
        }],
        purgeRdsOnDelete: true,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    username = config.require_object("username")
    password = config.require_object("password")
    schema1 = opentelekomcloud.DdmSchemaV1("schema1",
        instance_id="b4cd6aeb0b7445d3bf271457c6941544in09",
        shard_mode="cluster",
        shard_number=8,
        shard_unit=8,
        rds=[{
            "id": "55d93e249b77461b81f990fa805db3f3in01",
            "admin_username": username,
            "admin_password": password,
        }],
        purge_rds_on_delete=True)
    
    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, "")
    		username := cfg.RequireObject("username")
    		password := cfg.RequireObject("password")
    		_, err := opentelekomcloud.NewDdmSchemaV1(ctx, "schema1", &opentelekomcloud.DdmSchemaV1Args{
    			InstanceId:  pulumi.String("b4cd6aeb0b7445d3bf271457c6941544in09"),
    			ShardMode:   pulumi.String("cluster"),
    			ShardNumber: pulumi.Float64(8),
    			ShardUnit:   pulumi.Float64(8),
    			Rds: opentelekomcloud.DdmSchemaV1RdArray{
    				&opentelekomcloud.DdmSchemaV1RdArgs{
    					Id:            pulumi.String("55d93e249b77461b81f990fa805db3f3in01"),
    					AdminUsername: pulumi.Any(username),
    					AdminPassword: pulumi.Any(password),
    				},
    			},
    			PurgeRdsOnDelete: pulumi.Bool(true),
    		})
    		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 username = config.RequireObject<dynamic>("username");
        var password = config.RequireObject<dynamic>("password");
        var schema1 = new Opentelekomcloud.DdmSchemaV1("schema1", new()
        {
            InstanceId = "b4cd6aeb0b7445d3bf271457c6941544in09",
            ShardMode = "cluster",
            ShardNumber = 8,
            ShardUnit = 8,
            Rds = new[]
            {
                new Opentelekomcloud.Inputs.DdmSchemaV1RdArgs
                {
                    Id = "55d93e249b77461b81f990fa805db3f3in01",
                    AdminUsername = username,
                    AdminPassword = password,
                },
            },
            PurgeRdsOnDelete = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DdmSchemaV1;
    import com.pulumi.opentelekomcloud.DdmSchemaV1Args;
    import com.pulumi.opentelekomcloud.inputs.DdmSchemaV1RdArgs;
    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 username = config.get("username");
            final var password = config.get("password");
            var schema1 = new DdmSchemaV1("schema1", DdmSchemaV1Args.builder()
                .instanceId("b4cd6aeb0b7445d3bf271457c6941544in09")
                .shardMode("cluster")
                .shardNumber(8)
                .shardUnit(8)
                .rds(DdmSchemaV1RdArgs.builder()
                    .id("55d93e249b77461b81f990fa805db3f3in01")
                    .adminUsername(username)
                    .adminPassword(password)
                    .build())
                .purgeRdsOnDelete(true)
                .build());
    
        }
    }
    
    configuration:
      username:
        type: dynamic
      password:
        type: dynamic
    resources:
      schema1:
        type: opentelekomcloud:DdmSchemaV1
        properties:
          instanceId: b4cd6aeb0b7445d3bf271457c6941544in09
          shardMode: cluster
          shardNumber: 8
          shardUnit: 8
          rds:
            - id: 55d93e249b77461b81f990fa805db3f3in01
              adminUsername: ${username}
              adminPassword: ${password}
          purgeRdsOnDelete: true
    

    Notes

    But due to some attributes missing from the API response, it’s required to ignore changes as below:

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    // ...
    const schema1 = new opentelekomcloud.DdmSchemaV1("schema1", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    # ...
    schema1 = opentelekomcloud.DdmSchemaV1("schema1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ...
    		_, err := opentelekomcloud.NewDdmSchemaV1(ctx, "schema1", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // ...
        var schema1 = new Opentelekomcloud.DdmSchemaV1("schema1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DdmSchemaV1;
    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) {
            // ...
            var schema1 = new DdmSchemaV1("schema1");
    
        }
    }
    
    resources:
      schema1:
        type: opentelekomcloud:DdmSchemaV1
    

    Create DdmSchemaV1 Resource

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

    Constructor syntax

    new DdmSchemaV1(name: string, args: DdmSchemaV1Args, opts?: CustomResourceOptions);
    @overload
    def DdmSchemaV1(resource_name: str,
                    args: DdmSchemaV1Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def DdmSchemaV1(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    instance_id: Optional[str] = None,
                    rds: Optional[Sequence[DdmSchemaV1RdArgs]] = None,
                    shard_mode: Optional[str] = None,
                    shard_number: Optional[float] = None,
                    ddm_schema_v1_id: Optional[str] = None,
                    name: Optional[str] = None,
                    purge_rds_on_delete: Optional[bool] = None,
                    shard_unit: Optional[float] = None,
                    timeouts: Optional[DdmSchemaV1TimeoutsArgs] = None)
    func NewDdmSchemaV1(ctx *Context, name string, args DdmSchemaV1Args, opts ...ResourceOption) (*DdmSchemaV1, error)
    public DdmSchemaV1(string name, DdmSchemaV1Args args, CustomResourceOptions? opts = null)
    public DdmSchemaV1(String name, DdmSchemaV1Args args)
    public DdmSchemaV1(String name, DdmSchemaV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:DdmSchemaV1
    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 DdmSchemaV1Args
    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 DdmSchemaV1Args
    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 DdmSchemaV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DdmSchemaV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DdmSchemaV1Args
    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 ddmSchemaV1Resource = new Opentelekomcloud.DdmSchemaV1("ddmSchemaV1Resource", new()
    {
        InstanceId = "string",
        Rds = new[]
        {
            new Opentelekomcloud.Inputs.DdmSchemaV1RdArgs
            {
                AdminPassword = "string",
                AdminUsername = "string",
                Id = "string",
            },
        },
        ShardMode = "string",
        ShardNumber = 0,
        DdmSchemaV1Id = "string",
        Name = "string",
        PurgeRdsOnDelete = false,
        ShardUnit = 0,
        Timeouts = new Opentelekomcloud.Inputs.DdmSchemaV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewDdmSchemaV1(ctx, "ddmSchemaV1Resource", &opentelekomcloud.DdmSchemaV1Args{
    	InstanceId: pulumi.String("string"),
    	Rds: opentelekomcloud.DdmSchemaV1RdArray{
    		&opentelekomcloud.DdmSchemaV1RdArgs{
    			AdminPassword: pulumi.String("string"),
    			AdminUsername: pulumi.String("string"),
    			Id:            pulumi.String("string"),
    		},
    	},
    	ShardMode:        pulumi.String("string"),
    	ShardNumber:      pulumi.Float64(0),
    	DdmSchemaV1Id:    pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	PurgeRdsOnDelete: pulumi.Bool(false),
    	ShardUnit:        pulumi.Float64(0),
    	Timeouts: &opentelekomcloud.DdmSchemaV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var ddmSchemaV1Resource = new DdmSchemaV1("ddmSchemaV1Resource", DdmSchemaV1Args.builder()
        .instanceId("string")
        .rds(DdmSchemaV1RdArgs.builder()
            .adminPassword("string")
            .adminUsername("string")
            .id("string")
            .build())
        .shardMode("string")
        .shardNumber(0)
        .ddmSchemaV1Id("string")
        .name("string")
        .purgeRdsOnDelete(false)
        .shardUnit(0)
        .timeouts(DdmSchemaV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    ddm_schema_v1_resource = opentelekomcloud.DdmSchemaV1("ddmSchemaV1Resource",
        instance_id="string",
        rds=[{
            "admin_password": "string",
            "admin_username": "string",
            "id": "string",
        }],
        shard_mode="string",
        shard_number=0,
        ddm_schema_v1_id="string",
        name="string",
        purge_rds_on_delete=False,
        shard_unit=0,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const ddmSchemaV1Resource = new opentelekomcloud.DdmSchemaV1("ddmSchemaV1Resource", {
        instanceId: "string",
        rds: [{
            adminPassword: "string",
            adminUsername: "string",
            id: "string",
        }],
        shardMode: "string",
        shardNumber: 0,
        ddmSchemaV1Id: "string",
        name: "string",
        purgeRdsOnDelete: false,
        shardUnit: 0,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: opentelekomcloud:DdmSchemaV1
    properties:
        ddmSchemaV1Id: string
        instanceId: string
        name: string
        purgeRdsOnDelete: false
        rds:
            - adminPassword: string
              adminUsername: string
              id: string
        shardMode: string
        shardNumber: 0
        shardUnit: 0
        timeouts:
            create: string
            delete: string
            update: string
    

    DdmSchemaV1 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 DdmSchemaV1 resource accepts the following input properties:

    InstanceId string
    Specifies the DDM instance ID.
    Rds List<DdmSchemaV1Rd>
    Specifies the rds instance information. The structure is described below.
    ShardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    ShardNumber double
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    DdmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    PurgeRdsOnDelete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    ShardUnit double
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    Timeouts DdmSchemaV1Timeouts
    InstanceId string
    Specifies the DDM instance ID.
    Rds []DdmSchemaV1RdArgs
    Specifies the rds instance information. The structure is described below.
    ShardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    ShardNumber float64
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    DdmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    PurgeRdsOnDelete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    ShardUnit float64
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    Timeouts DdmSchemaV1TimeoutsArgs
    instanceId String
    Specifies the DDM instance ID.
    rds List<DdmSchemaV1Rd>
    Specifies the rds instance information. The structure is described below.
    shardMode String
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber Double
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ddmSchemaV1Id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete Boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    shardUnit Double
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    timeouts DdmSchemaV1Timeouts
    instanceId string
    Specifies the DDM instance ID.
    rds DdmSchemaV1Rd[]
    Specifies the rds instance information. The structure is described below.
    shardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber number
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ddmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    shardUnit number
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    timeouts DdmSchemaV1Timeouts
    instance_id str
    Specifies the DDM instance ID.
    rds Sequence[DdmSchemaV1RdArgs]
    Specifies the rds instance information. The structure is described below.
    shard_mode str
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shard_number float
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ddm_schema_v1_id str
    (String) ID of the RDS instance where the shard is located.
    name str
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purge_rds_on_delete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    shard_unit float
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    timeouts DdmSchemaV1TimeoutsArgs
    instanceId String
    Specifies the DDM instance ID.
    rds List<Property Map>
    Specifies the rds instance information. The structure is described below.
    shardMode String
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber Number
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ddmSchemaV1Id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete Boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    shardUnit Number
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    timeouts Property Map

    Outputs

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

    CreatedAt double
    (uint64) Indicates the creation time.
    DataVips List<string>
    (List) Indicates the IP address and port number for connecting to the schema.
    Databases List<DdmSchemaV1Database>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region of the DDM instance.
    Status string
    (String) Indicates the shard status.
    UpdatedAt double
    (uint64) Indicates the update time.
    UsedRds List<DdmSchemaV1UsedRd>
    (List) Indicates the associated RDS instances. The structure is described below.
    CreatedAt float64
    (uint64) Indicates the creation time.
    DataVips []string
    (List) Indicates the IP address and port number for connecting to the schema.
    Databases []DdmSchemaV1Database
    (List) Indicates the Sharding information of the schema. The structure is described below.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region of the DDM instance.
    Status string
    (String) Indicates the shard status.
    UpdatedAt float64
    (uint64) Indicates the update time.
    UsedRds []DdmSchemaV1UsedRd
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt Double
    (uint64) Indicates the creation time.
    dataVips List<String>
    (List) Indicates the IP address and port number for connecting to the schema.
    databases List<DdmSchemaV1Database>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region of the DDM instance.
    status String
    (String) Indicates the shard status.
    updatedAt Double
    (uint64) Indicates the update time.
    usedRds List<DdmSchemaV1UsedRd>
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt number
    (uint64) Indicates the creation time.
    dataVips string[]
    (List) Indicates the IP address and port number for connecting to the schema.
    databases DdmSchemaV1Database[]
    (List) Indicates the Sharding information of the schema. The structure is described below.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The region of the DDM instance.
    status string
    (String) Indicates the shard status.
    updatedAt number
    (uint64) Indicates the update time.
    usedRds DdmSchemaV1UsedRd[]
    (List) Indicates the associated RDS instances. The structure is described below.
    created_at float
    (uint64) Indicates the creation time.
    data_vips Sequence[str]
    (List) Indicates the IP address and port number for connecting to the schema.
    databases Sequence[DdmSchemaV1Database]
    (List) Indicates the Sharding information of the schema. The structure is described below.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The region of the DDM instance.
    status str
    (String) Indicates the shard status.
    updated_at float
    (uint64) Indicates the update time.
    used_rds Sequence[DdmSchemaV1UsedRd]
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt Number
    (uint64) Indicates the creation time.
    dataVips List<String>
    (List) Indicates the IP address and port number for connecting to the schema.
    databases List<Property Map>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region of the DDM instance.
    status String
    (String) Indicates the shard status.
    updatedAt Number
    (uint64) Indicates the update time.
    usedRds List<Property Map>
    (List) Indicates the associated RDS instances. The structure is described below.

    Look up Existing DdmSchemaV1 Resource

    Get an existing DdmSchemaV1 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?: DdmSchemaV1State, opts?: CustomResourceOptions): DdmSchemaV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[float] = None,
            data_vips: Optional[Sequence[str]] = None,
            databases: Optional[Sequence[DdmSchemaV1DatabaseArgs]] = None,
            ddm_schema_v1_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            purge_rds_on_delete: Optional[bool] = None,
            rds: Optional[Sequence[DdmSchemaV1RdArgs]] = None,
            region: Optional[str] = None,
            shard_mode: Optional[str] = None,
            shard_number: Optional[float] = None,
            shard_unit: Optional[float] = None,
            status: Optional[str] = None,
            timeouts: Optional[DdmSchemaV1TimeoutsArgs] = None,
            updated_at: Optional[float] = None,
            used_rds: Optional[Sequence[DdmSchemaV1UsedRdArgs]] = None) -> DdmSchemaV1
    func GetDdmSchemaV1(ctx *Context, name string, id IDInput, state *DdmSchemaV1State, opts ...ResourceOption) (*DdmSchemaV1, error)
    public static DdmSchemaV1 Get(string name, Input<string> id, DdmSchemaV1State? state, CustomResourceOptions? opts = null)
    public static DdmSchemaV1 get(String name, Output<String> id, DdmSchemaV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:DdmSchemaV1    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:
    CreatedAt double
    (uint64) Indicates the creation time.
    DataVips List<string>
    (List) Indicates the IP address and port number for connecting to the schema.
    Databases List<DdmSchemaV1Database>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    DdmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    InstanceId string
    Specifies the DDM instance ID.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    PurgeRdsOnDelete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    Rds List<DdmSchemaV1Rd>
    Specifies the rds instance information. The structure is described below.
    Region string
    The region of the DDM instance.
    ShardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    ShardNumber double
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ShardUnit double
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    Status string
    (String) Indicates the shard status.
    Timeouts DdmSchemaV1Timeouts
    UpdatedAt double
    (uint64) Indicates the update time.
    UsedRds List<DdmSchemaV1UsedRd>
    (List) Indicates the associated RDS instances. The structure is described below.
    CreatedAt float64
    (uint64) Indicates the creation time.
    DataVips []string
    (List) Indicates the IP address and port number for connecting to the schema.
    Databases []DdmSchemaV1DatabaseArgs
    (List) Indicates the Sharding information of the schema. The structure is described below.
    DdmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    InstanceId string
    Specifies the DDM instance ID.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    PurgeRdsOnDelete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    Rds []DdmSchemaV1RdArgs
    Specifies the rds instance information. The structure is described below.
    Region string
    The region of the DDM instance.
    ShardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    ShardNumber float64
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    ShardUnit float64
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    Status string
    (String) Indicates the shard status.
    Timeouts DdmSchemaV1TimeoutsArgs
    UpdatedAt float64
    (uint64) Indicates the update time.
    UsedRds []DdmSchemaV1UsedRdArgs
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt Double
    (uint64) Indicates the creation time.
    dataVips List<String>
    (List) Indicates the IP address and port number for connecting to the schema.
    databases List<DdmSchemaV1Database>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    ddmSchemaV1Id String
    (String) ID of the RDS instance where the shard is located.
    instanceId String
    Specifies the DDM instance ID.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete Boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    rds List<DdmSchemaV1Rd>
    Specifies the rds instance information. The structure is described below.
    region String
    The region of the DDM instance.
    shardMode String
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber Double
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    shardUnit Double
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    status String
    (String) Indicates the shard status.
    timeouts DdmSchemaV1Timeouts
    updatedAt Double
    (uint64) Indicates the update time.
    usedRds List<DdmSchemaV1UsedRd>
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt number
    (uint64) Indicates the creation time.
    dataVips string[]
    (List) Indicates the IP address and port number for connecting to the schema.
    databases DdmSchemaV1Database[]
    (List) Indicates the Sharding information of the schema. The structure is described below.
    ddmSchemaV1Id string
    (String) ID of the RDS instance where the shard is located.
    instanceId string
    Specifies the DDM instance ID.
    name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    rds DdmSchemaV1Rd[]
    Specifies the rds instance information. The structure is described below.
    region string
    The region of the DDM instance.
    shardMode string
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber number
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    shardUnit number
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    status string
    (String) Indicates the shard status.
    timeouts DdmSchemaV1Timeouts
    updatedAt number
    (uint64) Indicates the update time.
    usedRds DdmSchemaV1UsedRd[]
    (List) Indicates the associated RDS instances. The structure is described below.
    created_at float
    (uint64) Indicates the creation time.
    data_vips Sequence[str]
    (List) Indicates the IP address and port number for connecting to the schema.
    databases Sequence[DdmSchemaV1DatabaseArgs]
    (List) Indicates the Sharding information of the schema. The structure is described below.
    ddm_schema_v1_id str
    (String) ID of the RDS instance where the shard is located.
    instance_id str
    Specifies the DDM instance ID.
    name str
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purge_rds_on_delete bool
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    rds Sequence[DdmSchemaV1RdArgs]
    Specifies the rds instance information. The structure is described below.
    region str
    The region of the DDM instance.
    shard_mode str
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shard_number float
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    shard_unit float
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    status str
    (String) Indicates the shard status.
    timeouts DdmSchemaV1TimeoutsArgs
    updated_at float
    (uint64) Indicates the update time.
    used_rds Sequence[DdmSchemaV1UsedRdArgs]
    (List) Indicates the associated RDS instances. The structure is described below.
    createdAt Number
    (uint64) Indicates the creation time.
    dataVips List<String>
    (List) Indicates the IP address and port number for connecting to the schema.
    databases List<Property Map>
    (List) Indicates the Sharding information of the schema. The structure is described below.
    ddmSchemaV1Id String
    (String) ID of the RDS instance where the shard is located.
    instanceId String
    Specifies the DDM instance ID.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    purgeRdsOnDelete Boolean
    Specifies whether data stored on the associated DB instances is deleted. The value can be: true or false (default)
    rds List<Property Map>
    Specifies the rds instance information. The structure is described below.
    region String
    The region of the DDM instance.
    shardMode String
    Specifies the sharding mode of the schema. The values for this can be cluster or single. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode.
    shardNumber Number
    Specifies the number of shards in the same working mode. If shard_unit is not empty, the value is the product of shard_unit multiplied by the associated RDS instances. If shard_unit is left blank, the value must be greater than the number of associated RDS instances and less than or equal to the product of the associated RDS instances multiplied by 64.
    shardUnit Number
    Specifies the Number of shards per RDS instance. The value is 1 if the schema is unsharded. The value ranges from 1 to 64 if the schema is sharded.
    status String
    (String) Indicates the shard status.
    timeouts Property Map
    updatedAt Number
    (uint64) Indicates the update time.
    usedRds List<Property Map>
    (List) Indicates the associated RDS instances. The structure is described below.

    Supporting Types

    DdmSchemaV1Database, DdmSchemaV1DatabaseArgs

    CreatedAt double
    (uint64) Indicates the creation time.
    DbSlot double
    (String) Indicates the Number of shards.
    Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    RdsName string
    (String) Name of the RDS instance where the shard is located
    Status string
    (String) Indicates the shard status.
    UpdatedAt double
    (uint64) Indicates the update time.
    CreatedAt float64
    (uint64) Indicates the creation time.
    DbSlot float64
    (String) Indicates the Number of shards.
    Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    RdsName string
    (String) Name of the RDS instance where the shard is located
    Status string
    (String) Indicates the shard status.
    UpdatedAt float64
    (uint64) Indicates the update time.
    createdAt Double
    (uint64) Indicates the creation time.
    dbSlot Double
    (String) Indicates the Number of shards.
    id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    rdsName String
    (String) Name of the RDS instance where the shard is located
    status String
    (String) Indicates the shard status.
    updatedAt Double
    (uint64) Indicates the update time.
    createdAt number
    (uint64) Indicates the creation time.
    dbSlot number
    (String) Indicates the Number of shards.
    id string
    (String) ID of the RDS instance where the shard is located.
    name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    rdsName string
    (String) Name of the RDS instance where the shard is located
    status string
    (String) Indicates the shard status.
    updatedAt number
    (uint64) Indicates the update time.
    created_at float
    (uint64) Indicates the creation time.
    db_slot float
    (String) Indicates the Number of shards.
    id str
    (String) ID of the RDS instance where the shard is located.
    name str
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    rds_name str
    (String) Name of the RDS instance where the shard is located
    status str
    (String) Indicates the shard status.
    updated_at float
    (uint64) Indicates the update time.
    createdAt Number
    (uint64) Indicates the creation time.
    dbSlot Number
    (String) Indicates the Number of shards.
    id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    rdsName String
    (String) Name of the RDS instance where the shard is located
    status String
    (String) Indicates the shard status.
    updatedAt Number
    (uint64) Indicates the update time.

    DdmSchemaV1Rd, DdmSchemaV1RdArgs

    AdminPassword string

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    AdminUsername string
    Specifies the username of RDS admin.
    Id string
    Specifies the ID of the rds instance.
    AdminPassword string

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    AdminUsername string
    Specifies the username of RDS admin.
    Id string
    Specifies the ID of the rds instance.
    adminPassword String

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    adminUsername String
    Specifies the username of RDS admin.
    id String
    Specifies the ID of the rds instance.
    adminPassword string

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    adminUsername string
    Specifies the username of RDS admin.
    id string
    Specifies the ID of the rds instance.
    admin_password str

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    admin_username str
    Specifies the username of RDS admin.
    id str
    Specifies the ID of the rds instance.
    adminPassword String

    Specifies the password of RDS admin.

    NOTE: Currently DDM schema supports only MySQL RDS databases. Also the parameter, lower_case_table_names, must be set to 1 in RDS (on console, Table Name: Case insensitive).

    adminUsername String
    Specifies the username of RDS admin.
    id String
    Specifies the ID of the rds instance.

    DdmSchemaV1Timeouts, DdmSchemaV1TimeoutsArgs

    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

    DdmSchemaV1UsedRd, DdmSchemaV1UsedRdArgs

    Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    Status string
    (String) Indicates the shard status.
    Id string
    (String) ID of the RDS instance where the shard is located.
    Name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    Status string
    (String) Indicates the shard status.
    id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    status String
    (String) Indicates the shard status.
    id string
    (String) ID of the RDS instance where the shard is located.
    name string
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    status string
    (String) Indicates the shard status.
    id str
    (String) ID of the RDS instance where the shard is located.
    name str
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    status str
    (String) Indicates the shard status.
    id String
    (String) ID of the RDS instance where the shard is located.
    name String
    Specifies the DDM schema name. The DDM instance name of the same type is unique in the same tenant. It can be 2 to 48 characters long. It must start with a letter and it can only contain etters, digits, and underscores (_).
    status String
    (String) Indicates the shard status.

    Import

    DDMv1 Instance can be imported using the DDM instance ID, instance_id and DDM schema name, e.g.

    $ pulumi import opentelekomcloud:index/ddmSchemaV1:DdmSchemaV1 schema_1 b4cd6aeb0b7445d3bf271457c6941544in09/ddm_schema
    

    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