ovh.CloudProject.Database
Explore with Pulumi AI
Example Usage
Minimum settings for each engine (region choice is up to the user):
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const cassandradb = new ovh.cloudproject.Database("cassandradb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-cassandra",
    engine: "cassandra",
    version: "4.0",
    plan: "essential",
    nodes: [
        {
            region: "BHS",
        },
        {
            region: "BHS",
        },
        {
            region: "BHS",
        },
    ],
    flavor: "db1-4",
});
const kafkadb = new ovh.cloudproject.Database("kafkadb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-kafka",
    engine: "kafka",
    version: "3.8",
    flavor: "db1-4",
    plan: "business",
    kafkaRestApi: true,
    kafkaSchemaRegistry: true,
    nodes: [
        {
            region: "DE",
        },
        {
            region: "DE",
        },
        {
            region: "DE",
        },
    ],
});
const m3db = new ovh.cloudproject.Database("m3db", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-m3db",
    engine: "m3db",
    version: "1.2",
    plan: "essential",
    nodes: [{
        region: "BHS",
    }],
    flavor: "db1-7",
});
const mongodb = new ovh.cloudproject.Database("mongodb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-mongodb",
    engine: "mongodb",
    version: "5.0",
    plan: "discovery",
    nodes: [{
        region: "GRA",
    }],
    flavor: "db1-2",
});
const mysqldb = new ovh.cloudproject.Database("mysqldb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-mysql",
    engine: "mysql",
    version: "8",
    plan: "essential",
    nodes: [{
        region: "SBG",
    }],
    flavor: "db1-4",
    advancedConfiguration: {
        "mysql.sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES",
        "mysql.sql_require_primary_key": "true",
    },
});
const opensearchdb = new ovh.cloudproject.Database("opensearchdb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-opensearch",
    engine: "opensearch",
    version: "1",
    plan: "essential",
    opensearchAclsEnabled: true,
    nodes: [{
        region: "UK",
    }],
    flavor: "db1-4",
});
const pgsqldb = new ovh.cloudproject.Database("pgsqldb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-postgresql",
    engine: "postgresql",
    version: "14",
    plan: "essential",
    nodes: [{
        region: "WAW",
    }],
    flavor: "db1-4",
    ipRestrictions: [
        {
            description: "ip 1",
            ip: "178.97.6.0/24",
        },
        {
            description: "ip 2",
            ip: "178.97.7.0/24",
        },
    ],
});
const redisdb = new ovh.cloudproject.Database("redisdb", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-redis",
    engine: "redis",
    version: "6.2",
    plan: "essential",
    nodes: [{
        region: "BHS",
    }],
    flavor: "db1-4",
});
const grafana = new ovh.cloudproject.Database("grafana", {
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description: "my-first-grafana",
    engine: "grafana",
    version: "9.1",
    plan: "essential",
    nodes: [{
        region: "GRA",
    }],
    flavor: "db1-4",
});
import pulumi
import pulumi_ovh as ovh
cassandradb = ovh.cloud_project.Database("cassandradb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-cassandra",
    engine="cassandra",
    version="4.0",
    plan="essential",
    nodes=[
        {
            "region": "BHS",
        },
        {
            "region": "BHS",
        },
        {
            "region": "BHS",
        },
    ],
    flavor="db1-4")
kafkadb = ovh.cloud_project.Database("kafkadb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-kafka",
    engine="kafka",
    version="3.8",
    flavor="db1-4",
    plan="business",
    kafka_rest_api=True,
    kafka_schema_registry=True,
    nodes=[
        {
            "region": "DE",
        },
        {
            "region": "DE",
        },
        {
            "region": "DE",
        },
    ])
m3db = ovh.cloud_project.Database("m3db",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-m3db",
    engine="m3db",
    version="1.2",
    plan="essential",
    nodes=[{
        "region": "BHS",
    }],
    flavor="db1-7")
mongodb = ovh.cloud_project.Database("mongodb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-mongodb",
    engine="mongodb",
    version="5.0",
    plan="discovery",
    nodes=[{
        "region": "GRA",
    }],
    flavor="db1-2")
mysqldb = ovh.cloud_project.Database("mysqldb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-mysql",
    engine="mysql",
    version="8",
    plan="essential",
    nodes=[{
        "region": "SBG",
    }],
    flavor="db1-4",
    advanced_configuration={
        "mysql.sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES",
        "mysql.sql_require_primary_key": "true",
    })
opensearchdb = ovh.cloud_project.Database("opensearchdb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-opensearch",
    engine="opensearch",
    version="1",
    plan="essential",
    opensearch_acls_enabled=True,
    nodes=[{
        "region": "UK",
    }],
    flavor="db1-4")
pgsqldb = ovh.cloud_project.Database("pgsqldb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-postgresql",
    engine="postgresql",
    version="14",
    plan="essential",
    nodes=[{
        "region": "WAW",
    }],
    flavor="db1-4",
    ip_restrictions=[
        {
            "description": "ip 1",
            "ip": "178.97.6.0/24",
        },
        {
            "description": "ip 2",
            "ip": "178.97.7.0/24",
        },
    ])
redisdb = ovh.cloud_project.Database("redisdb",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-redis",
    engine="redis",
    version="6.2",
    plan="essential",
    nodes=[{
        "region": "BHS",
    }],
    flavor="db1-4")
