1. Packages
  2. Vkcs Provider
  3. API Docs
  4. DbInstance
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.DbInstance

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    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 DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    FlavorId string
    required string → The ID of flavor for the instance.
    Size double
    required number → Size of the instance volume.
    VolumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    AvailabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    BackupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    Capabilities List<DbInstanceCapability>
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    CloudMonitoringEnabled bool
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    ConfigurationId string
    optional string → The id of the configuration attached to instance.
    DbInstanceId string
    string → ID of the resource.
    DiskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    FloatingIpEnabled bool
    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<DbInstanceNetwork>
    optional → Object that represents network of the instance. Changing this creates a new instance.
    Region string
    optional string → Region to create resource in.
    ReplicaOf 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
    RestorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    RootEnabled bool
    optional boolean → Indicates whether root user is enabled for the instance.
    RootPassword 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 DbInstanceTimeouts
    VendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    WalDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    WalVolume DbInstanceWalVolume
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    Datastore DbInstanceDatastoreArgs
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    FlavorId string
    required string → The ID of flavor for the instance.
    Size float64
    required number → Size of the instance volume.
    VolumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    AvailabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    BackupSchedule DbInstanceBackupScheduleArgs
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    Capabilities []DbInstanceCapabilityArgs
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    CloudMonitoringEnabled bool
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    ConfigurationId string
    optional string → The id of the configuration attached to instance.
    DbInstanceId string
    string → ID of the resource.
    DiskAutoexpand DbInstanceDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance.
    FloatingIpEnabled bool
    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 []DbInstanceNetworkArgs
    optional → Object that represents network of the instance. Changing this creates a new instance.
    Region string
    optional string → Region to create resource in.
    ReplicaOf 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
    RestorePoint DbInstanceRestorePointArgs
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    RootEnabled bool
    optional boolean → Indicates whether root user is enabled for the instance.
    RootPassword 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 DbInstanceTimeoutsArgs
    VendorOptions DbInstanceVendorOptionsArgs
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    WalDiskAutoexpand DbInstanceWalDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance wal volume.
    WalVolume DbInstanceWalVolumeArgs
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    datastore DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    flavorId String
    required string → The ID of flavor for the instance.
    size Double
    required number → Size of the instance volume.
    volumeType String
    required string → The type of the instance volume. Changing this creates a new instance.
    availabilityZone String
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities List<DbInstanceCapability>
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloudMonitoringEnabled Boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId String
    optional string → The id of the configuration attached to instance.
    dbInstanceId String
    string → ID of the resource.
    diskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    floatingIpEnabled Boolean
    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<DbInstanceNetwork>
    optional → Object that represents network of the instance. Changing this creates a new instance.
    region String
    optional string → Region to create resource in.
    replicaOf 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
    restorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled Boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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 DbInstanceTimeouts
    vendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    walDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume DbInstanceWalVolume
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    datastore DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    flavorId string
    required string → The ID of flavor for the instance.
    size number
    required number → Size of the instance volume.
    volumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    availabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities DbInstanceCapability[]
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloudMonitoringEnabled boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId string
    optional string → The id of the configuration attached to instance.
    dbInstanceId string
    string → ID of the resource.
    diskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    floatingIpEnabled boolean
    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 DbInstanceNetwork[]
    optional → Object that represents network of the instance. Changing this creates a new instance.
    region string
    optional string → Region to create resource in.
    replicaOf 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
    restorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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 DbInstanceTimeouts
    vendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    walDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume DbInstanceWalVolume
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    datastore DbInstanceDatastoreArgs
    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 DbInstanceBackupScheduleArgs
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities Sequence[DbInstanceCapabilityArgs]
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloud_monitoring_enabled bool
    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_id str
    string → ID of the resource.
    disk_autoexpand DbInstanceDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance.
    floating_ip_enabled bool
    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[DbInstanceNetworkArgs]
    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 DbInstanceRestorePointArgs
    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 DbInstanceTimeoutsArgs
    vendor_options DbInstanceVendorOptionsArgs
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    wal_disk_autoexpand DbInstanceWalDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance wal volume.
    wal_volume DbInstanceWalVolumeArgs
    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.
    flavorId String
    required string → The ID of flavor for the instance.
    size Number
    required number → Size of the instance volume.
    volumeType String
    required string → The type of the instance volume. Changing this creates a new instance.
    availabilityZone String
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule 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).
    cloudMonitoringEnabled Boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId String
    optional string → The id of the configuration attached to instance.
    dbInstanceId String
    string → ID of the resource.
    diskAutoexpand Property Map
    optional → Object that represents autoresize properties of the instance.
    floatingIpEnabled Boolean
    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.
    replicaOf 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
    restorePoint Property Map
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled Boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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
    vendorOptions Property Map
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    walDiskAutoexpand Property Map
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ips List<string>
    string → IP address of the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ips []string
    string → IP address of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<String>
    string → IP address of the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ips string[]
    string → IP address of the instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ips Sequence[str]
    string → IP address of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ips List<String>
    string → IP address of the instance.

    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.
    The following state arguments are supported:
    AvailabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    BackupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    Capabilities List<DbInstanceCapability>
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    CloudMonitoringEnabled bool
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    ConfigurationId string
    optional string → The id of the configuration attached to instance.
    Datastore DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    DbInstanceId string
    string → ID of the resource.
    DiskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    FlavorId string
    required string → The ID of flavor for the instance.
    FloatingIpEnabled bool
    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<DbInstanceNetwork>
    optional → Object that represents network of the instance. Changing this creates a new instance.
    Region string
    optional string → Region to create resource in.
    ReplicaOf 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
    RestorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    RootEnabled bool
    optional boolean → Indicates whether root user is enabled for the instance.
    RootPassword 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 DbInstanceTimeouts
    VendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    VolumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    WalDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    WalVolume DbInstanceWalVolume
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    AvailabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    BackupSchedule DbInstanceBackupScheduleArgs
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    Capabilities []DbInstanceCapabilityArgs
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    CloudMonitoringEnabled bool
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    ConfigurationId string
    optional string → The id of the configuration attached to instance.
    Datastore DbInstanceDatastoreArgs
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    DbInstanceId string
    string → ID of the resource.
    DiskAutoexpand DbInstanceDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance.
    FlavorId string
    required string → The ID of flavor for the instance.
    FloatingIpEnabled bool
    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 []DbInstanceNetworkArgs
    optional → Object that represents network of the instance. Changing this creates a new instance.
    Region string
    optional string → Region to create resource in.
    ReplicaOf 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
    RestorePoint DbInstanceRestorePointArgs
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    RootEnabled bool
    optional boolean → Indicates whether root user is enabled for the instance.
    RootPassword 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 DbInstanceTimeoutsArgs
    VendorOptions DbInstanceVendorOptionsArgs
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    VolumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    WalDiskAutoexpand DbInstanceWalDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance wal volume.
    WalVolume DbInstanceWalVolumeArgs
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    availabilityZone String
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities List<DbInstanceCapability>
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloudMonitoringEnabled Boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId String
    optional string → The id of the configuration attached to instance.
    datastore DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    dbInstanceId String
    string → ID of the resource.
    diskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    flavorId String
    required string → The ID of flavor for the instance.
    floatingIpEnabled Boolean
    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<DbInstanceNetwork>
    optional → Object that represents network of the instance. Changing this creates a new instance.
    region String
    optional string → Region to create resource in.
    replicaOf 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
    restorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled Boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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 DbInstanceTimeouts
    vendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    volumeType String
    required string → The type of the instance volume. Changing this creates a new instance.
    walDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume DbInstanceWalVolume
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    availabilityZone string
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule DbInstanceBackupSchedule
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities DbInstanceCapability[]
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloudMonitoringEnabled boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId string
    optional string → The id of the configuration attached to instance.
    datastore DbInstanceDatastore
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    dbInstanceId string
    string → ID of the resource.
    diskAutoexpand DbInstanceDiskAutoexpand
    optional → Object that represents autoresize properties of the instance.
    flavorId string
    required string → The ID of flavor for the instance.
    floatingIpEnabled boolean
    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 DbInstanceNetwork[]
    optional → Object that represents network of the instance. Changing this creates a new instance.
    region string
    optional string → Region to create resource in.
    replicaOf 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
    restorePoint DbInstanceRestorePoint
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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 DbInstanceTimeouts
    vendorOptions DbInstanceVendorOptions
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    volumeType string
    required string → The type of the instance volume. Changing this creates a new instance.
    walDiskAutoexpand DbInstanceWalDiskAutoexpand
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume DbInstanceWalVolume
    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 DbInstanceBackupScheduleArgs
    optional → Object that represents configuration of PITR backup. This functionality is available only for postgres datastore.New since v0.1.4.
    capabilities Sequence[DbInstanceCapabilityArgs]
    optional → Object that represents capability applied to instance. There can be several instances of this object (see example).
    cloud_monitoring_enabled bool
    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 DbInstanceDatastoreArgs
    required → Object that represents datastore of the instance. Changing this creates a new instance.
    db_instance_id str
    string → ID of the resource.
    disk_autoexpand DbInstanceDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance.
    flavor_id str
    required string → The ID of flavor for the instance.
    floating_ip_enabled bool
    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[DbInstanceNetworkArgs]
    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 DbInstanceRestorePointArgs
    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 DbInstanceTimeoutsArgs
    vendor_options DbInstanceVendorOptionsArgs
    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_autoexpand DbInstanceWalDiskAutoexpandArgs
    optional → Object that represents autoresize properties of the instance wal volume.
    wal_volume DbInstanceWalVolumeArgs
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.
    availabilityZone String
    optional string → The name of the availability zone of the instance. Changing this creates a new instance.
    backupSchedule 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).
    cloudMonitoringEnabled Boolean
    optional boolean → Enable cloud monitoring for the instance. Changing this for Redis or MongoDB creates a new instance.New since v0.2.0.
    configurationId 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.
    dbInstanceId String
    string → ID of the resource.
    diskAutoexpand Property Map
    optional → Object that represents autoresize properties of the instance.
    flavorId String
    required string → The ID of flavor for the instance.
    floatingIpEnabled Boolean
    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.
    replicaOf 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
    restorePoint Property Map
    optional → Object that represents backup to restore instance from.New since v0.1.4.
    rootEnabled Boolean
    optional boolean → Indicates whether root user is enabled for the instance.
    rootPassword 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
    vendorOptions Property Map
    optional → Map of additional vendor-specific options. Supported options are described below.New since v0.4.0.
    volumeType String
    required string → The type of the instance volume. Changing this creates a new instance.
    walDiskAutoexpand Property Map
    optional → Object that represents autoresize properties of the instance wal volume.
    walVolume Property Map
    optional → Object that represents wal volume of the instance. Changing this creates a new instance.

    Supporting Types

    DbInstanceBackupSchedule, DbInstanceBackupScheduleArgs

    IntervalHours double
    required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
    KeepCount double
    required number → Number of backups to be stored.
    Name string
    required string → Name of the schedule.
    StartHours double
    required number → Hours part of timestamp of initial backup.
    StartMinutes double
    required number → Minutes part of timestamp of initial backup.
    IntervalHours float64
    required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
    KeepCount float64
    required number → Number of backups to be stored.
    Name string
    required string → Name of the schedule.
    StartHours float64
    required number → Hours part of timestamp of initial backup.
    StartMinutes float64
    required number → Minutes part of timestamp of initial backup.
    intervalHours Double
    required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
    keepCount Double
    required number → Number of backups to be stored.
    name String
    required string → Name of the schedule.
    startHours Double
    required number → Hours part of timestamp of initial backup.
    startMinutes Double
    required number → Minutes part of timestamp of initial backup.
    intervalHours number
    required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
    keepCount number
    required number → Number of backups to be stored.
    name string
    required string → Name of the schedule.
    startHours number
    required number → Hours part of timestamp of initial backup.
    startMinutes 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.
    intervalHours Number
    required number → Time interval between backups, specified in hours. Available values: 3, 6, 8, 12, 24.
    keepCount Number
    required number → Number of backups to be stored.
    name String
    required string → Name of the schedule.
    startHours Number
    required number → Hours part of timestamp of initial backup.
    startMinutes Number
    required number → Minutes part of timestamp of initial backup.

    DbInstanceCapability, DbInstanceCapabilityArgs

    Name string
    required string → The name of the capability to apply.
    Settings Dictionary<string, string>
    optional map of string → Map of key-value settings of the capability.
    Name string
    required string → The name of the capability to apply.
    Settings map[string]string
    optional map of string → Map of key-value settings of the capability.
    name String
    required string → The name of the capability to apply.
    settings Map<String,String>
    optional map of string → Map of key-value settings of the capability.
    name string
    required string → The name of the capability to apply.
    settings {[key: string]: string}
    optional map of string → Map of key-value settings of the capability.
    name str
    required string → The name of the capability to apply.
    settings Mapping[str, str]
    optional map of string → Map of key-value settings of the capability.
    name String
    required string → The name of the capability to apply.
    settings Map<String>
    optional map of string → Map of key-value settings of the capability.

    DbInstanceDatastore, DbInstanceDatastoreArgs

    Type string
    required string → Type of the datastore. Changing this creates a new instance.
    Version string
    required string → Version of the datastore. Changing this creates a new instance.
    Type string
    required string → Type of the datastore. Changing this creates a new instance.
    Version string
    required string → Version of the datastore. Changing this creates a new instance.
    type String
    required string → Type of the datastore. Changing this creates a new instance.
    version String
    required string → Version of the datastore. Changing this creates a new instance.
    type string
    required string → Type of the datastore. Changing this creates a new instance.
    version string
    required string → Version of the datastore. Changing this creates a new instance.
    type str
    required string → Type of the datastore. Changing this creates a new instance.
    version str
    required string → Version of the datastore. Changing this creates a new instance.
    type String
    required string → Type of the datastore. Changing this creates a new instance.
    version String
    required string → Version of the datastore. Changing this creates a new instance.

    DbInstanceDiskAutoexpand, DbInstanceDiskAutoexpandArgs

    Autoexpand bool
    optional boolean → Indicates whether autoresize is enabled.
    MaxDiskSize double
    optional number → Maximum disk size for autoresize.
    Autoexpand bool
    optional boolean → Indicates whether autoresize is enabled.
    MaxDiskSize float64
    optional number → Maximum disk size for autoresize.
    autoexpand Boolean
    optional boolean → Indicates whether autoresize is enabled.
    maxDiskSize Double
    optional number → Maximum disk size for autoresize.
    autoexpand boolean
    optional boolean → Indicates whether autoresize is enabled.
    maxDiskSize number
    optional number → Maximum disk size for autoresize.
    autoexpand bool
    optional boolean → Indicates whether autoresize is enabled.
    max_disk_size float
    optional number → Maximum disk size for autoresize.
    autoexpand Boolean
    optional boolean → Indicates whether autoresize is enabled.
    maxDiskSize Number
    optional number → Maximum disk size for autoresize.

    DbInstanceNetwork, DbInstanceNetworkArgs

    FixedIpV4 string
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    SecurityGroups 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.
    SubnetId 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.
    FixedIpV4 string
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    SecurityGroups []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.
    SubnetId 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.
    fixedIpV4 String
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    securityGroups 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.
    subnetId 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.
    fixedIpV4 string
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    securityGroups 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.
    subnetId 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_v4 str
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    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.
    fixedIpV4 String
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    securityGroups 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.
    subnetId 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

    BackupId string
    required string → ID of the backup.
    Target string
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.
    BackupId string
    required string → ID of the backup.
    Target string
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.
    backupId String
    required string → ID of the backup.
    target String
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.
    backupId string
    required string → ID of the backup.
    target string
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.
    backup_id str
    required string → ID of the backup.
    target str
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.
    backupId String
    required string → ID of the backup.
    target String
    optional string → Used only for restoring from postgresql PITR backups. Timestamp of needed backup in format "2021-10-06 01:02:00". You can specify "latest" to use most recent backup.

    DbInstanceTimeouts, DbInstanceTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    DbInstanceVendorOptions, DbInstanceVendorOptionsArgs

    RestartConfirmed bool
    optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
    RestartConfirmed bool
    optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
    restartConfirmed Boolean
    optional boolean → Boolean to confirm autorestart of the instance if it is required to apply configuration group changes.
    restartConfirmed 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.
    restartConfirmed 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.
    MaxDiskSize double
    optional number → Maximum disk size for wal volume autoresize.
    Autoexpand bool
    optional boolean → Indicates whether wal volume autoresize is enabled.
    MaxDiskSize float64
    optional number → Maximum disk size for wal volume autoresize.
    autoexpand Boolean
    optional boolean → Indicates whether wal volume autoresize is enabled.
    maxDiskSize Double
    optional number → Maximum disk size for wal volume autoresize.
    autoexpand boolean
    optional boolean → Indicates whether wal volume autoresize is enabled.
    maxDiskSize number
    optional number → Maximum disk size for wal volume autoresize.
    autoexpand bool
    optional boolean → Indicates whether wal volume autoresize is enabled.
    max_disk_size float
    optional number → Maximum disk size for wal volume autoresize.
    autoexpand Boolean
    optional boolean → Indicates whether wal volume autoresize is enabled.
    maxDiskSize Number
    optional number → Maximum disk size for wal volume autoresize.

    DbInstanceWalVolume, DbInstanceWalVolumeArgs

    Size double
    required number → Size of the instance wal volume.
    VolumeType 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.

    Deprecated: Deprecated

    MaxDiskSize double
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    Size float64
    required number → Size of the instance wal volume.
    VolumeType 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.

    Deprecated: Deprecated

    MaxDiskSize float64
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    size Double
    required number → Size of the instance wal volume.
    volumeType 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.

    Deprecated: Deprecated

    maxDiskSize Double
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    size number
    required number → Size of the instance wal volume.
    volumeType 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.

    Deprecated: Deprecated

    maxDiskSize number
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    max_disk_size float
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    size Number
    required number → Size of the instance wal volume.
    volumeType 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.

    Deprecated: Deprecated

    maxDiskSize Number
    optional deprecated number → Maximum disk size for wal volume autoresize. Deprecated Please, use wal_disk_autoexpand block instead.

    Deprecated: Deprecated

    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.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs