opentelekomcloud.DdmSchemaV1
Explore with Pulumi AI
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:
- Instance
Id string - Specifies the DDM instance ID.
- Rds
List<Ddm
Schema V1Rd> - Specifies the rds instance information. The structure is described below.
- string
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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. - Ddm
Schema stringV1Id - (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 (_).
- Purge
Rds boolOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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
Ddm
Schema V1Timeouts
- Instance
Id string - Specifies the DDM instance ID.
- Rds
[]Ddm
Schema V1Rd Args - Specifies the rds instance information. The structure is described below.
- string
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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. - Ddm
Schema stringV1Id - (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 (_).
- Purge
Rds boolOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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
Ddm
Schema V1Timeouts Args
- instance
Id String - Specifies the DDM instance ID.
- rds
List<Ddm
Schema V1Rd> - Specifies the rds instance information. The structure is described below.
- String
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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. - ddm
Schema StringV1Id - (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 (_).
- purge
Rds BooleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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
Ddm
Schema V1Timeouts
- instance
Id string - Specifies the DDM instance ID.
- rds
Ddm
Schema V1Rd[] - Specifies the rds instance information. The structure is described below.
- string
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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. - ddm
Schema stringV1Id - (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 (_).
- purge
Rds booleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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
Ddm
Schema V1Timeouts
- instance_
id str - Specifies the DDM instance ID.
- rds
Sequence[Ddm
Schema V1Rd Args] - Specifies the rds instance information. The structure is described below.
- str
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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_ strv1_ id - (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_ boolon_ delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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
Ddm
Schema V1Timeouts Args
- instance
Id String - Specifies the DDM instance ID.
- rds List<Property Map>
- Specifies the rds instance information. The structure is described below.
- String
- Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - 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. - ddm
Schema StringV1Id - (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 (_).
- purge
Rds BooleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - 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:
- Created
At double - (uint64) Indicates the creation time.
- Data
Vips List<string> - (List) Indicates the IP address and port number for connecting to the schema.
- Databases
List<Ddm
Schema V1Database> - (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.
- Updated
At double - (uint64) Indicates the update time.
- Used
Rds List<DdmSchema V1Used Rd> - (List) Indicates the associated RDS instances. The structure is described below.
- Created
At float64 - (uint64) Indicates the creation time.
- Data
Vips []string - (List) Indicates the IP address and port number for connecting to the schema.
- Databases
[]Ddm
Schema V1Database - (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.
- Updated
At float64 - (uint64) Indicates the update time.
- Used
Rds []DdmSchema V1Used Rd - (List) Indicates the associated RDS instances. The structure is described below.
- created
At Double - (uint64) Indicates the creation time.
- data
Vips List<String> - (List) Indicates the IP address and port number for connecting to the schema.
- databases
List<Ddm
Schema V1Database> - (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.
- updated
At Double - (uint64) Indicates the update time.
- used
Rds List<DdmSchema V1Used Rd> - (List) Indicates the associated RDS instances. The structure is described below.
- created
At number - (uint64) Indicates the creation time.
- data
Vips string[] - (List) Indicates the IP address and port number for connecting to the schema.
- databases
Ddm
Schema V1Database[] - (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.
- updated
At number - (uint64) Indicates the update time.
- used
Rds DdmSchema V1Used Rd[] - (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[Ddm
Schema V1Database] - (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[DdmSchema V1Used Rd] - (List) Indicates the associated RDS instances. The structure is described below.
- created
At Number - (uint64) Indicates the creation time.
- data
Vips 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.
- updated
At Number - (uint64) Indicates the update time.
- used
Rds 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.
- Created
At double - (uint64) Indicates the creation time.
- Data
Vips List<string> - (List) Indicates the IP address and port number for connecting to the schema.
- Databases
List<Ddm
Schema V1Database> - (List) Indicates the Sharding information of the schema. The structure is described below.
- Ddm
Schema stringV1Id - (String) ID of the RDS instance where the shard is located.
- Instance
Id 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 (_).
- Purge
Rds boolOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - Rds
List<Ddm
Schema V1Rd> - Specifies the rds instance information. The structure is described below.
- Region string
- The region of the DDM instance.
- Shard
Mode string - Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - Shard
Number 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. - Shard
Unit 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
Ddm
Schema V1Timeouts - Updated
At double - (uint64) Indicates the update time.
- Used
Rds List<DdmSchema V1Used Rd> - (List) Indicates the associated RDS instances. The structure is described below.
- Created
At float64 - (uint64) Indicates the creation time.
- Data
Vips []string - (List) Indicates the IP address and port number for connecting to the schema.
- Databases
[]Ddm
Schema V1Database Args - (List) Indicates the Sharding information of the schema. The structure is described below.
- Ddm
Schema stringV1Id - (String) ID of the RDS instance where the shard is located.
- Instance
Id 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 (_).
- Purge
Rds boolOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - Rds
[]Ddm
Schema V1Rd Args - Specifies the rds instance information. The structure is described below.
- Region string
- The region of the DDM instance.
- Shard
Mode string - Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - Shard
Number 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. - Shard
Unit 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
Ddm
Schema V1Timeouts Args - Updated
At float64 - (uint64) Indicates the update time.
- Used
Rds []DdmSchema V1Used Rd Args - (List) Indicates the associated RDS instances. The structure is described below.
- created
At Double - (uint64) Indicates the creation time.
- data
Vips List<String> - (List) Indicates the IP address and port number for connecting to the schema.
- databases
List<Ddm
Schema V1Database> - (List) Indicates the Sharding information of the schema. The structure is described below.
- ddm
Schema StringV1Id - (String) ID of the RDS instance where the shard is located.
- instance
Id 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 (_).
- purge
Rds BooleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - rds
List<Ddm
Schema V1Rd> - Specifies the rds instance information. The structure is described below.
- region String
- The region of the DDM instance.
- shard
Mode String - Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - shard
Number 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. - shard
Unit 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
Ddm
Schema V1Timeouts - updated
At Double - (uint64) Indicates the update time.
- used
Rds List<DdmSchema V1Used Rd> - (List) Indicates the associated RDS instances. The structure is described below.
- created
At number - (uint64) Indicates the creation time.
- data
Vips string[] - (List) Indicates the IP address and port number for connecting to the schema.
- databases
Ddm
Schema V1Database[] - (List) Indicates the Sharding information of the schema. The structure is described below.
- ddm
Schema stringV1Id - (String) ID of the RDS instance where the shard is located.
- instance
Id 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 (_).
- purge
Rds booleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - rds
Ddm
Schema V1Rd[] - Specifies the rds instance information. The structure is described below.
- region string
- The region of the DDM instance.
- shard
Mode string - Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - shard
Number 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. - shard
Unit 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
Ddm
Schema V1Timeouts - updated
At number - (uint64) Indicates the update time.
- used
Rds DdmSchema V1Used Rd[] - (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[Ddm
Schema V1Database Args] - (List) Indicates the Sharding information of the schema. The structure is described below.
- ddm_
schema_ strv1_ id - (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_ boolon_ delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - rds
Sequence[Ddm
Schema V1Rd Args] - 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
orsingle
. 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
Ddm
Schema V1Timeouts Args - updated_
at float - (uint64) Indicates the update time.
- used_
rds Sequence[DdmSchema V1Used Rd Args] - (List) Indicates the associated RDS instances. The structure is described below.
- created
At Number - (uint64) Indicates the creation time.
- data
Vips 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.
- ddm
Schema StringV1Id - (String) ID of the RDS instance where the shard is located.
- instance
Id 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 (_).
- purge
Rds BooleanOn Delete - Specifies whether data stored on the associated DB instances is deleted. The value can be:
true
orfalse
(default) - rds List<Property Map>
- Specifies the rds instance information. The structure is described below.
- region String
- The region of the DDM instance.
- shard
Mode String - Specifies the sharding mode of the schema. The values for this can be
cluster
orsingle
. Cluster indicates that the schema is in sharded mode. Single indicates that the schema is in unsharded mode. - shard
Number 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. - shard
Unit 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
- updated
At Number - (uint64) Indicates the update time.
- used
Rds List<Property Map> - (List) Indicates the associated RDS instances. The structure is described below.
Supporting Types
DdmSchemaV1Database, DdmSchemaV1DatabaseArgs
- Created
At double - (uint64) Indicates the creation time.
- Db
Slot 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 (_).
- Rds
Name string - (String) Name of the RDS instance where the shard is located
- Status string
- (String) Indicates the shard status.
- Updated
At double - (uint64) Indicates the update time.
- Created
At float64 - (uint64) Indicates the creation time.
- Db
Slot 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 (_).
- Rds
Name string - (String) Name of the RDS instance where the shard is located
- Status string
- (String) Indicates the shard status.
- Updated
At float64 - (uint64) Indicates the update time.
- created
At Double - (uint64) Indicates the creation time.
- db
Slot 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 (_).
- rds
Name String - (String) Name of the RDS instance where the shard is located
- status String
- (String) Indicates the shard status.
- updated
At Double - (uint64) Indicates the update time.
- created
At number - (uint64) Indicates the creation time.
- db
Slot 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 (_).
- rds
Name string - (String) Name of the RDS instance where the shard is located
- status string
- (String) Indicates the shard status.
- updated
At 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.
- created
At Number - (uint64) Indicates the creation time.
- db
Slot 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 (_).
- rds
Name String - (String) Name of the RDS instance where the shard is located
- status String
- (String) Indicates the shard status.
- updated
At Number - (uint64) Indicates the update time.
DdmSchemaV1Rd, DdmSchemaV1RdArgs
- Admin
Password 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).- Admin
Username string - Specifies the username of RDS admin.
- Id string
- Specifies the ID of the rds instance.
- Admin
Password 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).- Admin
Username string - Specifies the username of RDS admin.
- Id string
- Specifies the ID of the rds instance.
- admin
Password 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).- admin
Username String - Specifies the username of RDS admin.
- id String
- Specifies the ID of the rds instance.
- admin
Password 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).- admin
Username 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.
- admin
Password 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).- admin
Username String - Specifies the username of RDS admin.
- id String
- Specifies the ID of the rds instance.
DdmSchemaV1Timeouts, DdmSchemaV1TimeoutsArgs
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.