grafana = ovh.cloud_project.Database("grafana",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    description="my-first-grafana",
    engine="grafana",
    version="9.1",
    plan="essential",
    nodes=[{
        "region": "GRA",
    }],
    flavor="db1-4")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.NewDatabase(ctx, "cassandradb", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-cassandra"),
			Engine:      pulumi.String("cassandra"),
			Version:     pulumi.String("4.0"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Flavor: pulumi.String("db1-4"),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "kafkadb", &cloudproject.DatabaseArgs{
			ServiceName:         pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description:         pulumi.String("my-first-kafka"),
			Engine:              pulumi.String("kafka"),
			Version:             pulumi.String("3.8"),
			Flavor:              pulumi.String("db1-4"),
			Plan:                pulumi.String("business"),
			KafkaRestApi:        pulumi.Bool(true),
			KafkaSchemaRegistry: pulumi.Bool(true),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "m3db", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-m3db"),
			Engine:      pulumi.String("m3db"),
			Version:     pulumi.String("1.2"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Flavor: pulumi.String("db1-7"),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "mongodb", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-mongodb"),
			Engine:      pulumi.String("mongodb"),
			Version:     pulumi.String("5.0"),
			Plan:        pulumi.String("discovery"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("GRA"),
				},
			},
			Flavor: pulumi.String("db1-2"),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "mysqldb", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-mysql"),
			Engine:      pulumi.String("mysql"),
			Version:     pulumi.String("8"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("SBG"),
				},
			},
			Flavor: pulumi.String("db1-4"),
			AdvancedConfiguration: pulumi.StringMap{
				"mysql.sql_mode":                pulumi.String("ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES"),
				"mysql.sql_require_primary_key": pulumi.String("true"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "opensearchdb", &cloudproject.DatabaseArgs{
			ServiceName:           pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description:           pulumi.String("my-first-opensearch"),
			Engine:                pulumi.String("opensearch"),
			Version:               pulumi.String("1"),
			Plan:                  pulumi.String("essential"),
			OpensearchAclsEnabled: pulumi.Bool(true),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("UK"),
				},
			},
			Flavor: pulumi.String("db1-4"),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "pgsqldb", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-postgresql"),
			Engine:      pulumi.String("postgresql"),
			Version:     pulumi.String("14"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("WAW"),
				},
			},
			Flavor: pulumi.String("db1-4"),
			IpRestrictions: cloudproject.DatabaseIpRestrictionArray{
				&cloudproject.DatabaseIpRestrictionArgs{
					Description: pulumi.String("ip 1"),
					Ip:          pulumi.String("178.97.6.0/24"),
				},
				&cloudproject.DatabaseIpRestrictionArgs{
					Description: pulumi.String("ip 2"),
					Ip:          pulumi.String("178.97.7.0/24"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "redisdb", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-redis"),
			Engine:      pulumi.String("redis"),
			Version:     pulumi.String("6.2"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Flavor: pulumi.String("db1-4"),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewDatabase(ctx, "grafana", &cloudproject.DatabaseArgs{
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Description: pulumi.String("my-first-grafana"),
			Engine:      pulumi.String("grafana"),
			Version:     pulumi.String("9.1"),
			Plan:        pulumi.String("essential"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("GRA"),
				},
			},
			Flavor: pulumi.String("db1-4"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var cassandradb = new Ovh.CloudProject.Database("cassandradb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-cassandra",
        Engine = "cassandra",
        Version = "4.0",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Flavor = "db1-4",
    });
    var kafkadb = new Ovh.CloudProject.Database("kafkadb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-kafka",
        Engine = "kafka",
        Version = "3.8",
        Flavor = "db1-4",
        Plan = "business",
        KafkaRestApi = true,
        KafkaSchemaRegistry = true,
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
        },
    });
    var m3db = new Ovh.CloudProject.Database("m3db", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-m3db",
        Engine = "m3db",
        Version = "1.2",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Flavor = "db1-7",
    });
    var mongodb = new Ovh.CloudProject.Database("mongodb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-mongodb",
        Engine = "mongodb",
        Version = "5.0",
        Plan = "discovery",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "GRA",
            },
        },
        Flavor = "db1-2",
    });
    var mysqldb = new Ovh.CloudProject.Database("mysqldb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-mysql",
        Engine = "mysql",
        Version = "8",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "SBG",
            },
        },
        Flavor = "db1-4",
        AdvancedConfiguration = 
        {
            { "mysql.sql_mode", "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES" },
            { "mysql.sql_require_primary_key", "true" },
        },
    });
    var opensearchdb = new Ovh.CloudProject.Database("opensearchdb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-opensearch",
        Engine = "opensearch",
        Version = "1",
        Plan = "essential",
        OpensearchAclsEnabled = true,
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "UK",
            },
        },
        Flavor = "db1-4",
    });
    var pgsqldb = new Ovh.CloudProject.Database("pgsqldb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-postgresql",
        Engine = "postgresql",
        Version = "14",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "WAW",
            },
        },
        Flavor = "db1-4",
        IpRestrictions = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseIpRestrictionArgs
            {
                Description = "ip 1",
                Ip = "178.97.6.0/24",
            },
            new Ovh.CloudProject.Inputs.DatabaseIpRestrictionArgs
            {
                Description = "ip 2",
                Ip = "178.97.7.0/24",
            },
        },
    });
    var redisdb = new Ovh.CloudProject.Database("redisdb", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-redis",
        Engine = "redis",
        Version = "6.2",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Flavor = "db1-4",
    });
    var grafana = new Ovh.CloudProject.Database("grafana", new()
    {
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Description = "my-first-grafana",
        Engine = "grafana",
        Version = "9.1",
        Plan = "essential",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "GRA",
            },
        },
        Flavor = "db1-4",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.Database;
