vkcs.DbInstance
Explore with Pulumi AI
Provides a db instance resource. This can be used to create, modify and delete db instance.
Example Usage
Basic instance
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const mysql = new vkcs.DbInstance("mysql", {
availabilityZone: "GZ1",
flavorId: data.vkcs_compute_flavor.basic.id,
datastore: {
type: "mysql",
version: "8.0",
},
networks: [{
uuid: vkcs_networking_network.db.id,
securityGroups: [vkcs_networking_secgroup.admin.id],
}],
size: 8,
volumeType: "ceph-ssd",
diskAutoexpand: {
autoexpand: true,
maxDiskSize: 1000,
},
configurationId: vkcs_db_config_group.mysql_80.id,
capabilities: [{
name: "node_exporter",
settings: {
listen_port: "9100",
},
}],
cloudMonitoringEnabled: true,
}, {
dependsOn: [vkcs_networking_router_interface.db],
});
import pulumi
import pulumi_vkcs as vkcs
mysql = vkcs.DbInstance("mysql",
availability_zone="GZ1",
flavor_id=data["vkcs_compute_flavor"]["basic"]["id"],
datastore={
"type": "mysql",
"version": "8.0",
},
networks=[{
"uuid": vkcs_networking_network["db"]["id"],
"security_groups": [vkcs_networking_secgroup["admin"]["id"]],
}],
size=8,
volume_type="ceph-ssd",
disk_autoexpand={
"autoexpand": True,
"max_disk_size": 1000,
},
configuration_id=vkcs_db_config_group["mysql_80"]["id"],
capabilities=[{
"name": "node_exporter",
"settings": {
"listen_port": "9100",
},
}],
cloud_monitoring_enabled=True,
opts = pulumi.ResourceOptions(depends_on=[vkcs_networking_router_interface["db"]]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewDbInstance(ctx, "mysql", &vkcs.DbInstanceArgs{
AvailabilityZone: pulumi.String("GZ1"),
FlavorId: pulumi.Any(data.Vkcs_compute_flavor.Basic.Id),
Datastore: &vkcs.DbInstanceDatastoreArgs{
Type: pulumi.String("mysql"),
Version: pulumi.String("8.0"),
},
Networks: vkcs.DbInstanceNetworkArray{
&vkcs.DbInstanceNetworkArgs{
Uuid: pulumi.Any(vkcs_networking_network.Db.Id),
SecurityGroups: pulumi.StringArray{
vkcs_networking_secgroup.Admin.Id,
},
},
},
Size: pulumi.Float64(8),
VolumeType: pulumi.String("ceph-ssd"),
DiskAutoexpand: &vkcs.DbInstanceDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(true),
MaxDiskSize: pulumi.Float64(1000),
},
ConfigurationId: pulumi.Any(vkcs_db_config_group.Mysql_80.Id),
Capabilities: vkcs.DbInstanceCapabilityArray{
&vkcs.DbInstanceCapabilityArgs{
Name: pulumi.String("node_exporter"),
Settings: pulumi.StringMap{
"listen_port": pulumi.String("9100"),
},
},
},
CloudMonitoringEnabled: pulumi.Bool(true),
}, pulumi.DependsOn([]pulumi.Resource{
vkcs_networking_router_interface.Db,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var mysql = new Vkcs.DbInstance("mysql", new()
{
AvailabilityZone = "GZ1",
FlavorId = data.Vkcs_compute_flavor.Basic.Id,
Datastore = new Vkcs.Inputs.DbInstanceDatastoreArgs
{
Type = "mysql",
Version = "8.0",
},
Networks = new[]
{
new Vkcs.Inputs.DbInstanceNetworkArgs
{
Uuid = vkcs_networking_network.Db.Id,
SecurityGroups = new[]
{
vkcs_networking_secgroup.Admin.Id,
},
},
},
Size = 8,
VolumeType = "ceph-ssd",
DiskAutoexpand = new Vkcs.Inputs.DbInstanceDiskAutoexpandArgs
{
Autoexpand = true,
MaxDiskSize = 1000,
},
ConfigurationId = vkcs_db_config_group.Mysql_80.Id,
Capabilities = new[]
{
new Vkcs.Inputs.DbInstanceCapabilityArgs
{
Name = "node_exporter",
Settings =
{
{ "listen_port", "9100" },
},
},
},
CloudMonitoringEnabled = true,
}, new CustomResourceOptions
{
DependsOn =
{
vkcs_networking_router_interface.Db,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DbInstance;
import com.pulumi.vkcs.DbInstanceArgs;
import com.pulumi.vkcs.inputs.DbInstanceDatastoreArgs;
import com.pulumi.vkcs.inputs.DbInstanceNetworkArgs;
import com.pulumi.vkcs.inputs.DbInstanceDiskAutoexpandArgs;
import com.pulumi.vkcs.inputs.DbInstanceCapabilityArgs;
import com.pulumi.resources.CustomResourceOptions;
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 mysql = new DbInstance("mysql", DbInstanceArgs.builder()
.availabilityZone("GZ1")
.flavorId(data.vkcs_compute_flavor().basic().id())
.datastore(DbInstanceDatastoreArgs.builder()
.type("mysql")
.version("8.0")
.build())
.networks(DbInstanceNetworkArgs.builder()
.uuid(vkcs_networking_network.db().id())
.securityGroups(vkcs_networking_secgroup.admin().id())
.build())
.size(8)
.volumeType("ceph-ssd")
.diskAutoexpand(DbInstanceDiskAutoexpandArgs.builder()
.autoexpand(true)
.maxDiskSize(1000)
.build())
.configurationId(vkcs_db_config_group.mysql_80().id())
.capabilities(DbInstanceCapabilityArgs.builder()
.name("node_exporter")
.settings(Map.of("listen_port", "9100"))
.build())
.cloudMonitoringEnabled(true)
.build(), CustomResourceOptions.builder()
.dependsOn(vkcs_networking_router_interface.db())
.build());
}
}
resources:
mysql:
type: vkcs:DbInstance
properties:
# AZ, flavor and datastore are mandatory
availabilityZone: GZ1
flavorId: ${data.vkcs_compute_flavor.basic.id}
datastore:
type: mysql
version: '8.0'
# Specify at least one network to not depend on project assets
# # Specify required security groups if you do not want `default` one
networks:
- uuid: ${vkcs_networking_network.db.id}
securityGroups:
- ${vkcs_networking_secgroup.admin.id}
# Specify volume type, size and autoexpand options
size: 8
volumeType: ceph-ssd
diskAutoexpand:
autoexpand: true
maxDiskSize: 1000
# Specify required db capabilities
configurationId: ${vkcs_db_config_group.mysql_80.id}
capabilities:
- name: node_exporter
settings:
listen_port: '9100'
# Enable cloud monitoring
cloudMonitoringEnabled: true
options:
dependsOn:
- ${vkcs_networking_router_interface.db}
Instance restored from backup
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const dbInstance = new vkcs.DbInstance("dbInstance", {
availabilityZone: "MS1",
capabilities: [
{
name: "node_exporter",
},
{
name: "postgres_extensions",
},
],
datastore: {
type: "postgresql",
version: "13",
},
diskAutoexpand: {
autoexpand: true,
maxDiskSize: 1000,
},
flavorId: "9e931469-1490-489e-88af-29a289681c53",
floatingIpEnabled: true,
networks: [{
uuid: "3ee9b184-3311-4d85-840b-7a9c48e7beac",
}],
restorePoint: {
backupId: "backup_id",
},
size: 8,
volumeType: "MS1",
});
import pulumi
import pulumi_vkcs as vkcs
db_instance = vkcs.DbInstance("dbInstance",
availability_zone="MS1",
capabilities=[
{
"name": "node_exporter",
},
{
"name": "postgres_extensions",
},
],
datastore={
"type": "postgresql",
"version": "13",
},
disk_autoexpand={
"autoexpand": True,
"max_disk_size": 1000,
},
flavor_id="9e931469-1490-489e-88af-29a289681c53",
floating_ip_enabled=True,
networks=[{
"uuid": "3ee9b184-3311-4d85-840b-7a9c48e7beac",
}],
restore_point={
"backup_id": "backup_id",
},
size=8,
volume_type="MS1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewDbInstance(ctx, "dbInstance", &vkcs.DbInstanceArgs{
AvailabilityZone: pulumi.String("MS1"),
Capabilities: vkcs.DbInstanceCapabilityArray{
&vkcs.DbInstanceCapabilityArgs{
Name: pulumi.String("node_exporter"),
},
&vkcs.DbInstanceCapabilityArgs{
Name: pulumi.String("postgres_extensions"),
},
},
Datastore: &vkcs.DbInstanceDatastoreArgs{
Type: pulumi.String("postgresql"),
Version: pulumi.String("13"),
},
DiskAutoexpand: &vkcs.DbInstanceDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(true),
MaxDiskSize: pulumi.Float64(1000),
},
FlavorId: pulumi.String("9e931469-1490-489e-88af-29a289681c53"),
FloatingIpEnabled: pulumi.Bool(true),
Networks: vkcs.DbInstanceNetworkArray{
&vkcs.DbInstanceNetworkArgs{
Uuid: pulumi.String("3ee9b184-3311-4d85-840b-7a9c48e7beac"),
},
},
RestorePoint: &vkcs.DbInstanceRestorePointArgs{
BackupId: pulumi.String("backup_id"),
},
Size: pulumi.Float64(8),
VolumeType: pulumi.String("MS1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var dbInstance = new Vkcs.DbInstance("dbInstance", new()
{
AvailabilityZone = "MS1",
Capabilities = new[]
{
new Vkcs.Inputs.DbInstanceCapabilityArgs
{
Name = "node_exporter",
},
new Vkcs.Inputs.DbInstanceCapabilityArgs
{
Name = "postgres_extensions",
},
},
Datastore = new Vkcs.Inputs.DbInstanceDatastoreArgs
{
Type = "postgresql",
Version = "13",
},
DiskAutoexpand = new Vkcs.Inputs.DbInstanceDiskAutoexpandArgs
{
Autoexpand = true,
MaxDiskSize = 1000,
},
FlavorId = "9e931469-1490-489e-88af-29a289681c53",
FloatingIpEnabled = true,
Networks = new[]
{
new Vkcs.Inputs.DbInstanceNetworkArgs
{
Uuid = "3ee9b184-3311-4d85-840b-7a9c48e7beac",
},
},
RestorePoint = new Vkcs.Inputs.DbInstanceRestorePointArgs
{
BackupId = "backup_id",
},
Size = 8,
VolumeType = "MS1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DbInstance;
import com.pulumi.vkcs.DbInstanceArgs;
import com.pulumi.vkcs.inputs.DbInstanceCapabilityArgs;
import com.pulumi.vkcs.inputs.DbInstanceDatastoreArgs;
import com.pulumi.vkcs.inputs.DbInstanceDiskAutoexpandArgs;
import com.pulumi.vkcs.inputs.DbInstanceNetworkArgs;
import com.pulumi.vkcs.inputs.DbInstanceRestorePointArgs;
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 dbInstance = new DbInstance("dbInstance", DbInstanceArgs.builder()
.availabilityZone("MS1")
.capabilities(
DbInstanceCapabilityArgs.builder()
.name("node_exporter")
.build(),
DbInstanceCapabilityArgs.builder()
.name("postgres_extensions")
.build())
.datastore(DbInstanceDatastoreArgs.builder()
.type("postgresql")
.version("13")
.build())
.diskAutoexpand(DbInstanceDiskAutoexpandArgs.builder()
.autoexpand(true)
.maxDiskSize(1000)
.build())
.flavorId("9e931469-1490-489e-88af-29a289681c53")
.floatingIpEnabled(true)
.networks(DbInstanceNetworkArgs.builder()
.uuid("3ee9b184-3311-4d85-840b-7a9c48e7beac")
.build())
.restorePoint(DbInstanceRestorePointArgs.builder()
.backupId("backup_id")
.build())
.size(8)
.volumeType("MS1")
.build());
}
}
resources:
dbInstance:
type: vkcs:DbInstance
properties:
availabilityZone: MS1
capabilities:
- name: node_exporter
- name: postgres_extensions
datastore:
type: postgresql
version: '13'
diskAutoexpand:
autoexpand: true
maxDiskSize: 1000
flavorId: 9e931469-1490-489e-88af-29a289681c53
floatingIpEnabled: true
networks:
- uuid: 3ee9b184-3311-4d85-840b-7a9c48e7beac
restorePoint:
backupId: backup_id
size: 8
volumeType: MS1
Postgresql instance with scheduled PITR backup
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const pgWithBackup = new vkcs.DbInstance("pgWithBackup", {
availabilityZone: "GZ1",
flavorId: data.vkcs_compute_flavor.basic.id,
datastore: {
type: "postgresql",
version: "16",
},
networks: [{
uuid: vkcs_networking_network.db.id,
}],
size: 8,
volumeType: "ceph-ssd",
diskAutoexpand: {
autoexpand: true,
maxDiskSize: 1000,
},
backupSchedule: {
name: "three_hours_backup_tf_example",
startHours: 16,
startMinutes: 20,
intervalHours: 3,
keepCount: 3,
},
}, {
dependsOn: [vkcs_networking_router_interface.db],
});
import pulumi
import pulumi_vkcs as vkcs
pg_with_backup = vkcs.DbInstance("pgWithBackup",
availability_zone="GZ1",
flavor_id=data["vkcs_compute_flavor"]["basic"]["id"],
datastore={
"type": "postgresql",
"version": "16",
},
networks=[{
"uuid": vkcs_networking_network["db"]["id"],
}],
size=8,
volume_type="ceph-ssd",
disk_autoexpand={
"autoexpand": True,
"max_disk_size": 1000,
},
backup_schedule={
"name": "three_hours_backup_tf_example",
"start_hours": 16,
"start_minutes": 20,
"interval_hours": 3,
"keep_count": 3,
},
opts = pulumi.ResourceOptions(depends_on=[vkcs_networking_router_interface["db"]]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.NewDbInstance(ctx, "pgWithBackup", &vkcs.DbInstanceArgs{
AvailabilityZone: pulumi.String("GZ1"),
FlavorId: pulumi.Any(data.Vkcs_compute_flavor.Basic.Id),
Datastore: &vkcs.DbInstanceDatastoreArgs{
Type: pulumi.String("postgresql"),
Version: pulumi.String("16"),
},
Networks: vkcs.DbInstanceNetworkArray{
&vkcs.DbInstanceNetworkArgs{
Uuid: pulumi.Any(vkcs_networking_network.Db.Id),
},
},
Size: pulumi.Float64(8),
VolumeType: pulumi.String("ceph-ssd"),
DiskAutoexpand: &vkcs.DbInstanceDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(true),
MaxDiskSize: pulumi.Float64(1000),
},
BackupSchedule: &vkcs.DbInstanceBackupScheduleArgs{
Name: pulumi.String("three_hours_backup_tf_example"),
StartHours: pulumi.Float64(16),
StartMinutes: pulumi.Float64(20),
IntervalHours: pulumi.Float64(3),
KeepCount: pulumi.Float64(3),
},
}, pulumi.DependsOn([]pulumi.Resource{
vkcs_networking_router_interface.Db,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var pgWithBackup = new Vkcs.DbInstance("pgWithBackup", new()
{
AvailabilityZone = "GZ1",
FlavorId = data.Vkcs_compute_flavor.Basic.Id,
Datastore = new Vkcs.Inputs.DbInstanceDatastoreArgs
{
Type = "postgresql",
Version = "16",
},
Networks = new[]
{
new Vkcs.Inputs.DbInstanceNetworkArgs
{
Uuid = vkcs_networking_network.Db.Id,
},
},
Size = 8,
VolumeType = "ceph-ssd",
DiskAutoexpand = new Vkcs.Inputs.DbInstanceDiskAutoexpandArgs
{
Autoexpand = true,
MaxDiskSize = 1000,
},
BackupSchedule = new Vkcs.Inputs.DbInstanceBackupScheduleArgs
{
Name = "three_hours_backup_tf_example",
StartHours = 16,
StartMinutes = 20,
IntervalHours = 3,
KeepCount = 3,
},
}, new CustomResourceOptions
{
DependsOn =
{
vkcs_networking_router_interface.Db,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DbInstance;
import com.pulumi.vkcs.DbInstanceArgs;
import com.pulumi.vkcs.inputs.DbInstanceDatastoreArgs;
import com.pulumi.vkcs.inputs.DbInstanceNetworkArgs;
import com.pulumi.vkcs.inputs.DbInstanceDiskAutoexpandArgs;
import com.pulumi.vkcs.inputs.DbInstanceBackupScheduleArgs;
import com.pulumi.resources.CustomResourceOptions;
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 pgWithBackup = new DbInstance("pgWithBackup", DbInstanceArgs.builder()
.availabilityZone("GZ1")
.flavorId(data.vkcs_compute_flavor().basic().id())
.datastore(DbInstanceDatastoreArgs.builder()
.type("postgresql")
.version("16")
.build())
.networks(DbInstanceNetworkArgs.builder()
.uuid(vkcs_networking_network.db().id())
.build())
.size(8)
.volumeType("ceph-ssd")
.diskAutoexpand(DbInstanceDiskAutoexpandArgs.builder()
.autoexpand(true)
.maxDiskSize(1000)
.build())
.backupSchedule(DbInstanceBackupScheduleArgs.builder()
.name("three_hours_backup_tf_example")
.startHours(16)
.startMinutes(20)
.intervalHours(3)
.keepCount(3)
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(vkcs_networking_router_interface.db())
.build());
}
}
resources:
pgWithBackup:
type: vkcs:DbInstance
properties:
availabilityZone: GZ1
flavorId: ${data.vkcs_compute_flavor.basic.id}
datastore:
type: postgresql
version: '16'
networks:
- uuid: ${vkcs_networking_network.db.id}
size: 8
volumeType: ceph-ssd
diskAutoexpand:
autoexpand: true
maxDiskSize: 1000
backupSchedule:
name: three_hours_backup_tf_example
startHours: 16
startMinutes: 20
intervalHours: 3
keepCount: 3
options:
dependsOn:
- ${vkcs_networking_router_interface.db}
Create DbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbInstance(name: string, args: DbInstanceArgs, opts?: CustomResourceOptions);
@overload
def DbInstance(resource_name: str,
args: DbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
datastore: Optional[DbInstanceDatastoreArgs] = None,
volume_type: Optional[str] = None,
size: Optional[float] = None,
flavor_id: Optional[str] = None,
db_instance_id: Optional[str] = None,
region: Optional[str] = None,
availability_zone: Optional[str] = None,
disk_autoexpand: Optional[DbInstanceDiskAutoexpandArgs] = None,
cloud_monitoring_enabled: Optional[bool] = None,
floating_ip_enabled: Optional[bool] = None,
keypair: Optional[str] = None,
name: Optional[str] = None,
networks: Optional[Sequence[DbInstanceNetworkArgs]] = None,
configuration_id: Optional[str] = None,
replica_of: Optional[str] = None,
restore_point: Optional[DbInstanceRestorePointArgs] = None,
root_enabled: Optional[bool] = None,
root_password: Optional[str] = None,
capabilities: Optional[Sequence[DbInstanceCapabilityArgs]] = None,
timeouts: Optional[DbInstanceTimeoutsArgs] = None,
vendor_options: Optional[DbInstanceVendorOptionsArgs] = None,
backup_schedule: Optional[DbInstanceBackupScheduleArgs] = None,
wal_disk_autoexpand: Optional[DbInstanceWalDiskAutoexpandArgs] = None,
wal_volume: Optional[DbInstanceWalVolumeArgs] = None)
func NewDbInstance(ctx *Context, name string, args DbInstanceArgs, opts ...ResourceOption) (*DbInstance, error)
public DbInstance(string name, DbInstanceArgs args, CustomResourceOptions? opts = null)
public DbInstance(String name, DbInstanceArgs args)
public DbInstance(String name, DbInstanceArgs args, CustomResourceOptions options)
type: vkcs:DbInstance
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 DbInstanceArgs
- 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 DbInstanceArgs
- 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 DbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbInstanceArgs
- 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 dbInstanceResource = new Vkcs.DbInstance("dbInstanceResource", new()
{
Datastore = new Vkcs.Inputs.DbInstanceDatastoreArgs
{
Type = "string",
Version = "string",
},
VolumeType = "string",
Size = 0,
FlavorId = "string",
DbInstanceId = "string",
Region = "string",
AvailabilityZone = "string",
DiskAutoexpand = new Vkcs.Inputs.DbInstanceDiskAutoexpandArgs
{
Autoexpand = false,
MaxDiskSize = 0,
},
CloudMonitoringEnabled = false,
FloatingIpEnabled = false,
Keypair = "string",
Name = "string",
Networks = new[]
{
new Vkcs.Inputs.DbInstanceNetworkArgs
{
SecurityGroups = new[]
{
"string",
},
SubnetId = "string",
Uuid = "string",
},
},
ConfigurationId = "string",
ReplicaOf = "string",
RestorePoint = new Vkcs.Inputs.DbInstanceRestorePointArgs
{
BackupId = "string",
Target = "string",
},
RootEnabled = false,
RootPassword = "string",
Capabilities = new[]
{
new Vkcs.Inputs.DbInstanceCapabilityArgs
{
Name = "string",
Settings =
{
{ "string", "string" },
},
},
},
Timeouts = new Vkcs.Inputs.DbInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
},
VendorOptions = new Vkcs.Inputs.DbInstanceVendorOptionsArgs
{
RestartConfirmed = false,
},
BackupSchedule = new Vkcs.Inputs.DbInstanceBackupScheduleArgs
{
IntervalHours = 0,
KeepCount = 0,
Name = "string",
StartHours = 0,
StartMinutes = 0,
},
WalDiskAutoexpand = new Vkcs.Inputs.DbInstanceWalDiskAutoexpandArgs
{
Autoexpand = false,
MaxDiskSize = 0,
},
WalVolume = new Vkcs.Inputs.DbInstanceWalVolumeArgs
{
Size = 0,
VolumeType = "string",
},
});
example, err := vkcs.NewDbInstance(ctx, "dbInstanceResource", &vkcs.DbInstanceArgs{
Datastore: &vkcs.DbInstanceDatastoreArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
VolumeType: pulumi.String("string"),
Size: pulumi.Float64(0),
FlavorId: pulumi.String("string"),
DbInstanceId: pulumi.String("string"),
Region: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
DiskAutoexpand: &vkcs.DbInstanceDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(false),
MaxDiskSize: pulumi.Float64(0),
},
CloudMonitoringEnabled: pulumi.Bool(false),
FloatingIpEnabled: pulumi.Bool(false),
Keypair: pulumi.String("string"),
Name: pulumi.String("string"),
Networks: vkcs.DbInstanceNetworkArray{
&vkcs.DbInstanceNetworkArgs{
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
},
ConfigurationId: pulumi.String("string"),
ReplicaOf: pulumi.String("string"),
RestorePoint: &vkcs.DbInstanceRestorePointArgs{
BackupId: pulumi.String("string"),
Target: pulumi.String("string"),
},
RootEnabled: pulumi.Bool(false),
RootPassword: pulumi.String("string"),
Capabilities: vkcs.DbInstanceCapabilityArray{
&vkcs.DbInstanceCapabilityArgs{
Name: pulumi.String("string"),
Settings: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Timeouts: &vkcs.DbInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VendorOptions: &vkcs.DbInstanceVendorOptionsArgs{
RestartConfirmed: pulumi.Bool(false),
},
BackupSchedule: &vkcs.DbInstanceBackupScheduleArgs{
IntervalHours: pulumi.Float64(0),
KeepCount: pulumi.Float64(0),
Name: pulumi.String("string"),
StartHours: pulumi.Float64(0),
StartMinutes: pulumi.Float64(0),
},
WalDiskAutoexpand: &vkcs.DbInstanceWalDiskAutoexpandArgs{
Autoexpand: pulumi.Bool(false),
MaxDiskSize: pulumi.Float64(0),
},
WalVolume: &vkcs.DbInstanceWalVolumeArgs{
Size: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
},
})
var dbInstanceResource = new DbInstance("dbInstanceResource", DbInstanceArgs.builder()
.datastore(DbInstanceDatastoreArgs.builder()
.type("string")
.version("string")
.build())
.volumeType("string")
.size(0)
.flavorId("string")
.dbInstanceId("string")
.region("string")
.availabilityZone("string")
.diskAutoexpand(DbInstanceDiskAutoexpandArgs.builder()
.autoexpand(false)
.maxDiskSize(0)
.build())
.cloudMonitoringEnabled(false)
.floatingIpEnabled(false)
.keypair("string")
.name("string")
.networks(DbInstanceNetworkArgs.builder()
.securityGroups("string")
.subnetId("string")
.uuid("string")
.build())
.configurationId("string")
.replicaOf("string")
.restorePoint(DbInstanceRestorePointArgs.builder()
.backupId("string")
.target("string")
.build())
.rootEnabled(false)
.rootPassword("string")
.capabilities(DbInstanceCapabilityArgs.builder()
.name("string")
.settings(Map.of("string", "string"))
.build())
.timeouts(DbInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vendorOptions(DbInstanceVendorOptionsArgs.builder()
.restartConfirmed(false)
.build())
.backupSchedule(DbInstanceBackupScheduleArgs.builder()
.intervalHours(0)
.keepCount(0)
.name("string")
.startHours(0)
.startMinutes(0)
.build())
.walDiskAutoexpand(DbInstanceWalDiskAutoexpandArgs.builder()
.autoexpand(false)
.maxDiskSize(0)
.build())
.walVolume(DbInstanceWalVolumeArgs.builder()
.size(0)
.volumeType("string")
.build())
.build());
db_instance_resource = vkcs.DbInstance("dbInstanceResource",
datastore={
"type": "string",
"version": "string",
},
volume_type="string",
size=0,
flavor_id="string",
db_instance_id="string",
region="string",
availability_zone="string",
disk_autoexpand={
"autoexpand": False,
"max_disk_size": 0,
},
cloud_monitoring_enabled=False,
floating_ip_enabled=False,
keypair="string",
name="string",
networks=[{
"security_groups": ["string"],
"subnet_id": "string",
"uuid": "string",
}],
configuration_id="string",
replica_of="string",
restore_point={
"backup_id": "string",
"target": "string",
},
root_enabled=False,
root_password="string",
capabilities=[{
"name": "string",
"settings": {
"string": "string",
},
}],
timeouts={
"create": "string",
"delete": "string",
},
vendor_options={
"restart_confirmed": False,
},
backup_schedule={
"interval_hours": 0,
"keep_count": 0,
"name": "string",
"start_hours": 0,
"start_minutes": 0,
},
wal_disk_autoexpand={
"autoexpand": False,
"max_disk_size": 0,
},
wal_volume={
"size": 0,
"volume_type": "string",
})
const dbInstanceResource = new vkcs.DbInstance("dbInstanceResource", {
datastore: {
type: "string",
version: "string",
},
volumeType: "string",
size: 0,
flavorId: "string",
dbInstanceId: "string",
region: "string",
availabilityZone: "string",
diskAutoexpand: {
autoexpand: false,
maxDiskSize: 0,
},
cloudMonitoringEnabled: false,
floatingIpEnabled: false,
keypair: "string",
name: "string",
networks: [{
securityGroups: ["string"],
subnetId: "string",
uuid: "string",
}],
configurationId: "string",
replicaOf: "string",
restorePoint: {
backupId: "string",
target: "string",
},
rootEnabled: false,
rootPassword: "string",
capabilities: [{
name: "string",
settings: {
string: "string",
},
}],
timeouts: {
create: "string",
"delete": "string",
},
vendorOptions: {
restartConfirmed: false,
},
backupSchedule: {
intervalHours: 0,
keepCount: 0,
name: "string",
startHours: 0,
startMinutes: 0,
},
walDiskAutoexpand: {
autoexpand: false,
maxDiskSize: 0,
},
walVolume: {
size: 0,
volumeType: "string",
},
});
type: vkcs:DbInstance
properties:
availabilityZone: string
backupSchedule:
intervalHours: 0
keepCount: 0
name: string
startHours: 0
startMinutes: 0
capabilities:
- name: string
settings:
string: string
cloudMonitoringEnabled: false
configurationId: string
datastore:
type: string
version: string
dbInstanceId: string
diskAutoexpand:
autoexpand: false
maxDiskSize: 0
flavorId: string
floatingIpEnabled: false
keypair: string
name: string
networks:
- securityGroups:
- string
subnetId: string
uuid: string
region: string
replicaOf: string
restorePoint:
backupId: string
target: string
rootEnabled: false
rootPassword: string
size: 0
timeouts:
create: string
delete: string
vendorOptions:
restartConfirmed: false
volumeType: string
walDiskAutoexpand:
autoexpand: false
maxDiskSize: 0
walVolume:
size: 0
volumeType: string
DbInstance 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 DbInstance resource accepts the following input properties:
- Datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- Flavor
Id string - required string → The ID of flavor for the instance.
- Size double
- required number → Size of the instance volume.
- Volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- Availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- Backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- Capabilities
List<Db
Instance Capability> - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- Db
Instance stringId - string → ID of the resource.
- Disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- Floating
Ip boolEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- Keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- Name string
- required string → The name of the instance. Changing this creates a new instance
- Networks
List<Db
Instance Network> - optional → Object that represents network of the instance. Changing this creates a new instance.
- Region string
- optional string → Region to create resource in.
- Replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- Restore
Point DbInstance 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 instance.
- Root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- Timeouts
Db
Instance Timeouts - Vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- Wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- Datastore
Db
Instance Datastore Args - required → Object that represents datastore of the instance. Changing this creates a new instance.
- Flavor
Id string - required string → The ID of flavor for the instance.
- Size float64
- required number → Size of the instance volume.
- Volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- Availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- Backup
Schedule DbInstance Backup Schedule Args - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- Capabilities
[]Db
Instance Capability Args - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- Db
Instance stringId - string → ID of the resource.
- Disk
Autoexpand DbInstance Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance.
- Floating
Ip boolEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- Keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- Name string
- required string → The name of the instance. Changing this creates a new instance
- Networks
[]Db
Instance Network Args - optional → Object that represents network of the instance. Changing this creates a new instance.
- Region string
- optional string → Region to create resource in.
- Replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- Restore
Point DbInstance 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 instance.
- Root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- Timeouts
Db
Instance Timeouts Args - Vendor
Options DbInstance Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Wal
Disk DbAutoexpand Instance Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance wal volume.
- Wal
Volume DbInstance Wal Volume Args - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- flavor
Id String - required string → The ID of flavor for the instance.
- size Double
- required number → Size of the instance volume.
- volume
Type String - required string → The type of the instance volume. Changing this creates a new instance.
- availability
Zone String - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
List<Db
Instance Capability> - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- db
Instance StringId - string → ID of the resource.
- disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- floating
Ip BooleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- keypair String
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name String
- required string → The name of the instance. Changing this creates a new instance
- networks
List<Db
Instance Network> - optional → Object that represents network of the instance. Changing this creates a new instance.
- region String
- optional string → Region to create resource in.
- replica
Of String - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore
Point DbInstance 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 instance.
- root
Password String - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- timeouts
Db
Instance Timeouts - vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- flavor
Id string - required string → The ID of flavor for the instance.
- size number
- required number → Size of the instance volume.
- volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
Db
Instance Capability[] - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring booleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- db
Instance stringId - string → ID of the resource.
- disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- floating
Ip booleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name string
- required string → The name of the instance. Changing this creates a new instance
- networks
Db
Instance Network[] - optional → Object that represents network of the instance. Changing this creates a new instance.
- region string
- optional string → Region to create resource in.
- replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore
Point DbInstance 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 instance.
- root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- timeouts
Db
Instance Timeouts - vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- datastore
Db
Instance Datastore Args - required → Object that represents datastore of the instance. Changing this creates a new instance.
- flavor_
id str - required string → The ID of flavor for the instance.
- size float
- required number → Size of the instance volume.
- volume_
type str - required string → The type of the instance volume. Changing this creates a new instance.
- availability_
zone str - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup_
schedule DbInstance Backup Schedule Args - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
Sequence[Db
Instance Capability Args] - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud_
monitoring_ boolenabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- db_
instance_ strid - string → ID of the resource.
- disk_
autoexpand DbInstance Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance.
- floating_
ip_ boolenabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- keypair str
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name str
- required string → The name of the instance. Changing this creates a new instance
- networks
Sequence[Db
Instance Network Args] - optional → Object that represents network of the instance. Changing this creates a new instance.
- region str
- optional string → Region to create resource in.
- replica_
of str - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore_
point DbInstance 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 instance.
- root_
password str - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- timeouts
Db
Instance Timeouts Args - vendor_
options DbInstance Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- wal_
disk_ Dbautoexpand Instance Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance wal volume.
- wal_
volume DbInstance Wal Volume Args - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- datastore Property Map
- required → Object that represents datastore of the instance. Changing this creates a new instance.
- flavor
Id String - required string → The ID of flavor for the instance.
- size Number
- required number → Size of the instance volume.
- volume
Type String - required string → The type of the instance volume. Changing this creates a new instance.
- availability
Zone String - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule Property Map - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities List<Property Map>
- optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- db
Instance StringId - string → ID of the resource.
- disk
Autoexpand Property Map - optional → Object that represents autoresize properties of the instance.
- floating
Ip BooleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- keypair String
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name String
- required string → The name of the instance. Changing this creates a new instance
- networks List<Property Map>
- optional → Object that represents network of the instance. Changing this creates a new instance.
- region String
- optional string → Region to create resource in.
- replica
Of String - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- 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 instance.
- root
Password String - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- 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 the instance wal volume.
- wal
Volume Property Map - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbInstance resource produces the following output properties:
Look up Existing DbInstance Resource
Get an existing DbInstance 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?: DbInstanceState, opts?: CustomResourceOptions): DbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
backup_schedule: Optional[DbInstanceBackupScheduleArgs] = None,
capabilities: Optional[Sequence[DbInstanceCapabilityArgs]] = None,
cloud_monitoring_enabled: Optional[bool] = None,
configuration_id: Optional[str] = None,
datastore: Optional[DbInstanceDatastoreArgs] = None,
db_instance_id: Optional[str] = None,
disk_autoexpand: Optional[DbInstanceDiskAutoexpandArgs] = None,
flavor_id: Optional[str] = None,
floating_ip_enabled: Optional[bool] = None,
ips: Optional[Sequence[str]] = None,
keypair: Optional[str] = None,
name: Optional[str] = None,
networks: Optional[Sequence[DbInstanceNetworkArgs]] = None,
region: Optional[str] = None,
replica_of: Optional[str] = None,
restore_point: Optional[DbInstanceRestorePointArgs] = None,
root_enabled: Optional[bool] = None,
root_password: Optional[str] = None,
size: Optional[float] = None,
timeouts: Optional[DbInstanceTimeoutsArgs] = None,
vendor_options: Optional[DbInstanceVendorOptionsArgs] = None,
volume_type: Optional[str] = None,
wal_disk_autoexpand: Optional[DbInstanceWalDiskAutoexpandArgs] = None,
wal_volume: Optional[DbInstanceWalVolumeArgs] = None) -> DbInstance
func GetDbInstance(ctx *Context, name string, id IDInput, state *DbInstanceState, opts ...ResourceOption) (*DbInstance, error)
public static DbInstance Get(string name, Input<string> id, DbInstanceState? state, CustomResourceOptions? opts = null)
public static DbInstance get(String name, Output<String> id, DbInstanceState state, CustomResourceOptions options)
resources: _: type: vkcs:DbInstance 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.
- Availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- Backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- Capabilities
List<Db
Instance Capability> - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- Datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- Db
Instance stringId - string → ID of the resource.
- Disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- Flavor
Id string - required string → The ID of flavor for the instance.
- Floating
Ip boolEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- Ips List<string>
- string → IP address of the instance.
- Keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- Name string
- required string → The name of the instance. Changing this creates a new instance
- Networks
List<Db
Instance Network> - optional → Object that represents network of the instance. Changing this creates a new instance.
- Region string
- optional string → Region to create resource in.
- Replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- Restore
Point DbInstance 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 instance.
- Root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- Size double
- required number → Size of the instance volume.
- Timeouts
Db
Instance Timeouts - Vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- Wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- Wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- Availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- Backup
Schedule DbInstance Backup Schedule Args - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- Capabilities
[]Db
Instance Capability Args - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- Cloud
Monitoring boolEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- Datastore
Db
Instance Datastore Args - required → Object that represents datastore of the instance. Changing this creates a new instance.
- Db
Instance stringId - string → ID of the resource.
- Disk
Autoexpand DbInstance Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance.
- Flavor
Id string - required string → The ID of flavor for the instance.
- Floating
Ip boolEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- Ips []string
- string → IP address of the instance.
- Keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- Name string
- required string → The name of the instance. Changing this creates a new instance
- Networks
[]Db
Instance Network Args - optional → Object that represents network of the instance. Changing this creates a new instance.
- Region string
- optional string → Region to create resource in.
- Replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- Restore
Point DbInstance 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 instance.
- Root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- Size float64
- required number → Size of the instance volume.
- Timeouts
Db
Instance Timeouts Args - Vendor
Options DbInstance Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- Volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- Wal
Disk DbAutoexpand Instance Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance wal volume.
- Wal
Volume DbInstance Wal Volume Args - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- availability
Zone String - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
List<Db
Instance Capability> - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- db
Instance StringId - string → ID of the resource.
- disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- flavor
Id String - required string → The ID of flavor for the instance.
- floating
Ip BooleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- ips List<String>
- string → IP address of the instance.
- keypair String
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name String
- required string → The name of the instance. Changing this creates a new instance
- networks
List<Db
Instance Network> - optional → Object that represents network of the instance. Changing this creates a new instance.
- region String
- optional string → Region to create resource in.
- replica
Of String - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore
Point DbInstance 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 instance.
- root
Password String - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- size Double
- required number → Size of the instance volume.
- timeouts
Db
Instance Timeouts - vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- volume
Type String - required string → The type of the instance volume. Changing this creates a new instance.
- wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- availability
Zone string - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule DbInstance Backup Schedule - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
Db
Instance Capability[] - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring booleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- datastore
Db
Instance Datastore - required → Object that represents datastore of the instance. Changing this creates a new instance.
- db
Instance stringId - string → ID of the resource.
- disk
Autoexpand DbInstance Disk Autoexpand - optional → Object that represents autoresize properties of the instance.
- flavor
Id string - required string → The ID of flavor for the instance.
- floating
Ip booleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- ips string[]
- string → IP address of the instance.
- keypair string
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name string
- required string → The name of the instance. Changing this creates a new instance
- networks
Db
Instance Network[] - optional → Object that represents network of the instance. Changing this creates a new instance.
- region string
- optional string → Region to create resource in.
- replica
Of string - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore
Point DbInstance 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 instance.
- root
Password string - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- size number
- required number → Size of the instance volume.
- timeouts
Db
Instance Timeouts - vendor
Options DbInstance Vendor Options - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- volume
Type string - required string → The type of the instance volume. Changing this creates a new instance.
- wal
Disk DbAutoexpand Instance Wal Disk Autoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- wal
Volume DbInstance Wal Volume - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- availability_
zone str - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup_
schedule DbInstance Backup Schedule Args - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities
Sequence[Db
Instance Capability Args] - optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud_
monitoring_ boolenabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- datastore
Db
Instance Datastore Args - required → Object that represents datastore of the instance. Changing this creates a new instance.
- db_
instance_ strid - string → ID of the resource.
- disk_
autoexpand DbInstance Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance.
- flavor_
id str - required string → The ID of flavor for the instance.
- floating_
ip_ boolenabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- ips Sequence[str]
- string → IP address of the instance.
- keypair str
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name str
- required string → The name of the instance. Changing this creates a new instance
- networks
Sequence[Db
Instance Network Args] - optional → Object that represents network of the instance. Changing this creates a new instance.
- region str
- optional string → Region to create resource in.
- replica_
of str - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- restore_
point DbInstance 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 instance.
- root_
password str - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- size float
- required number → Size of the instance volume.
- timeouts
Db
Instance Timeouts Args - vendor_
options DbInstance Vendor Options Args - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- volume_
type str - required string → The type of the instance volume. Changing this creates a new instance.
- wal_
disk_ Dbautoexpand Instance Wal Disk Autoexpand Args - optional → Object that represents autoresize properties of the instance wal volume.
- wal_
volume DbInstance Wal Volume Args - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
- availability
Zone String - optional string → The name of the availability zone of the instance. Changing this creates a new instance.
- backup
Schedule Property Map - optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
- capabilities List<Property Map>
- optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
- cloud
Monitoring BooleanEnabled - optional boolean → Enable cloud monitoring for the instance. 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 instance.
- datastore Property Map
- required → Object that represents datastore of the instance. Changing this creates a new instance.
- db
Instance StringId - string → ID of the resource.
- disk
Autoexpand Property Map - optional → Object that represents autoresize properties of the instance.
- flavor
Id String - required string → The ID of flavor for the instance.
- floating
Ip BooleanEnabled - optional boolean → Indicates whether floating ip is created for instance. Changing this creates a new instance.
- ips List<String>
- string → IP address of the instance.
- keypair String
- optional string → Name of the keypair to be attached to instance. Changing this creates a new instance.
- name String
- required string → The name of the instance. Changing this creates a new instance
- networks List<Property Map>
- optional → Object that represents network of the instance. Changing this creates a new instance.
- region String
- optional string → Region to create resource in.
- replica
Of String - optional string → ID of the instance, that current instance is replica of. Instance's datastore must be one of:
postgrespro_enterprise
,mysql
,postgresql
,postgrespro_enterprise_1c
- 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 instance.
- root
Password String - optional sensitive string → Password for the root user of the instance. If this field is empty and root user is enabled, then after creation of the instance this field will contain auto-generated root user password.
- size Number
- required number → Size of the instance volume.
- timeouts Property Map
- vendor
Options Property Map - optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
- volume
Type String - required string → The type of the instance volume. Changing this creates a new instance.
- wal
Disk Property MapAutoexpand - optional → Object that represents autoresize properties of the instance wal volume.
- wal
Volume Property Map - optional → Object that represents wal volume of the instance. Changing this creates a new instance.
Supporting Types
DbInstanceBackupSchedule, DbInstanceBackupScheduleArgs
- Interval
Hours double - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- Keep
Count double - required number → Number of backups to be stored.
- Name string
- required string → Name of the schedule.
- Start
Hours double - required number → Hours part of timestamp of initial backup.
- Start
Minutes double - required number → Minutes part of timestamp of initial backup.
- Interval
Hours float64 - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- Keep
Count float64 - required number → Number of backups to be stored.
- Name string
- required string → Name of the schedule.
- Start
Hours float64 - required number → Hours part of timestamp of initial backup.
- Start
Minutes float64 - required number → Minutes part of timestamp of initial backup.
- interval
Hours Double - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- keep
Count Double - required number → Number of backups to be stored.
- name String
- required string → Name of the schedule.
- start
Hours Double - required number → Hours part of timestamp of initial backup.
- start
Minutes Double - required number → Minutes part of timestamp of initial backup.
- interval
Hours number - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- keep
Count number - required number → Number of backups to be stored.
- name string
- required string → Name of the schedule.
- start
Hours number - required number → Hours part of timestamp of initial backup.
- start
Minutes number - required number → Minutes part of timestamp of initial backup.
- interval_
hours float - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- keep_
count float - required number → Number of backups to be stored.
- name str
- required string → Name of the schedule.
- start_
hours float - required number → Hours part of timestamp of initial backup.
- start_
minutes float - required number → Minutes part of timestamp of initial backup.
- interval
Hours Number - required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
- keep
Count Number - required number → Number of backups to be stored.
- name String
- required string → Name of the schedule.
- start
Hours Number - required number → Hours part of timestamp of initial backup.
- start
Minutes Number - required number → Minutes part of timestamp of initial backup.
DbInstanceCapability, DbInstanceCapabilityArgs
DbInstanceDatastore, DbInstanceDatastoreArgs
DbInstanceDiskAutoexpand, DbInstanceDiskAutoexpandArgs
- 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.
DbInstanceNetwork, DbInstanceNetworkArgs
- Fixed
Ip stringV4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- Port string
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- Subnet
Id string - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- Uuid string
- optional string → The id of the network. Changing this creates a new instance. 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.
- Fixed
Ip stringV4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- Port string
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- Subnet
Id string - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- Uuid string
- optional string → The id of the network. Changing this creates a new instance. 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.
- fixed
Ip StringV4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- port String
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- subnet
Id String - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- uuid String
- optional string → The id of the network. Changing this creates a new instance. 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.
- fixed
Ip stringV4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- port string
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- subnet
Id string - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- uuid string
- optional string → The id of the network. Changing this creates a new instance. 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.
- fixed_
ip_ strv4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- port str
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- subnet_
id str - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- uuid str
- optional string → The id of the network. Changing this creates a new instance. 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.
- fixed
Ip StringV4 - optional deprecated string → The IPv4 address. Changing this creates a new instance. Note: This argument conflicts with "replica_of". Setting both at the same time causes "fixed_ip_v4" to be ignored. Deprecated This argument is no longer supported, and the instance will have a random ip address in the selected subnet.
- port String
- optional deprecated string → The port id of the network. Changing this creates a new instance. 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 instance. Changing this creates a new instance.New since v0.2.0.
- subnet
Id String - optional string → The id of the subnet. Changing this creates a new instance.New since v0.1.15.
- uuid String
- optional string → The id of the network. Changing this creates a new instance. 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.
DbInstanceRestorePoint, DbInstanceRestorePointArgs
DbInstanceTimeouts, DbInstanceTimeoutsArgs
DbInstanceVendorOptions, DbInstanceVendorOptionsArgs
- Restart
Confirmed bool - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
- Restart
Confirmed bool - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
- restart
Confirmed Boolean - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
- restart
Confirmed boolean - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
- restart_
confirmed bool - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
- restart
Confirmed Boolean - optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
DbInstanceWalDiskAutoexpand, DbInstanceWalDiskAutoexpandArgs
- 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.
DbInstanceWalVolume, DbInstanceWalVolumeArgs
- Size double
- required number → Size of the instance wal volume.
- Volume
Type string - required string → The type of the instance wal volume.
- Autoexpand bool
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- Max
Disk doubleSize - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
- Size float64
- required number → Size of the instance wal volume.
- Volume
Type string - required string → The type of the instance wal volume.
- Autoexpand bool
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- Max
Disk float64Size - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
- size Double
- required number → Size of the instance wal volume.
- volume
Type String - required string → The type of the instance wal volume.
- autoexpand Boolean
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- max
Disk DoubleSize - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
- size number
- required number → Size of the instance wal volume.
- volume
Type string - required string → The type of the instance wal volume.
- autoexpand boolean
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- max
Disk numberSize - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
- size float
- required number → Size of the instance wal volume.
- volume_
type str - required string → The type of the instance wal volume.
- autoexpand bool
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- max_
disk_ floatsize - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
- size Number
- required number → Size of the instance wal volume.
- volume
Type String - required string → The type of the instance wal volume.
- autoexpand Boolean
- optional deprecated boolean → Indicates whether wal volume autoresize is enabled. Deprecated Please, use wal_disk_autoexpand block instead.
- max
Disk NumberSize - optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.
Import
Instances can be imported using the id
, e.g.
$ pulumi import vkcs:index/dbInstance:DbInstance myinstance 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, flavor_id, size, volume_type, datastore
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.