vkcs.DbClusterWithShards
Explore with Pulumi AI
Provides a db cluster with shards resource. This can be used to create, modify and delete db cluster with shards for clickhouse datastore.
Example Usage
Cluster with shards restored from backup
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DbClusterWithShards;
import com.pulumi.vkcs.DbClusterWithShardsArgs;
import com.pulumi.vkcs.inputs.DbClusterWithShardsDatastoreArgs;
import com.pulumi.vkcs.inputs.DbClusterWithShardsShardArgs;
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 dbClusterWithShards = new DbClusterWithShards("dbClusterWithShards", DbClusterWithShardsArgs.builder()
.datastore(DbClusterWithShardsDatastoreArgs.builder()
.type("clickhouse")
.version("24.3")
.build())
.shards(
DbClusterWithShardsShardArgs.builder()
.flavorId("9e931469-1490-489e-88af-29a289681c53")
.networks(DbClusterWithShardsShardNetworkArgs.builder()
.uuid("3ee9b184-3311-4d85-840b-7a9c48e7beac")
.build())
.shardId("shard0")
.size(2)
.volumeSize(10)
.volumeType("ceph-ssd")
.build(),
DbClusterWithShardsShardArgs.builder()
.flavorId("9e931469-1490-489e-88af-29a289681c53")
.networks(DbClusterWithShardsShardNetworkArgs.builder()
.uuid("3ee9b184-3311-4d85-840b-7a9c48e7beac")
.build())
.restorePoint(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.shardId("shard1")
.size(2)
.volumeSize(10)
.volumeType("ceph-ssd")
.build())
.build());
}
}
resources:
dbClusterWithShards:
type: vkcs:DbClusterWithShards
properties:
datastore:
type: clickhouse
version: '24.3'
shards:
- flavorId: 9e931469-1490-489e-88af-29a289681c53
networks:
- uuid: 3ee9b184-3311-4d85-840b-7a9c48e7beac
shardId: shard0
size: 2
volumeSize: 10
volumeType: ceph-ssd
- flavorId: 9e931469-1490-489e-88af-29a289681c53
networks:
- uuid: 3ee9b184-3311-4d85-840b-7a9c48e7beac
restorePoint:
- backupId: 7c8110f3-6f7f-4dc3-85c2-16feef9ddc2b
shardId: shard1
size: 2
volumeSize: 10
volumeType: ceph-ssd
Create DbClusterWithShards Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbClusterWithShards(name: string, args: DbClusterWithShardsArgs, opts?: CustomResourceOptions);
@overload
def DbClusterWithShards(resource_name: str,
args: DbClusterWithShardsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbClusterWithShards(resource_name: str,
opts: Optional[ResourceOptions] = None,
datastore: Optional[DbClusterWithShardsDatastoreArgs] = None,
shards: Optional[Sequence[DbClusterWithShardsShardArgs]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
db_cluster_with_shards_id: Optional[str] = None,
disk_autoexpand: Optional[DbClusterWithShardsDiskAutoexpandArgs] = None,
floating_ip_enabled: Optional[bool] = None,
keypair: Optional[str] = None,
capabilities: Optional[Sequence[DbClusterWithShardsCapabilityArgs]] = None,
configuration_id: Optional[str] = None,
restore_point: Optional[DbClusterWithShardsRestorePointArgs] = None,
root_enabled: Optional[bool] = None,
root_password: Optional[str] = None,
cloud_monitoring_enabled: Optional[bool] = None,
timeouts: Optional[DbClusterWithShardsTimeoutsArgs] = None,
vendor_options: Optional[DbClusterWithShardsVendorOptionsArgs] = None,
wal_disk_autoexpand: Optional[DbClusterWithShardsWalDiskAutoexpandArgs] = None)
func NewDbClusterWithShards(ctx *Context, name string, args DbClusterWithShardsArgs, opts ...ResourceOption) (*DbClusterWithShards, error)
public DbClusterWithShards(string name, DbClusterWithShardsArgs args, CustomResourceOptions? opts = null)
public DbClusterWithShards(String name, DbClusterWithShardsArgs args)
public DbClusterWithShards(String name, DbClusterWithShardsArgs args, CustomResourceOptions options)
type: vkcs:DbClusterWithShards
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 DbClusterWithShardsArgs
- 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 DbClusterWithShardsArgs
- 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 DbClusterWithShardsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbClusterWithShardsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbClusterWithShardsArgs
- 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 dbClusterWithShardsResource = new Vkcs.DbClusterWithShards("dbClusterWithShardsResource", new()
{
Datastore = new Vkcs.Inputs.DbClusterWithShardsDatastoreArgs
{
Type = "string",
Version = "string",
},
Shards = new[]
{
new Vkcs.Inputs.DbClusterWithShardsShardArgs
{
FlavorId = "string",
ShardId = "string",
Size = 0,
VolumeSize = 0,
VolumeType = "string",
AvailabilityZone = "string",
Instances = new[]
{
new Vkcs.Inputs.DbClusterWithShardsShardInstanceArgs
{
InstanceId = "string",
Ips = new[]
{
"string",
},
},
},
Networks = new[]
{
new Vkcs.Inputs.DbClusterWithShardsShardNetworkArgs
{
SecurityGroups = new[]
{
"string",
},
SubnetId = "string",
Uuid = "string",
},
},
ShrinkOptions = new[]
{
"string",
},
WalVolumes = new[]
{
new Vkcs.Inputs.DbClusterWithShardsShardWalVolumeArgs
{
Size = 0,
VolumeType = "string",
},
},
},
},
Name = "string",
Region = "string",
DbClusterWithShardsId = "string",
DiskAutoexpand = new Vkcs.Inputs.DbClusterWithShardsDiskAutoexpandArgs
{
Autoexpand = false,
MaxDiskSize = 0,
},
FloatingIpEnabled = false,
Keypair = "string",
Capabilities = new[]
{
new Vkcs.Inputs.DbClusterWithShardsCapabilityArgs
{
Name = "string",
Settings =
{
{ "string", "string" },
},
},
},
ConfigurationId = "string",
RestorePoint = new Vkcs.Inputs.DbClusterWithShardsRestorePointArgs
{
BackupId = "string",
},
RootEnabled = false,
RootPassword = "string",
CloudMonitoringEnabled = false,
Timeouts = new Vkcs.Inputs.DbClusterWithShardsTimeoutsArgs
{
Create = "string",
Delete = "string",
},
VendorOptions = new Vkcs.Inputs.DbClusterWithShardsVendorOptionsArgs
{
RestartConfirmed = false,
},
WalDiskAutoexpand = new Vkcs.Inputs.DbClusterWithShardsWalDiskAutoexpandArgs
{
Autoexpand = false,
MaxDiskSize = 0,
},
});
example, err := vkcs.NewDbClusterWithShards(ctx, "dbClusterWithShardsResource", &vkcs.DbClusterWithShardsArgs{
Datastore: &.DbClusterWithShardsDatastoreArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
Shards: .DbClusterWithShardsShardArray{
&.DbClusterWithShardsShardArgs{
FlavorId: pulumi.String("string"),
ShardId: pulumi.String("string"),
Size: pulumi.Float64(0),
VolumeSize: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
Instances: .DbClusterWithShardsShardInstanceArray{
&.DbClusterWithShardsShardInstanceArgs{
InstanceId: pulumi.String("string"),
Ips: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Networks: .DbClusterWithShardsShardNetworkArray{
&.DbClusterWithShardsShardNetworkArgs{
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
},
ShrinkOptions: pulumi.StringArray{
pulumi.String("string"),
},
WalVolumes: .DbClusterWithShardsShardWalVolumeArray{
&.DbClusterWithShardsShardWalVolumeArgs{
Size: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
Region: pulumi.String("string"),
DbClusterWithShardsId: pulumi.String("string"),
DiskAutoexpand: &.DbClusterWithShardsDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(false),
MaxDiskSize: pulumi.Float64(0),
},
FloatingIpEnabled: pulumi.Bool(false),
Keypair: pulumi.String("string"),
Capabilities: .DbClusterWithShardsCapabilityArray{
&.DbClusterWithShardsCapabilityArgs{
Name: pulumi.String("string"),
Settings: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
ConfigurationId: pulumi.String("string"),
RestorePoint: &.DbClusterWithShardsRestorePointArgs{
BackupId: pulumi.String("string"),
},
RootEnabled: pulumi.Bool(false),
RootPassword: pulumi.String("string"),
CloudMonitoringEnabled: pulumi.Bool(false),
Timeouts: &.DbClusterWithShardsTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VendorOptions: &.DbClusterWithShardsVendorOptionsArgs{
RestartConfirmed: pulumi.Bool(false),
},
WalDiskAutoexpand: &.DbClusterWithShardsWalDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(false),
MaxDiskSize: pulumi.Float64(0),
},
})
var dbClusterWithShardsResource = new DbClusterWithShards("dbClusterWithShardsResource", DbClusterWithShardsArgs.builder()
.datastore(DbClusterWithShardsDatastoreArgs.builder()
.type("string")
.version("string")
.build())
.shards(DbClusterWithShardsShardArgs.builder()
.flavorId("string")
.shardId("string")
.size(0)
.volumeSize(0)
.volumeType("string")
.availabilityZone("string")
.instances(DbClusterWithShardsShardInstanceArgs.builder()
.instanceId("string")
.ips("string")
.build())
.networks(DbClusterWithShardsShardNetworkArgs.builder()
.securityGroups("string")
.subnetId("string")
.uuid("string")
.build())
.shrinkOptions("string")
.walVolumes(DbClusterWithShardsShardWalVolumeArgs.builder()
.size(0)
.volumeType("string")
.build())
.build())
.name("string")
.region("string")
.dbClusterWithShardsId("string")
.diskAutoexpand(DbClusterWithShardsDiskAutoexpandArgs.builder()
.autoexpand(false)
.maxDiskSize(0)
.build())
.floatingIpEnabled(false)
.keypair("string")
.capabilities(DbClusterWithShardsCapabilityArgs.builder()
.name("string")
.settings(Map.of("string", "string"))
.build())
.configurationId("string")
.restorePoint(DbClusterWithShardsRestorePointArgs.builder()
.backupId("string")
.build())
.rootEnabled(false)
.rootPassword("string")
.cloudMonitoringEnabled(false)
.timeouts(DbClusterWithShardsTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vendorOptions(DbClusterWithShardsVendorOptionsArgs.builder()
.restartConfirmed(false)
.build())
.walDiskAutoexpand(DbClusterWithShardsWalDiskAutoexpandArgs.builder()
.autoexpand(false)
.maxDiskSize(0)
.build())
.build());
db_cluster_with_shards_resource = vkcs.DbClusterWithShards("dbClusterWithShardsResource",
datastore={
"type": "string",
"version": "string",
},
shards=[{
"flavor_id": "string",
"shard_id": "string",
"size": 0,
"volume_size": 0,
"volume_type": "string",
"availability_zone": "string",
"instances": [{
"instance_id": "string",
"ips": ["string"],
}],
"networks": [{
"security_groups": ["string"],
"subnet_id": "string",
"uuid": "string",
}],
"shrink_options": ["string"],
"wal_volumes": [{
"size": 0,
"volume_type": "string",
}],
}],
name="string",
region="string",
db_cluster_with_shards_id="string",
disk_autoexpand={
"autoexpand": False,
"max_disk_size": 0,
},
floating_ip_enabled=False,
keypair="string",
capabilities=[{
"name": "string",
"settings": {
"string": "string",
},
}],
configuration_id="string",
restore_point={
"backup_id": "string",
},
root_enabled=False,
root_password="string",
cloud_monitoring_enabled=False,
timeouts={
"create": "string",
"delete": "string",
},
vendor_options={
"restart_confirmed": False,
},
wal_disk_autoexpand={
"autoexpand": False,
"max_disk_size": 0,
})
const dbClusterWithShardsResource = new vkcs.DbClusterWithShards("dbClusterWithShardsResource", {
datastore: {
type: "string",
version: "string",
},
shards: [{
flavorId: "string",
shardId: "string",
size: 0,
volumeSize: 0,
volumeType: "string",
availabilityZone: "string",
instances: [{
instanceId: "string",
ips: ["string"],
}],
networks: [{
securityGroups: ["string"],
subnetId: "string",
uuid: "string",
}],
shrinkOptions: ["string"],
walVolumes: [{
size: 0,
volumeType: "string",
}],
}],
name: "string",
region: "string",
dbClusterWithShardsId: "string",
diskAutoexpand: {
autoexpand: false,
maxDiskSize: 0,
},
floatingIpEnabled: false,
keypair: "string",
capabilities: [{
name: "string",
settings: {
string: "string",
},
}],
configurationId: "string",
restorePoint: {
backupId: "string",
},
rootEnabled: false,
rootPassword: "string",
cloudMonitoringEnabled: false,
timeouts: {
create: "string",
"delete": "string",
},
vendorOptions: {
restartConfirmed: false,
},
walDiskAutoexpand: {
autoexpand: false,
maxDiskSize: 0,
},
});
type: vkcs:DbClusterWithShards
properties:
capabilities:
- name: string
settings:
string: string
cloudMonitoringEnabled: false
configurationId: string
datastore:
type: string
version: string
dbClusterWithShardsId: string
diskAutoexpand:
autoexpand: false
maxDiskSize: 0
floatingIpEnabled: false
keypair: string
name: string
region: string
restorePoint:
backupId: string
rootEnabled: false
rootPassword: string
shards:
- availabilityZone: string
flavorId: string
instances:
- instanceId: string
ips:
- string
networks:
- securityGroups:
- string
subnetId: string
uuid: string
shardId: string
shrinkOptions:
- string
size: 0
volumeSize: 0
volumeType: string
walVolumes:
- size: 0
volumeType: string
timeouts:
create: string
delete: string
vendorOptions:
restartConfirmed: false
walDiskAutoexpand:
autoexpand: false
maxDiskSize: 0
DbClusterWithShards 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 DbClusterWithShards resource accepts the following input properties:
- Datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- List<Db
Cluster With Shards Shard> - required → Object that represents cluster shard. There can be several instances of this object.
- Capabilities
List<Db
Cluster With Shards Capability> - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- Configuration
Id string - optional string → The id of the configuration attached to cluster.
- Db
Cluster stringWith Shards Id - string → ID of the resource.
- Disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- Floating
Ip boolEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- Keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster.
- Region string
- optional string → Region to create resource in.
- Restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- Root
Enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- Root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- Timeouts
Db
Cluster With Shards Timeouts - Vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- Datastore
Db
Cluster With Shards Datastore Args - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- []Db
Cluster With Shards Shard Args - required → Object that represents cluster shard. There can be several instances of this object.
- Capabilities
[]Db
Cluster With Shards Capability Args - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- Configuration
Id string - optional string → The id of the configuration attached to cluster.
- Db
Cluster stringWith Shards Id - string → ID of the resource.
- Disk
Autoexpand DbCluster With Shards Disk Autoexpand Args - optional → Object that represents autoresize properties of the cluster.
- Floating
Ip boolEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- Keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster.
- Region string
- optional string → Region to create resource in.
- Restore
Point DbCluster With Shards Restore Point Args - optional → Object that represents backup to restore instance from.New since v0.1.4.
- Root
Enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- Root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- Timeouts
Db
Cluster With Shards Timeouts Args - Vendor
Options DbCluster With Shards Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of wal volume of the cluster.
- datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- List<Db
Cluster With Shards Shard> - required → Object that represents cluster shard. There can be several instances of this object.
- capabilities
List<Db
Cluster With Shards Capability> - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id String - optional string → The id of the configuration attached to cluster.
- db
Cluster StringWith Shards Id - string → ID of the resource.
- disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- floating
Ip BooleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair String
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name String
- required string → The name of the cluster. Changing this creates a new cluster.
- region String
- optional string → Region to create resource in.
- restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled Boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password String - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- timeouts
Db
Cluster With Shards Timeouts - vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- Db
Cluster With Shards Shard[] - required → Object that represents cluster shard. There can be several instances of this object.
- capabilities
Db
Cluster With Shards Capability[] - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring booleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id string - optional string → The id of the configuration attached to cluster.
- db
Cluster stringWith Shards Id - string → ID of the resource.
- disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- floating
Ip booleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name string
- required string → The name of the cluster. Changing this creates a new cluster.
- region string
- optional string → Region to create resource in.
- restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- timeouts
Db
Cluster With Shards Timeouts - vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- datastore
Db
Cluster With Shards Datastore Args - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- Sequence[Db
Cluster With Shards Shard Args] - required → Object that represents cluster shard. There can be several instances of this object.
- capabilities
Sequence[Db
Cluster With Shards Capability Args] - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud_
monitoring_ boolenabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration_
id str - optional string → The id of the configuration attached to cluster.
- db_
cluster_ strwith_ shards_ id - string → ID of the resource.
- disk_
autoexpand DbCluster With Shards Disk Autoexpand Args - optional → Object that represents autoresize properties of the cluster.
- floating_
ip_ boolenabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair str
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name str
- required string → The name of the cluster. Changing this creates a new cluster.
- region str
- optional string → Region to create resource in.
- restore_
point DbCluster With Shards Restore Point Args - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root_
enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- root_
password str - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- timeouts
Db
Cluster With Shards Timeouts Args - vendor_
options DbCluster With Shards Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal_
disk_ Dbautoexpand Cluster With Shards Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of wal volume of the cluster.
- datastore Property Map
- required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- List<Property Map>
- required → Object that represents cluster shard. There can be several instances of this object.
- capabilities List<Property Map>
- optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id String - optional string → The id of the configuration attached to cluster.
- db
Cluster StringWith Shards Id - string → ID of the resource.
- disk
Autoexpand Property Map - optional → Object that represents autoresize properties of the cluster.
- floating
Ip BooleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair String
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name String
- required string → The name of the cluster. Changing this creates a new cluster.
- region String
- optional string → Region to create resource in.
- restore
Point Property Map - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled Boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password String - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- timeouts Property Map
- vendor
Options Property Map - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk Property MapAutoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbClusterWithShards resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DbClusterWithShards Resource
Get an existing DbClusterWithShards 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?: DbClusterWithShardsState, opts?: CustomResourceOptions): DbClusterWithShards
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capabilities: Optional[Sequence[DbClusterWithShardsCapabilityArgs]] = None,
cloud_monitoring_enabled: Optional[bool] = None,
configuration_id: Optional[str] = None,
datastore: Optional[DbClusterWithShardsDatastoreArgs] = None,
db_cluster_with_shards_id: Optional[str] = None,
disk_autoexpand: Optional[DbClusterWithShardsDiskAutoexpandArgs] = None,
floating_ip_enabled: Optional[bool] = None,
keypair: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
restore_point: Optional[DbClusterWithShardsRestorePointArgs] = None,
root_enabled: Optional[bool] = None,
root_password: Optional[str] = None,
shards: Optional[Sequence[DbClusterWithShardsShardArgs]] = None,
timeouts: Optional[DbClusterWithShardsTimeoutsArgs] = None,
vendor_options: Optional[DbClusterWithShardsVendorOptionsArgs] = None,
wal_disk_autoexpand: Optional[DbClusterWithShardsWalDiskAutoexpandArgs] = None) -> DbClusterWithShards
func GetDbClusterWithShards(ctx *Context, name string, id IDInput, state *DbClusterWithShardsState, opts ...ResourceOption) (*DbClusterWithShards, error)
public static DbClusterWithShards Get(string name, Input<string> id, DbClusterWithShardsState? state, CustomResourceOptions? opts = null)
public static DbClusterWithShards get(String name, Output<String> id, DbClusterWithShardsState state, CustomResourceOptions options)
resources: _: type: vkcs:DbClusterWithShards 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.
- Capabilities
List<Db
Cluster With Shards Capability> - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- Configuration
Id string - optional string → The id of the configuration attached to cluster.
- Datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- Db
Cluster stringWith Shards Id - string → ID of the resource.
- Disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- Floating
Ip boolEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- Keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster.
- Region string
- optional string → Region to create resource in.
- Restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- Root
Enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- Root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- Shards
List<Db
Cluster With Shards Shard> - required → Object that represents cluster shard. There can be several instances of this object.
- Timeouts
Db
Cluster With Shards Timeouts - Vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- Capabilities
[]Db
Cluster With Shards Capability Args - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- Configuration
Id string - optional string → The id of the configuration attached to cluster.
- Datastore
Db
Cluster With Shards Datastore Args - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- Db
Cluster stringWith Shards Id - string → ID of the resource.
- Disk
Autoexpand DbCluster With Shards Disk Autoexpand Args - optional → Object that represents autoresize properties of the cluster.
- Floating
Ip boolEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- Keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- Name string
- required string → The name of the cluster. Changing this creates a new cluster.
- Region string
- optional string → Region to create resource in.
- Restore
Point DbCluster With Shards Restore Point Args - optional → Object that represents backup to restore instance from.New since v0.1.4.
- Root
Enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- Root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- Shards
[]Db
Cluster With Shards Shard Args - required → Object that represents cluster shard. There can be several instances of this object.
- Timeouts
Db
Cluster With Shards Timeouts Args - Vendor
Options DbCluster With Shards Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of wal volume of the cluster.
- capabilities
List<Db
Cluster With Shards Capability> - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id String - optional string → The id of the configuration attached to cluster.
- datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- db
Cluster StringWith Shards Id - string → ID of the resource.
- disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- floating
Ip BooleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair String
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name String
- required string → The name of the cluster. Changing this creates a new cluster.
- region String
- optional string → Region to create resource in.
- restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled Boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password String - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- shards
List<Db
Cluster With Shards Shard> - required → Object that represents cluster shard. There can be several instances of this object.
- timeouts
Db
Cluster With Shards Timeouts - vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- capabilities
Db
Cluster With Shards Capability[] - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring booleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id string - optional string → The id of the configuration attached to cluster.
- datastore
Db
Cluster With Shards Datastore - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- db
Cluster stringWith Shards Id - string → ID of the resource.
- disk
Autoexpand DbCluster With Shards Disk Autoexpand - optional → Object that represents autoresize properties of the cluster.
- floating
Ip booleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair string
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name string
- required string → The name of the cluster. Changing this creates a new cluster.
- region string
- optional string → Region to create resource in.
- restore
Point DbCluster With Shards Restore Point - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password string - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- shards
Db
Cluster With Shards Shard[] - required → Object that represents cluster shard. There can be several instances of this object.
- timeouts
Db
Cluster With Shards Timeouts - vendor
Options DbCluster With Shards Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Cluster With Shards Wal Disk Autoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
- capabilities
Sequence[Db
Cluster With Shards Capability Args] - optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud_
monitoring_ boolenabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration_
id str - optional string → The id of the configuration attached to cluster.
- datastore
Db
Cluster With Shards Datastore Args - required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- db_
cluster_ strwith_ shards_ id - string → ID of the resource.
- disk_
autoexpand DbCluster With Shards Disk Autoexpand Args - optional → Object that represents autoresize properties of the cluster.
- floating_
ip_ boolenabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair str
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name str
- required string → The name of the cluster. Changing this creates a new cluster.
- region str
- optional string → Region to create resource in.
- restore_
point DbCluster With Shards Restore Point Args - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root_
enabled bool - optional boolean → Indicates whether root user is enabled for the cluster.
- root_
password str - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- shards
Sequence[Db
Cluster With Shards Shard Args] - required → Object that represents cluster shard. There can be several instances of this object.
- timeouts
Db
Cluster With Shards Timeouts Args - vendor_
options DbCluster With Shards Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal_
disk_ Dbautoexpand Cluster With Shards Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of wal volume of the cluster.
- capabilities List<Property Map>
- optional → Object that represents capability applied to cluster. There can be several instances of this object.
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the cluster. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
- configuration
Id String - optional string → The id of the configuration attached to cluster.
- datastore Property Map
- required → Object that represents datastore of the cluster. Changing this creates a new cluster.
- db
Cluster StringWith Shards Id - string → ID of the resource.
- disk
Autoexpand Property Map - optional → Object that represents autoresize properties of the cluster.
- floating
Ip BooleanEnabled - optional boolean → Boolean field that indicates whether floating ip is created for cluster. Changing this creates a new cluster.
- keypair String
- optional string → Name of the keypair to be attached to cluster. Changing this creates a new cluster.
- name String
- required string → The name of the cluster. Changing this creates a new cluster.
- region String
- optional string → Region to create resource in.
- restore
Point Property Map - optional → Object that represents backup to restore instance from.New since v0.1.4.
- root
Enabled Boolean - optional boolean → Indicates whether root user is enabled for the cluster.
- root
Password String - optional sensitive string → Password for the root user of the cluster. When enabling root, password is autogenerated, use this field to obtain it.
- shards List<Property Map>
- required → Object that represents cluster shard. There can be several instances of this object.
- timeouts Property Map
- vendor
Options Property Map - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk Property MapAutoexpand - optional → Object that represents autoresize properties of wal volume of the cluster.
Supporting Types
DbClusterWithShardsCapability, DbClusterWithShardsCapabilityArgs
DbClusterWithShardsDatastore, DbClusterWithShardsDatastoreArgs
DbClusterWithShardsDiskAutoexpand, DbClusterWithShardsDiskAutoexpandArgs
- Autoexpand bool
- optional boolean → Indicates whether autoresize is enabled.
- Max
Disk doubleSize - optional number → Maximum disk size for autoresize.
- Autoexpand bool
- optional boolean → Indicates whether autoresize is enabled.
- Max
Disk float64Size - optional number → Maximum disk size for autoresize.
- autoexpand Boolean
- optional boolean → Indicates whether autoresize is enabled.
- max
Disk DoubleSize - optional number → Maximum disk size for autoresize.
- autoexpand boolean
- optional boolean → Indicates whether autoresize is enabled.
- max
Disk numberSize - optional number → Maximum disk size for autoresize.
- autoexpand bool
- optional boolean → Indicates whether autoresize is enabled.
- max_
disk_ floatsize - optional number → Maximum disk size for autoresize.
- autoexpand Boolean
- optional boolean → Indicates whether autoresize is enabled.
- max
Disk NumberSize - optional number → Maximum disk size for autoresize.
DbClusterWithShardsRestorePoint, DbClusterWithShardsRestorePointArgs
- Backup
Id string - required string → ID of the backup.
- Backup
Id string - required string → ID of the backup.
- backup
Id String - required string → ID of the backup.
- backup
Id string - required string → ID of the backup.
- backup_
id str - required string → ID of the backup.
- backup
Id String - required string → ID of the backup.
DbClusterWithShardsShard, DbClusterWithShardsShardArgs
- Flavor
Id string - required string → The ID of flavor for the cluster shard.
- string
- required string → The ID of the shard. Changing this creates a new cluster.
- Size double
- required number → The number of instances in the cluster shard.
- Volume
Size double - required number → Size of the cluster shard instance volume.
- Volume
Type string - required string → The type of the cluster shard instance volume.
- Availability
Zone string - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- Instances
List<Db
Cluster With Shards Shard Instance> - object → Shard instances info.New since v0.1.15.
- Networks
List<Db
Cluster With Shards Shard Network> - optional
- Shrink
Options List<string> - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- Wal
Volumes List<DbCluster With Shards Shard Wal Volume> - optional → Object that represents wal volume of the cluster.
- Flavor
Id string - required string → The ID of flavor for the cluster shard.
- string
- required string → The ID of the shard. Changing this creates a new cluster.
- Size float64
- required number → The number of instances in the cluster shard.
- Volume
Size float64 - required number → Size of the cluster shard instance volume.
- Volume
Type string - required string → The type of the cluster shard instance volume.
- Availability
Zone string - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- Instances
[]Db
Cluster With Shards Shard Instance - object → Shard instances info.New since v0.1.15.
- Networks
[]Db
Cluster With Shards Shard Network - optional
- Shrink
Options []string - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- Wal
Volumes []DbCluster With Shards Shard Wal Volume - optional → Object that represents wal volume of the cluster.
- flavor
Id String - required string → The ID of flavor for the cluster shard.
- String
- required string → The ID of the shard. Changing this creates a new cluster.
- size Double
- required number → The number of instances in the cluster shard.
- volume
Size Double - required number → Size of the cluster shard instance volume.
- volume
Type String - required string → The type of the cluster shard instance volume.
- availability
Zone String - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- instances
List<Db
Cluster With Shards Shard Instance> - object → Shard instances info.New since v0.1.15.
- networks
List<Db
Cluster With Shards Shard Network> - optional
- shrink
Options List<String> - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- wal
Volumes List<DbCluster With Shards Shard Wal Volume> - optional → Object that represents wal volume of the cluster.
- flavor
Id string - required string → The ID of flavor for the cluster shard.
- string
- required string → The ID of the shard. Changing this creates a new cluster.
- size number
- required number → The number of instances in the cluster shard.
- volume
Size number - required number → Size of the cluster shard instance volume.
- volume
Type string - required string → The type of the cluster shard instance volume.
- availability
Zone string - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- instances
Db
Cluster With Shards Shard Instance[] - object → Shard instances info.New since v0.1.15.
- networks
Db
Cluster With Shards Shard Network[] - optional
- shrink
Options string[] - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- wal
Volumes DbCluster With Shards Shard Wal Volume[] - optional → Object that represents wal volume of the cluster.
- flavor_
id str - required string → The ID of flavor for the cluster shard.
- str
- required string → The ID of the shard. Changing this creates a new cluster.
- size float
- required number → The number of instances in the cluster shard.
- volume_
size float - required number → Size of the cluster shard instance volume.
- volume_
type str - required string → The type of the cluster shard instance volume.
- availability_
zone str - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- instances
Sequence[Db
Cluster With Shards Shard Instance] - object → Shard instances info.New since v0.1.15.
- networks
Sequence[Db
Cluster With Shards Shard Network] - optional
- shrink_
options Sequence[str] - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- wal_
volumes Sequence[DbCluster With Shards Shard Wal Volume] - optional → Object that represents wal volume of the cluster.
- flavor
Id String - required string → The ID of flavor for the cluster shard.
- String
- required string → The ID of the shard. Changing this creates a new cluster.
- size Number
- required number → The number of instances in the cluster shard.
- volume
Size Number - required number → Size of the cluster shard instance volume.
- volume
Type String - required string → The type of the cluster shard instance volume.
- availability
Zone String - optional string → The name of the availability zone of the cluster shard. Changing this creates a new cluster.
- instances List<Property Map>
- object → Shard instances info.New since v0.1.15.
- networks List<Property Map>
- optional
- shrink
Options List<String> - optional string → Used only for shrinking cluster. List of IDs of instances that should remain after shrink. If no options are supplied, shrink operation will choose first non-leader instance to delete.
- wal
Volumes List<Property Map> - optional → Object that represents wal volume of the cluster.
DbClusterWithShardsShardInstance, DbClusterWithShardsShardInstanceArgs
- Instance
Id string - Ips List<string>
- Instance
Id string - Ips []string
- instance
Id String - ips List<String>
- instance
Id string - ips string[]
- instance_
id str - ips Sequence[str]
- instance
Id String - ips List<String>
DbClusterWithShardsShardNetwork, DbClusterWithShardsShardNetworkArgs
- Port string
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Security
Groups List<string> - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- Subnet
Id string - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- Uuid string
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
- Port string
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- Security
Groups []string - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- Subnet
Id string - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- Uuid string
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
- port String
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- security
Groups List<String> - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- subnet
Id String - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- uuid String
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
- port string
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- security
Groups string[] - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- subnet
Id string - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- uuid string
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
- port str
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- security_
groups Sequence[str] - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- subnet_
id str - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- uuid str
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
- port String
- optional deprecated string → The port id of the network. Changing this creates a new cluster. Deprecated This argument is deprecated, please do not use it.
- security
Groups List<String> - optional set of string → An array of one or more security group IDs to associate with the shard instances. Changing this creates a new cluster.New since v0.2.0.
- subnet
Id String - optional string → The id of the subnet. Changing this creates a new cluster.New since v0.1.15.
- uuid String
- optional string → The id of the network. Changing this creates a new cluster. Note: Although this argument is marked as optional, it is actually required at the moment. Not setting a value for it may cause an error.
DbClusterWithShardsShardWalVolume, DbClusterWithShardsShardWalVolumeArgs
- Size double
- required number → Size of the instance wal volume.
- Volume
Type string - required string → The type of the cluster wal volume.
- Size float64
- required number → Size of the instance wal volume.
- Volume
Type string - required string → The type of the cluster wal volume.
- size Double
- required number → Size of the instance wal volume.
- volume
Type String - required string → The type of the cluster wal volume.
- size number
- required number → Size of the instance wal volume.
- volume
Type string - required string → The type of the cluster wal volume.
- size float
- required number → Size of the instance wal volume.
- volume_
type str - required string → The type of the cluster wal volume.
- size Number
- required number → Size of the instance wal volume.
- volume
Type String - required string → The type of the cluster wal volume.
DbClusterWithShardsTimeouts, DbClusterWithShardsTimeoutsArgs
DbClusterWithShardsVendorOptions, DbClusterWithShardsVendorOptionsArgs
- Restart
Confirmed bool - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
- Restart
Confirmed bool - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
- restart
Confirmed Boolean - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
- restart
Confirmed boolean - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
- restart_
confirmed bool - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
- restart
Confirmed Boolean - optional boolean → Boolean to confirm autorestart of the cluster's instances if it is required to apply configuration group changes.
DbClusterWithShardsWalDiskAutoexpand, DbClusterWithShardsWalDiskAutoexpandArgs
- Autoexpand bool
- optional boolean → Indicates whether wal volume autoresize is enabled.
- Max
Disk doubleSize - optional number → Maximum disk size for wal volume autoresize.
- Autoexpand bool
- optional boolean → Indicates whether wal volume autoresize is enabled.
- Max
Disk float64Size - optional number → Maximum disk size for wal volume autoresize.
- autoexpand Boolean
- optional boolean → Indicates whether wal volume autoresize is enabled.
- max
Disk DoubleSize - optional number → Maximum disk size for wal volume autoresize.
- autoexpand boolean
- optional boolean → Indicates whether wal volume autoresize is enabled.
- max
Disk numberSize - optional number → Maximum disk size for wal volume autoresize.
- autoexpand bool
- optional boolean → Indicates whether wal volume autoresize is enabled.
- max_
disk_ floatsize - optional number → Maximum disk size for wal volume autoresize.
- autoexpand Boolean
- optional boolean → Indicates whether wal volume autoresize is enabled.
- max
Disk NumberSize - optional number → Maximum disk size for wal volume autoresize.
Import
Clusters can be imported using the id
, e.g.
$ pulumi import vkcs:index/dbClusterWithShards:DbClusterWithShards mycluster 708a74a1-6b00-4a96-938c-28a8a6d98590
After the import you can use terraform show to view imported fields and write their values to your .tf file.
You should at least add following fields to your .tf file:
name, datastore
, and for each shard add: shard_id, size, flavor_id, volume_size, volume_type
Please, use "IMPORTED"
as value for volume_type
field.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.