import com.pulumi.ovh.CloudProject.DatabaseArgs;
import com.pulumi.ovh.CloudProject.inputs.DatabaseNodeArgs;
import com.pulumi.ovh.CloudProject.inputs.DatabaseIpRestrictionArgs;
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 cassandradb = new Database("cassandradb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-cassandra")
            .engine("cassandra")
            .version("4.0")
            .plan("essential")
            .nodes(            
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build())
            .flavor("db1-4")
            .build());
        var kafkadb = new Database("kafkadb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-kafka")
            .engine("kafka")
            .version("3.8")
            .flavor("db1-4")
            .plan("business")
            .kafkaRestApi(true)
            .kafkaSchemaRegistry(true)
            .nodes(            
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build())
            .build());
        var m3db = new Database("m3db", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-m3db")
            .engine("m3db")
            .version("1.2")
            .plan("essential")
            .nodes(DatabaseNodeArgs.builder()
                .region("BHS")
                .build())
            .flavor("db1-7")
            .build());
        var mongodb = new Database("mongodb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-mongodb")
            .engine("mongodb")
            .version("5.0")
            .plan("discovery")
            .nodes(DatabaseNodeArgs.builder()
                .region("GRA")
                .build())
            .flavor("db1-2")
            .build());
        var mysqldb = new Database("mysqldb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-mysql")
            .engine("mysql")
            .version("8")
            .plan("essential")
            .nodes(DatabaseNodeArgs.builder()
                .region("SBG")
                .build())
            .flavor("db1-4")
            .advancedConfiguration(Map.ofEntries(
                Map.entry("mysql.sql_mode", "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES"),
                Map.entry("mysql.sql_require_primary_key", "true")
            ))
            .build());
        var opensearchdb = new Database("opensearchdb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-opensearch")
            .engine("opensearch")
            .version("1")
            .plan("essential")
            .opensearchAclsEnabled(true)
            .nodes(DatabaseNodeArgs.builder()
                .region("UK")
                .build())
            .flavor("db1-4")
            .build());
        var pgsqldb = new Database("pgsqldb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-postgresql")
            .engine("postgresql")
            .version("14")
            .plan("essential")
            .nodes(DatabaseNodeArgs.builder()
                .region("WAW")
                .build())
            .flavor("db1-4")
            .ipRestrictions(            
                DatabaseIpRestrictionArgs.builder()
                    .description("ip 1")
                    .ip("178.97.6.0/24")
                    .build(),
                DatabaseIpRestrictionArgs.builder()
                    .description("ip 2")
                    .ip("178.97.7.0/24")
                    .build())
            .build());
        var redisdb = new Database("redisdb", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-redis")
            .engine("redis")
            .version("6.2")
            .plan("essential")
            .nodes(DatabaseNodeArgs.builder()
                .region("BHS")
                .build())
            .flavor("db1-4")
            .build());
        var grafana = new Database("grafana", DatabaseArgs.builder()
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .description("my-first-grafana")
            .engine("grafana")
            .version("9.1")
            .plan("essential")
            .nodes(DatabaseNodeArgs.builder()
                .region("GRA")
                .build())
            .flavor("db1-4")
            .build());
    }
}
resources:
  cassandradb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-cassandra
      engine: cassandra
      version: '4.0'
      plan: essential
      nodes:
        - region: BHS
        - region: BHS
        - region: BHS
      flavor: db1-4
  kafkadb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-kafka
      engine: kafka
      version: '3.8'
      flavor: db1-4
      plan: business
      kafkaRestApi: true
      kafkaSchemaRegistry: true
      nodes:
        - region: DE
        - region: DE
        - region: DE
  m3db:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-m3db
      engine: m3db
      version: '1.2'
      plan: essential
      nodes:
        - region: BHS
      flavor: db1-7
  mongodb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-mongodb
      engine: mongodb
      version: '5.0'
      plan: discovery
      nodes:
        - region: GRA
      flavor: db1-2
  mysqldb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-mysql
      engine: mysql
      version: '8'
      plan: essential
      nodes:
        - region: SBG
      flavor: db1-4
      advancedConfiguration:
        mysql.sql_mode: ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES
        mysql.sql_require_primary_key: 'true'
  opensearchdb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-opensearch
      engine: opensearch
      version: '1'
      plan: essential
      opensearchAclsEnabled: true
      nodes:
        - region: UK
      flavor: db1-4
  pgsqldb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-postgresql
      engine: postgresql
      version: '14'
      plan: essential
      nodes:
        - region: WAW
      flavor: db1-4
      ipRestrictions:
        - description: ip 1
          ip: 178.97.6.0/24
        - description: ip 2
          ip: 178.97.7.0/24
  redisdb:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-redis
      engine: redis
      version: '6.2'
      plan: essential
      nodes:
        - region: BHS
      flavor: db1-4
  grafana:
    type: ovh:CloudProject:Database
    properties:
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      description: my-first-grafana
      engine: grafana
      version: '9.1'
      plan: essential
      nodes:
        - region: GRA
      flavor: db1-4
To deploy a business PostgreSQL service with two nodes on public network:
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const postgresql = new ovh.cloudproject.Database("postgresql", {
    description: "my-first-postgresql",
    engine: "postgresql",
    flavor: "db1-15",
    nodes: [
        {
            region: "GRA",
        },
        {
            region: "GRA",
        },
    ],
    plan: "business",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "14",
});
import pulumi
import pulumi_ovh as ovh
postgresql = ovh.cloud_project.Database("postgresql",
    description="my-first-postgresql",
    engine="postgresql",
    flavor="db1-15",
    nodes=[
        {
            "region": "GRA",
        },
        {
            "region": "GRA",
        },
    ],
    plan="business",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="14")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.NewDatabase(ctx, "postgresql", &cloudproject.DatabaseArgs{
			Description: pulumi.String("my-first-postgresql"),
			Engine:      pulumi.String("postgresql"),
			Flavor:      pulumi.String("db1-15"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("GRA"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("GRA"),
				},
			},
			Plan:        pulumi.String("business"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("14"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var postgresql = new Ovh.CloudProject.Database("postgresql", new()
    {
        Description = "my-first-postgresql",
        Engine = "postgresql",
        Flavor = "db1-15",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "GRA",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "GRA",
            },
        },
        Plan = "business",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "14",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.Database;
import com.pulumi.ovh.CloudProject.DatabaseArgs;
import com.pulumi.ovh.CloudProject.inputs.DatabaseNodeArgs;
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 postgresql = new Database("postgresql", DatabaseArgs.builder()
            .description("my-first-postgresql")
            .engine("postgresql")
            .flavor("db1-15")
            .nodes(            
                DatabaseNodeArgs.builder()
                    .region("GRA")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("GRA")
                    .build())
            .plan("business")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("14")
            .build());
    }
}
resources:
  postgresql:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-postgresql
      engine: postgresql
      flavor: db1-15
      nodes:
        - region: GRA
        - region: GRA
      plan: business
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '14'
To deploy an enterprise MongoDB service with three nodes on private network:
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const mongodb = new ovh.cloudproject.Database("mongodb", {
    description: "my-first-mongodb",
    engine: "mongodb",
    flavor: "db1-30",
    nodes: [
        {
            networkId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region: "SBG",
            subnetId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
        {
            networkId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region: "SBG",
            subnetId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
        {
            networkId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region: "SBG",
            subnetId: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
    ],
    plan: "production",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "5.0",
});
import pulumi
import pulumi_ovh as ovh
mongodb = ovh.cloud_project.Database("mongodb",
    description="my-first-mongodb",
    engine="mongodb",
    flavor="db1-30",
    nodes=[
        {
            "network_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "region": "SBG",
            "subnet_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
        {
            "network_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "region": "SBG",
            "subnet_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
        {
            "network_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "region": "SBG",
            "subnet_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        },
    ],
    plan="production",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="5.0")
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.NewDatabase(ctx, "mongodb", &cloudproject.DatabaseArgs{
			Description: pulumi.String("my-first-mongodb"),
			Engine:      pulumi.String("mongodb"),
			Flavor:      pulumi.String("db1-30"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					NetworkId: pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
					Region:    pulumi.String("SBG"),
					SubnetId:  pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
				},
				&cloudproject.DatabaseNodeArgs{
					NetworkId: pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
					Region:    pulumi.String("SBG"),
					SubnetId:  pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
				},
				&cloudproject.DatabaseNodeArgs{
					NetworkId: pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
					Region:    pulumi.String("SBG"),
					SubnetId:  pulumi.String("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"),
				},
			},
			Plan:        pulumi.String("production"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("5.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var mongodb = new Ovh.CloudProject.Database("mongodb", new()
    {
        Description = "my-first-mongodb",
        Engine = "mongodb",
        Flavor = "db1-30",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                NetworkId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                Region = "SBG",
                SubnetId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                NetworkId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                Region = "SBG",
                SubnetId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                NetworkId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                Region = "SBG",
                SubnetId = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            },
        },
        Plan = "production",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "5.0",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.Database;
import com.pulumi.ovh.CloudProject.DatabaseArgs;
import com.pulumi.ovh.CloudProject.inputs.DatabaseNodeArgs;
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 mongodb = new Database("mongodb", DatabaseArgs.builder()
            .description("my-first-mongodb")
            .engine("mongodb")
            .flavor("db1-30")
            .nodes(            
                DatabaseNodeArgs.builder()
                    .networkId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .region("SBG")
                    .subnetId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .build(),
                DatabaseNodeArgs.builder()
                    .networkId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .region("SBG")
                    .subnetId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .build(),
                DatabaseNodeArgs.builder()
                    .networkId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .region("SBG")
                    .subnetId("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
                    .build())
            .plan("production")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("5.0")
            .build());
    }
}
resources:
  mongodb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-mongodb
      engine: mongodb
      flavor: db1-30
      nodes:
        - networkId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
          region: SBG
          subnetId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
        - networkId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
          region: SBG
          subnetId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
        - networkId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
          region: SBG
          subnetId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
      plan: production
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '5.0'
Create Database Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);@overload
def Database(resource_name: str,
             args: DatabaseArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Database(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             flavor: Optional[str] = None,
             version: Optional[str] = None,
             service_name: Optional[str] = None,
             plan: Optional[str] = None,
             nodes: Optional[Sequence[_cloudproject.DatabaseNodeArgs]] = None,
             engine: Optional[str] = None,
             kafka_rest_api: Optional[bool] = None,
             ip_restrictions: Optional[Sequence[_cloudproject.DatabaseIpRestrictionArgs]] = None,
             advanced_configuration: Optional[Mapping[str, str]] = None,
             kafka_schema_registry: Optional[bool] = None,
             maintenance_time: Optional[str] = None,
             disk_size: Optional[int] = None,
             opensearch_acls_enabled: Optional[bool] = None,
             description: Optional[str] = None,
             backup_time: Optional[str] = None,
             backup_regions: Optional[Sequence[str]] = None)func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
public Database(String name, DatabaseArgs args)
public Database(String name, DatabaseArgs args, CustomResourceOptions options)
type: ovh:CloudProject:Database
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 DatabaseArgs
- 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 DatabaseArgs
- 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 DatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseArgs
- 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 databaseResource = new Ovh.CloudProject.Database("databaseResource", new()
{
    Flavor = "string",
    Version = "string",
    ServiceName = "string",
    Plan = "string",
    Nodes = new[]
    {
        new Ovh.CloudProject.Inputs.DatabaseNodeArgs
        {
            Region = "string",
            NetworkId = "string",
            SubnetId = "string",
        },
    },
    Engine = "string",
    KafkaRestApi = false,
    IpRestrictions = new[]
    {
        new Ovh.CloudProject.Inputs.DatabaseIpRestrictionArgs
        {
            Description = "string",
            Ip = "string",
            Status = "string",
        },
    },
    AdvancedConfiguration = 
    {
        { "string", "string" },
    },
    KafkaSchemaRegistry = false,
    MaintenanceTime = "string",
    DiskSize = 0,
    OpensearchAclsEnabled = false,
    Description = "string",
    BackupTime = "string",
    BackupRegions = new[]
    {
        "string",
    },
});
example, err := CloudProject.NewDatabase(ctx, "databaseResource", &CloudProject.DatabaseArgs{
	Flavor:      pulumi.String("string"),
	Version:     pulumi.String("string"),
	ServiceName: pulumi.String("string"),
	Plan:        pulumi.String("string"),
	Nodes: cloudproject.DatabaseNodeArray{
		&cloudproject.DatabaseNodeArgs{
			Region:    pulumi.String("string"),
			NetworkId: pulumi.String("string"),
			SubnetId:  pulumi.String("string"),
		},
	},
	Engine:       pulumi.String("string"),
	KafkaRestApi: pulumi.Bool(false),
	IpRestrictions: cloudproject.DatabaseIpRestrictionArray{
		&cloudproject.DatabaseIpRestrictionArgs{
			Description: pulumi.String("string"),
			Ip:          pulumi.String("string"),
			Status:      pulumi.String("string"),
		},
	},
	AdvancedConfiguration: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	KafkaSchemaRegistry:   pulumi.Bool(false),
	MaintenanceTime:       pulumi.String("string"),
	DiskSize:              pulumi.Int(0),
	OpensearchAclsEnabled: pulumi.Bool(false),
	Description:           pulumi.String("string"),
	BackupTime:            pulumi.String("string"),
	BackupRegions: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var databaseResource = new Database("databaseResource", DatabaseArgs.builder()
    .flavor("string")
    .version("string")
    .serviceName("string")
    .plan("string")
    .nodes(DatabaseNodeArgs.builder()
        .region("string")
        .networkId("string")
        .subnetId("string")
        .build())
    .engine("string")
    .kafkaRestApi(false)
    .ipRestrictions(DatabaseIpRestrictionArgs.builder()
        .description("string")
        .ip("string")
        .status("string")
        .build())
    .advancedConfiguration(Map.of("string", "string"))
    .kafkaSchemaRegistry(false)
    .maintenanceTime("string")
    .diskSize(0)
    .opensearchAclsEnabled(false)
    .description("string")
    .backupTime("string")
    .backupRegions("string")
    .build());
database_resource = ovh.cloud_project.Database("databaseResource",
    flavor="string",
    version="string",
    service_name="string",
    plan="string",
    nodes=[{
        "region": "string",
        "network_id": "string",
        "subnet_id": "string",
    }],
    engine="string",
    kafka_rest_api=False,
    ip_restrictions=[{
        "description": "string",
        "ip": "string",
        "status": "string",
    }],
    advanced_configuration={
        "string": "string",
    },
    kafka_schema_registry=False,
    maintenance_time="string",
    disk_size=0,
    opensearch_acls_enabled=False,
    description="string",
    backup_time="string",
    backup_regions=["string"])
const databaseResource = new ovh.cloudproject.Database("databaseResource", {
    flavor: "string",
    version: "string",
    serviceName: "string",
    plan: "string",
    nodes: [{
        region: "string",
        networkId: "string",
        subnetId: "string",
    }],
    engine: "string",
    kafkaRestApi: false,
    ipRestrictions: [{
        description: "string",
        ip: "string",
        status: "string",
    }],
    advancedConfiguration: {
        string: "string",
    },
    kafkaSchemaRegistry: false,
    maintenanceTime: "string",
    diskSize: 0,
    opensearchAclsEnabled: false,
    description: "string",
    backupTime: "string",
    backupRegions: ["string"],
});
type: ovh:CloudProject:Database
properties:
    advancedConfiguration:
        string: string
    backupRegions:
        - string
    backupTime: string
    description: string
    diskSize: 0
    engine: string
    flavor: string
    ipRestrictions:
        - description: string
          ip: string
          status: string
    kafkaRestApi: false
    kafkaSchemaRegistry: false
    maintenanceTime: string
    nodes:
        - networkId: string
          region: string
          subnetId: string
    opensearchAclsEnabled: false
    plan: string
    serviceName: string
    version: string
Database 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 Database resource accepts the following input properties:
- Engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- Flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- Nodes
List<DatabaseNode> 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- Plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Version string
- The version of the engine in which the service should be deployed
- AdvancedConfiguration Dictionary<string, string>
- Advanced configuration key / value.
- BackupRegions List<string>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- BackupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- Description string
- Small description of the database service.
- DiskSize int
- The disk size (in GB) of the database service.
- IpRestrictions List<DatabaseIp Restriction> 
- IP Blocks authorized to access to the cluster.
- KafkaRest boolApi 
- Defines whether the REST API is enabled on a kafka cluster
- KafkaSchema boolRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- MaintenanceTime string
- Time on which maintenances can start every day.
- OpensearchAcls boolEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- Engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- Flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- Nodes
[]DatabaseNode Args 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- Plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Version string
- The version of the engine in which the service should be deployed
- AdvancedConfiguration map[string]string
- Advanced configuration key / value.
- BackupRegions []string
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- BackupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- Description string
- Small description of the database service.
- DiskSize int
- The disk size (in GB) of the database service.
- IpRestrictions []DatabaseIp Restriction Args 
- IP Blocks authorized to access to the cluster.
- KafkaRest boolApi 
- Defines whether the REST API is enabled on a kafka cluster
- KafkaSchema boolRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- MaintenanceTime string
- Time on which maintenances can start every day.
- OpensearchAcls boolEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- engine String
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor String
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- nodes
List<DatabaseNode> 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- plan String
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName String
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- version String
- The version of the engine in which the service should be deployed
- advancedConfiguration Map<String,String>
- Advanced configuration key / value.
- backupRegions List<String>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime String
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- description String
- Small description of the database service.
- diskSize Integer
- The disk size (in GB) of the database service.
- ipRestrictions List<DatabaseIp Restriction> 
- IP Blocks authorized to access to the cluster.
- kafkaRest BooleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema BooleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime String
- Time on which maintenances can start every day.
- opensearchAcls BooleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- nodes
DatabaseNode[] 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- version string
- The version of the engine in which the service should be deployed
- advancedConfiguration {[key: string]: string}
- Advanced configuration key / value.
- backupRegions string[]
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- description string
- Small description of the database service.
- diskSize number
- The disk size (in GB) of the database service.
- ipRestrictions DatabaseIp Restriction[] 
- IP Blocks authorized to access to the cluster.
- kafkaRest booleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema booleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime string
- Time on which maintenances can start every day.
- opensearchAcls booleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- engine str
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor str
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- nodes
Sequence[cloudproject.Database Node Args] 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- plan str
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- service_name str
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- version str
- The version of the engine in which the service should be deployed
- advanced_configuration Mapping[str, str]
- Advanced configuration key / value.
- backup_regions Sequence[str]
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backup_time str
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- description str
- Small description of the database service.
- disk_size int
- The disk size (in GB) of the database service.
- ip_restrictions Sequence[cloudproject.Database Ip Restriction Args] 
- IP Blocks authorized to access to the cluster.
- kafka_rest_ boolapi 
- Defines whether the REST API is enabled on a kafka cluster
- kafka_schema_ boolregistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenance_time str
- Time on which maintenances can start every day.
- opensearch_acls_ boolenabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- engine String
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor String
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- nodes List<Property Map>
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- plan String
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName String
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- version String
- The version of the engine in which the service should be deployed
- advancedConfiguration Map<String>
- Advanced configuration key / value.
- backupRegions List<String>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime String
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- description String
- Small description of the database service.
- diskSize Number
- The disk size (in GB) of the database service.
- ipRestrictions List<Property Map>
- IP Blocks authorized to access to the cluster.
- kafkaRest BooleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema BooleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime String
- Time on which maintenances can start every day.
- opensearchAcls BooleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
Outputs
All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:
- CreatedAt string
- Date of the creation of the cluster.
- DiskType string
- Defines the disk type of the database service.
- Endpoints
List<DatabaseEndpoint> 
- List of all endpoints objects of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkType string
- Type of network of the cluster.
- Status string
- Current status of the cluster.
- CreatedAt string
- Date of the creation of the cluster.
- DiskType string
- Defines the disk type of the database service.
- Endpoints
[]DatabaseEndpoint 
- List of all endpoints objects of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkType string
- Type of network of the cluster.
- Status string
- Current status of the cluster.
- createdAt String
- Date of the creation of the cluster.
- diskType String
- Defines the disk type of the database service.
- endpoints
List<DatabaseEndpoint> 
- List of all endpoints objects of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- networkType String
- Type of network of the cluster.
- status String
- Current status of the cluster.
- createdAt string
- Date of the creation of the cluster.
- diskType string
- Defines the disk type of the database service.
- endpoints
DatabaseEndpoint[] 
- List of all endpoints objects of the service.
- id string
- The provider-assigned unique ID for this managed resource.
- networkType string
- Type of network of the cluster.
- status string
- Current status of the cluster.
- created_at str
- Date of the creation of the cluster.
- disk_type str
- Defines the disk type of the database service.
- endpoints
Sequence[cloudproject.Database Endpoint] 
- List of all endpoints objects of the service.
- id str
- The provider-assigned unique ID for this managed resource.
- network_type str
- Type of network of the cluster.
- status str
- Current status of the cluster.
- createdAt String
- Date of the creation of the cluster.
- diskType String
- Defines the disk type of the database service.
- endpoints List<Property Map>
- List of all endpoints objects of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- networkType String
- Type of network of the cluster.
- status String
- Current status of the cluster.
Look up Existing Database Resource
Get an existing Database 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?: DatabaseState, opts?: CustomResourceOptions): Database@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advanced_configuration: Optional[Mapping[str, str]] = None,
        backup_regions: Optional[Sequence[str]] = None,
        backup_time: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        disk_size: Optional[int] = None,
        disk_type: Optional[str] = None,
        endpoints: Optional[Sequence[_cloudproject.DatabaseEndpointArgs]] = None,
        engine: Optional[str] = None,
        flavor: Optional[str] = None,
        ip_restrictions: Optional[Sequence[_cloudproject.DatabaseIpRestrictionArgs]] = None,
        kafka_rest_api: Optional[bool] = None,
        kafka_schema_registry: Optional[bool] = None,
        maintenance_time: Optional[str] = None,
        network_type: Optional[str] = None,
        nodes: Optional[Sequence[_cloudproject.DatabaseNodeArgs]] = None,
        opensearch_acls_enabled: Optional[bool] = None,
        plan: Optional[str] = None,
        service_name: Optional[str] = None,
        status: Optional[str] = None,
        version: Optional[str] = None) -> Databasefunc GetDatabase(ctx *Context, name string, id IDInput, state *DatabaseState, opts ...ResourceOption) (*Database, error)public static Database Get(string name, Input<string> id, DatabaseState? state, CustomResourceOptions? opts = null)public static Database get(String name, Output<String> id, DatabaseState state, CustomResourceOptions options)resources:  _:    type: ovh:CloudProject:Database    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.
- AdvancedConfiguration Dictionary<string, string>
- Advanced configuration key / value.
- BackupRegions List<string>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- BackupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- CreatedAt string
- Date of the creation of the cluster.
- Description string
- Small description of the database service.
- DiskSize int
- The disk size (in GB) of the database service.
- DiskType string
- Defines the disk type of the database service.
- Endpoints
List<DatabaseEndpoint> 
- List of all endpoints objects of the service.
- Engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- Flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- IpRestrictions List<DatabaseIp Restriction> 
- IP Blocks authorized to access to the cluster.
- KafkaRest boolApi 
- Defines whether the REST API is enabled on a kafka cluster
- KafkaSchema boolRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- MaintenanceTime string
- Time on which maintenances can start every day.
- NetworkType string
- Type of network of the cluster.
- Nodes
List<DatabaseNode> 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- OpensearchAcls boolEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- Plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Status string
- Current status of the cluster.
- Version string
- The version of the engine in which the service should be deployed
- AdvancedConfiguration map[string]string
- Advanced configuration key / value.
- BackupRegions []string
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- BackupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- CreatedAt string
- Date of the creation of the cluster.
- Description string
- Small description of the database service.
- DiskSize int
- The disk size (in GB) of the database service.
- DiskType string
- Defines the disk type of the database service.
- Endpoints
[]DatabaseEndpoint Args 
- List of all endpoints objects of the service.
- Engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- Flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- IpRestrictions []DatabaseIp Restriction Args 
- IP Blocks authorized to access to the cluster.
- KafkaRest boolApi 
- Defines whether the REST API is enabled on a kafka cluster
- KafkaSchema boolRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- MaintenanceTime string
- Time on which maintenances can start every day.
- NetworkType string
- Type of network of the cluster.
- Nodes
[]DatabaseNode Args 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- OpensearchAcls boolEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- Plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- ServiceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Status string
- Current status of the cluster.
- Version string
- The version of the engine in which the service should be deployed
- advancedConfiguration Map<String,String>
- Advanced configuration key / value.
- backupRegions List<String>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime String
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- createdAt String
- Date of the creation of the cluster.
- description String
- Small description of the database service.
- diskSize Integer
- The disk size (in GB) of the database service.
- diskType String
- Defines the disk type of the database service.
- endpoints
List<DatabaseEndpoint> 
- List of all endpoints objects of the service.
- engine String
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor String
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- ipRestrictions List<DatabaseIp Restriction> 
- IP Blocks authorized to access to the cluster.
- kafkaRest BooleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema BooleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime String
- Time on which maintenances can start every day.
- networkType String
- Type of network of the cluster.
- nodes
List<DatabaseNode> 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- opensearchAcls BooleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- plan String
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName String
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- status String
- Current status of the cluster.
- version String
- The version of the engine in which the service should be deployed
- advancedConfiguration {[key: string]: string}
- Advanced configuration key / value.
- backupRegions string[]
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime string
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- createdAt string
- Date of the creation of the cluster.
- description string
- Small description of the database service.
- diskSize number
- The disk size (in GB) of the database service.
- diskType string
- Defines the disk type of the database service.
- endpoints
DatabaseEndpoint[] 
- List of all endpoints objects of the service.
- engine string
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor string
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- ipRestrictions DatabaseIp Restriction[] 
- IP Blocks authorized to access to the cluster.
- kafkaRest booleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema booleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime string
- Time on which maintenances can start every day.
- networkType string
- Type of network of the cluster.
- nodes
DatabaseNode[] 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- opensearchAcls booleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- plan string
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName string
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- status string
- Current status of the cluster.
- version string
- The version of the engine in which the service should be deployed
- advanced_configuration Mapping[str, str]
- Advanced configuration key / value.
- backup_regions Sequence[str]
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backup_time str
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- created_at str
- Date of the creation of the cluster.
- description str
- Small description of the database service.
- disk_size int
- The disk size (in GB) of the database service.
- disk_type str
- Defines the disk type of the database service.
- endpoints
Sequence[cloudproject.Database Endpoint Args] 
- List of all endpoints objects of the service.
- engine str
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor str
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- ip_restrictions Sequence[cloudproject.Database Ip Restriction Args] 
- IP Blocks authorized to access to the cluster.
- kafka_rest_ boolapi 
- Defines whether the REST API is enabled on a kafka cluster
- kafka_schema_ boolregistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenance_time str
- Time on which maintenances can start every day.
- network_type str
- Type of network of the cluster.
- nodes
Sequence[cloudproject.Database Node Args] 
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- opensearch_acls_ boolenabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- plan str
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- service_name str
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- status str
- Current status of the cluster.
- version str
- The version of the engine in which the service should be deployed
- advancedConfiguration Map<String>
- Advanced configuration key / value.
- backupRegions List<String>
- List of region where backups are pushed. Not more than 1 regions for MongoDB. Not more than 2 regions for the other engines with one being the same as the nodes[].region field
- backupTime String
- Time on which backups start every day (this parameter is not usable on the following engines: "m3db", "grafana", "kafka", "kafkaconnect", "kafkamirrormaker", "opensearch", "m3aggregator").
- createdAt String
- Date of the creation of the cluster.
- description String
- Small description of the database service.
- diskSize Number
- The disk size (in GB) of the database service.
- diskType String
- Defines the disk type of the database service.
- endpoints List<Property Map>
- List of all endpoints objects of the service.
- engine String
- The database engine you want to deploy. To get a full list of available engine visit. public documentation.
- flavor String
- A valid OVHcloud public cloud database flavor name in which the nodes will be started. Ex: "db1-7". Changing this value upgrade the nodes with the new flavor. You can find the list of flavor names: https://www.ovhcloud.com/fr/public-cloud/prices/
- ipRestrictions List<Property Map>
- IP Blocks authorized to access to the cluster.
- kafkaRest BooleanApi 
- Defines whether the REST API is enabled on a kafka cluster
- kafkaSchema BooleanRegistry 
- Defines whether the schema registry is enabled on a Kafka cluster
- maintenanceTime String
- Time on which maintenances can start every day.
- networkType String
- Type of network of the cluster.
- nodes List<Property Map>
- List of nodes object. Multi region cluster are not yet available, all node should be identical.
- opensearchAcls BooleanEnabled 
- Defines whether the ACLs are enabled on an OpenSearch cluster
- plan String
- Plan of the cluster.- MongoDB: Enum: "discovery", "production", "advanced".
- Mysql, PosgreSQL, Cassandra, M3DB, : Enum: "essential", "business", "enterprise".
- M3 Aggregator: "business", "enterprise".
- Redis: "essential", "business"
 
- serviceName String
- The id of the public cloud project. If omitted,
the OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- status String
- Current status of the cluster.
- version String
- The version of the engine in which the service should be deployed
Supporting Types
DatabaseEndpoint, DatabaseEndpointArgs    
- Component string
- Type of component the URI relates to.
- Domain string
- Domain of the cluster.
- Path string
- Path of the endpoint.
- Port int
- Connection port for the endpoint.
- Scheme string
- Scheme used to generate the URI.
- Ssl bool
- Defines whether the endpoint uses SSL.
- SslMode string
- SSL mode used to connect to the service if the SSL is enabled.
- Uri string
- URI of the endpoint.
- Component string
- Type of component the URI relates to.
- Domain string
- Domain of the cluster.
- Path string
- Path of the endpoint.
- Port int
- Connection port for the endpoint.
- Scheme string
- Scheme used to generate the URI.
- Ssl bool
- Defines whether the endpoint uses SSL.
- SslMode string
- SSL mode used to connect to the service if the SSL is enabled.
- Uri string
- URI of the endpoint.
- component String
- Type of component the URI relates to.
- domain String
- Domain of the cluster.
- path String
- Path of the endpoint.
- port Integer
- Connection port for the endpoint.
- scheme String
- Scheme used to generate the URI.
- ssl Boolean
- Defines whether the endpoint uses SSL.
- sslMode String
- SSL mode used to connect to the service if the SSL is enabled.
- uri String
- URI of the endpoint.
- component string
- Type of component the URI relates to.
- domain string
- Domain of the cluster.
- path string
- Path of the endpoint.
- port number
- Connection port for the endpoint.
- scheme string
- Scheme used to generate the URI.
- ssl boolean
- Defines whether the endpoint uses SSL.
- sslMode string
- SSL mode used to connect to the service if the SSL is enabled.
- uri string
- URI of the endpoint.
- component str
- Type of component the URI relates to.
- domain str
- Domain of the cluster.
- path str
- Path of the endpoint.
- port int
- Connection port for the endpoint.
- scheme str
- Scheme used to generate the URI.
- ssl bool
- Defines whether the endpoint uses SSL.
- ssl_mode str
- SSL mode used to connect to the service if the SSL is enabled.
- uri str
- URI of the endpoint.
- component String
- Type of component the URI relates to.
- domain String
- Domain of the cluster.
- path String
- Path of the endpoint.
- port Number
- Connection port for the endpoint.
- scheme String
- Scheme used to generate the URI.
- ssl Boolean
- Defines whether the endpoint uses SSL.
- sslMode String
- SSL mode used to connect to the service if the SSL is enabled.
- uri String
- URI of the endpoint.
DatabaseIpRestriction, DatabaseIpRestrictionArgs      
- Description string
- Description of the IP restriction
- Ip string
- Authorized IP
- Status string
- Current status of the cluster.
- Description string
- Description of the IP restriction
- Ip string
- Authorized IP
- Status string
- Current status of the cluster.
- description String
- Description of the IP restriction
- ip String
- Authorized IP
- status String
- Current status of the cluster.
- description string
- Description of the IP restriction
- ip string
- Authorized IP
- status string
- Current status of the cluster.
- description str
- Description of the IP restriction
- ip str
- Authorized IP
- status str
- Current status of the cluster.
- description String
- Description of the IP restriction
- ip String
- Authorized IP
- status String
- Current status of the cluster.
DatabaseNode, DatabaseNodeArgs    
- region str
- Public cloud region in which the node should be deployed. Ex: "GRA'.
- network_id str
- Private network id in which the node should be deployed. It's the regional openstackId of the private network
- subnet_id str
- Private subnet ID in which the node is.
Import
OVHcloud Managed database clusters can be imported using the service_name, engine, id of the cluster, separated by “/” E.g.,
bash
$ pulumi import ovh:CloudProject/database:Database my_database_cluster service_name/engine/id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ovhTerraform Provider.