Ovh

v0.1.0 published on Friday, Nov 4, 2022 by lbrlabs

Database

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

Example Usage

Minimum settings for each engine (region choice is up to the user)

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.Ovh;

return await Deployment.RunAsync(() => 
{
    var cassandradb = new Ovh.CloudProject.Database("cassandradb", new()
    {
        Description = "my-first-cassandra",
        Engine = "cassandra",
        Flavor = "db1-4",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "4.0",
    });

    var kafkadb = new Ovh.CloudProject.Database("kafkadb", new()
    {
        Description = "my-first-kafka",
        Engine = "kafka",
        Flavor = "db1-4",
        KafkaRestApi = true,
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "DE",
            },
        },
        Plan = "business",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "3.1",
    });

    var m3db = new Ovh.CloudProject.Database("m3db", new()
    {
        Description = "my-first-m3db",
        Engine = "m3db",
        Flavor = "db1-7",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "1.2",
    });

    var mongodb = new Ovh.CloudProject.Database("mongodb", new()
    {
        Description = "my-first-mongodb",
        Engine = "mongodb",
        Flavor = "db1-2",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "GRA",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "5.0",
    });

    var mysqldb = new Ovh.CloudProject.Database("mysqldb", new()
    {
        Description = "my-first-mysql",
        Engine = "mysql",
        Flavor = "db1-4",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "SBG",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "8",
    });

    var opensearchdb = new Ovh.CloudProject.Database("opensearchdb", new()
    {
        Description = "my-first-opensearch",
        Engine = "opensearch",
        Flavor = "db1-4",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "UK",
            },
        },
        OpensearchAclsEnabled = true,
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "1",
    });

    var pgsqldb = new Ovh.CloudProject.Database("pgsqldb", new()
    {
        Description = "my-first-postgresql",
        Engine = "postgresql",
        Flavor = "db1-4",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "WAW",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "14",
    });

    var redisdb = new Ovh.CloudProject.Database("redisdb", new()
    {
        Description = "my-first-redis",
        Engine = "redis",
        Flavor = "db1-4",
        Nodes = new[]
        {
            new Ovh.CloudProject.Inputs.DatabaseNodeArgs
            {
                Region = "BHS",
            },
        },
        Plan = "essential",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "6.2",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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{
			Description: pulumi.String("my-first-cassandra"),
			Engine:      pulumi.String("cassandra"),
			Flavor:      pulumi.String("db1-4"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("4.0"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "kafkadb", &CloudProject.DatabaseArgs{
			Description:  pulumi.String("my-first-kafka"),
			Engine:       pulumi.String("kafka"),
			Flavor:       pulumi.String("db1-4"),
			KafkaRestApi: pulumi.Bool(true),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("DE"),
				},
			},
			Plan:        pulumi.String("business"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("3.1"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "m3db", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-m3db"),
			Engine:      pulumi.String("m3db"),
			Flavor:      pulumi.String("db1-7"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("1.2"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "mongodb", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-mongodb"),
			Engine:      pulumi.String("mongodb"),
			Flavor:      pulumi.String("db1-2"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("GRA"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("5.0"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "mysqldb", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-mysql"),
			Engine:      pulumi.String("mysql"),
			Flavor:      pulumi.String("db1-4"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("SBG"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("8"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "opensearchdb", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-opensearch"),
			Engine:      pulumi.String("opensearch"),
			Flavor:      pulumi.String("db1-4"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("UK"),
				},
			},
			OpensearchAclsEnabled: pulumi.Bool(true),
			Plan:                  pulumi.String("essential"),
			ServiceName:           pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:               pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "pgsqldb", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-postgresql"),
			Engine:      pulumi.String("postgresql"),
			Flavor:      pulumi.String("db1-4"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("WAW"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("14"),
		})
		if err != nil {
			return err
		}
		_, err = CloudProject.NewDatabase(ctx, "redisdb", &CloudProject.DatabaseArgs{
			Description: pulumi.String("my-first-redis"),
			Engine:      pulumi.String("redis"),
			Flavor:      pulumi.String("db1-4"),
			Nodes: cloudproject.DatabaseNodeArray{
				&cloudproject.DatabaseNodeArgs{
					Region: pulumi.String("BHS"),
				},
			},
			Plan:        pulumi.String("essential"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("6.2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 cassandradb = new Database("cassandradb", DatabaseArgs.builder()        
            .description("my-first-cassandra")
            .engine("cassandra")
            .flavor("db1-4")
            .nodes(            
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("BHS")
                    .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("4.0")
            .build());

        var kafkadb = new Database("kafkadb", DatabaseArgs.builder()        
            .description("my-first-kafka")
            .engine("kafka")
            .flavor("db1-4")
            .kafkaRestApi(true)
            .nodes(            
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build(),
                DatabaseNodeArgs.builder()
                    .region("DE")
                    .build())
            .plan("business")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("3.1")
            .build());

        var m3db = new Database("m3db", DatabaseArgs.builder()        
            .description("my-first-m3db")
            .engine("m3db")
            .flavor("db1-7")
            .nodes(DatabaseNodeArgs.builder()
                .region("BHS")
                .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("1.2")
            .build());

        var mongodb = new Database("mongodb", DatabaseArgs.builder()        
            .description("my-first-mongodb")
            .engine("mongodb")
            .flavor("db1-2")
            .nodes(DatabaseNodeArgs.builder()
                .region("GRA")
                .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("5.0")
            .build());

        var mysqldb = new Database("mysqldb", DatabaseArgs.builder()        
            .description("my-first-mysql")
            .engine("mysql")
            .flavor("db1-4")
            .nodes(DatabaseNodeArgs.builder()
                .region("SBG")
                .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("8")
            .build());

        var opensearchdb = new Database("opensearchdb", DatabaseArgs.builder()        
            .description("my-first-opensearch")
            .engine("opensearch")
            .flavor("db1-4")
            .nodes(DatabaseNodeArgs.builder()
                .region("UK")
                .build())
            .opensearchAclsEnabled(true)
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("1")
            .build());

        var pgsqldb = new Database("pgsqldb", DatabaseArgs.builder()        
            .description("my-first-postgresql")
            .engine("postgresql")
            .flavor("db1-4")
            .nodes(DatabaseNodeArgs.builder()
                .region("WAW")
                .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("14")
            .build());

        var redisdb = new Database("redisdb", DatabaseArgs.builder()        
            .description("my-first-redis")
            .engine("redis")
            .flavor("db1-4")
            .nodes(DatabaseNodeArgs.builder()
                .region("BHS")
                .build())
            .plan("essential")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("6.2")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

cassandradb = ovh.cloud_project.Database("cassandradb",
    description="my-first-cassandra",
    engine="cassandra",
    flavor="db1-4",
    nodes=[
        ovh.cloud_project.DatabaseNodeArgs(
            region="BHS",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            region="BHS",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            region="BHS",
        ),
    ],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="4.0")
kafkadb = ovh.cloud_project.Database("kafkadb",
    description="my-first-kafka",
    engine="kafka",
    flavor="db1-4",
    kafka_rest_api=True,
    nodes=[
        ovh.cloud_project.DatabaseNodeArgs(
            region="DE",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            region="DE",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            region="DE",
        ),
    ],
    plan="business",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="3.1")
m3db = ovh.cloud_project.Database("m3db",
    description="my-first-m3db",
    engine="m3db",
    flavor="db1-7",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="BHS",
    )],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="1.2")
mongodb = ovh.cloud_project.Database("mongodb",
    description="my-first-mongodb",
    engine="mongodb",
    flavor="db1-2",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="GRA",
    )],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="5.0")
mysqldb = ovh.cloud_project.Database("mysqldb",
    description="my-first-mysql",
    engine="mysql",
    flavor="db1-4",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="SBG",
    )],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="8")
opensearchdb = ovh.cloud_project.Database("opensearchdb",
    description="my-first-opensearch",
    engine="opensearch",
    flavor="db1-4",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="UK",
    )],
    opensearch_acls_enabled=True,
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="1")
pgsqldb = ovh.cloud_project.Database("pgsqldb",
    description="my-first-postgresql",
    engine="postgresql",
    flavor="db1-4",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="WAW",
    )],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="14")
redisdb = ovh.cloud_project.Database("redisdb",
    description="my-first-redis",
    engine="redis",
    flavor="db1-4",
    nodes=[ovh.cloud_project.DatabaseNodeArgs(
        region="BHS",
    )],
    plan="essential",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="6.2")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const cassandradb = new ovh.CloudProject.Database("cassandradb", {
    description: "my-first-cassandra",
    engine: "cassandra",
    flavor: "db1-4",
    nodes: [
        {
            region: "BHS",
        },
        {
            region: "BHS",
        },
        {
            region: "BHS",
        },
    ],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "4.0",
});
const kafkadb = new ovh.CloudProject.Database("kafkadb", {
    description: "my-first-kafka",
    engine: "kafka",
    flavor: "db1-4",
    kafkaRestApi: true,
    nodes: [
        {
            region: "DE",
        },
        {
            region: "DE",
        },
        {
            region: "DE",
        },
    ],
    plan: "business",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "3.1",
});
const m3db = new ovh.CloudProject.Database("m3db", {
    description: "my-first-m3db",
    engine: "m3db",
    flavor: "db1-7",
    nodes: [{
        region: "BHS",
    }],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "1.2",
});
const mongodb = new ovh.CloudProject.Database("mongodb", {
    description: "my-first-mongodb",
    engine: "mongodb",
    flavor: "db1-2",
    nodes: [{
        region: "GRA",
    }],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "5.0",
});
const mysqldb = new ovh.CloudProject.Database("mysqldb", {
    description: "my-first-mysql",
    engine: "mysql",
    flavor: "db1-4",
    nodes: [{
        region: "SBG",
    }],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "8",
});
const opensearchdb = new ovh.CloudProject.Database("opensearchdb", {
    description: "my-first-opensearch",
    engine: "opensearch",
    flavor: "db1-4",
    nodes: [{
        region: "UK",
    }],
    opensearchAclsEnabled: true,
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "1",
});
const pgsqldb = new ovh.CloudProject.Database("pgsqldb", {
    description: "my-first-postgresql",
    engine: "postgresql",
    flavor: "db1-4",
    nodes: [{
        region: "WAW",
    }],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "14",
});
const redisdb = new ovh.CloudProject.Database("redisdb", {
    description: "my-first-redis",
    engine: "redis",
    flavor: "db1-4",
    nodes: [{
        region: "BHS",
    }],
    plan: "essential",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "6.2",
});
resources:
  cassandradb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-cassandra
      engine: cassandra
      flavor: db1-4
      nodes:
        - region: BHS
        - region: BHS
        - region: BHS
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '4.0'
  kafkadb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-kafka
      engine: kafka
      flavor: db1-4
      kafkaRestApi: true
      nodes:
        - region: DE
        - region: DE
        - region: DE
      plan: business
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '3.1'
  m3db:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-m3db
      engine: m3db
      flavor: db1-7
      nodes:
        - region: BHS
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '1.2'
  mongodb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-mongodb
      engine: mongodb
      flavor: db1-2
      nodes:
        - region: GRA
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '5.0'
  mysqldb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-mysql
      engine: mysql
      flavor: db1-4
      nodes:
        - region: SBG
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '8'
  opensearchdb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-opensearch
      engine: opensearch
      flavor: db1-4
      nodes:
        - region: UK
      opensearchAclsEnabled: true
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '1'
  pgsqldb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-postgresql
      engine: postgresql
      flavor: db1-4
      nodes:
        - region: WAW
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '14'
  redisdb:
    type: ovh:CloudProject:Database
    properties:
      description: my-first-redis
      engine: redis
      flavor: db1-4
      nodes:
        - region: BHS
      plan: essential
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '6.2'

To deploy a business PostgreSQL service with two nodes on public network

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.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 main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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
	})
}
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());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

postgresql = ovh.cloud_project.Database("postgresql",
    description="my-first-postgresql",
    engine="postgresql",
    flavor="db1-15",
    nodes=[
        ovh.cloud_project.DatabaseNodeArgs(
            region="GRA",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            region="GRA",
        ),
    ],
    plan="business",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="14")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@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",
});
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

using System.Collections.Generic;
using Pulumi;
using Ovh = Lbrlabs.PulumiPackage.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 = "enterprise",
        ServiceName = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        Version = "5.0",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-ovh/sdk/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("enterprise"),
			ServiceName: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			Version:     pulumi.String("5.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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("enterprise")
            .serviceName("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
            .version("5.0")
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_ovh as ovh

mongodb = ovh.cloud_project.Database("mongodb",
    description="my-first-mongodb",
    engine="mongodb",
    flavor="db1-30",
    nodes=[
        ovh.cloud_project.DatabaseNodeArgs(
            network_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region="SBG",
            subnet_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            network_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region="SBG",
            subnet_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        ),
        ovh.cloud_project.DatabaseNodeArgs(
            network_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            region="SBG",
            subnet_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        ),
    ],
    plan="enterprise",
    service_name="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version="5.0")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@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: "enterprise",
    serviceName: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    version: "5.0",
});
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: enterprise
      serviceName: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      version: '5.0'

Create Database Resource

new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);
@overload
def Database(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             engine: Optional[str] = None,
             flavor: Optional[str] = None,
             kafka_rest_api: Optional[bool] = None,
             nodes: Optional[Sequence[_cloudproject.DatabaseNodeArgs]] = None,
             opensearch_acls_enabled: Optional[bool] = None,
             plan: Optional[str] = None,
             service_name: Optional[str] = None,
             version: Optional[str] = None)
@overload
def Database(resource_name: str,
             args: DatabaseArgs,
             opts: Optional[ResourceOptions] = 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.

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.

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

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<Lbrlabs.PulumiPackage.Ovh.CloudProject.Inputs.DatabaseNodeArgs>

List of nodes object. Multi region cluster are not yet available, all node should be identical.

Plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Version string

The version of the engine in which the service should be deployed

Description string

Small description of the database service.

KafkaRestApi bool

Defines whether the REST API is enabled on a kafka cluster

OpensearchAclsEnabled bool

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 []DatabaseNodeArgs

List of nodes object. Multi region cluster are not yet available, all node should be identical.

Plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Version string

The version of the engine in which the service should be deployed

Description string

Small description of the database service.

KafkaRestApi bool

Defines whether the REST API is enabled on a kafka cluster

OpensearchAclsEnabled bool

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<DatabaseNodeArgs>

List of nodes object. Multi region cluster are not yet available, all node should be identical.

plan String

Plan of the cluster. Enum: "essential", "business", "enterprise".

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

version String

The version of the engine in which the service should be deployed

description String

Small description of the database service.

kafkaRestApi Boolean

Defines whether the REST API is enabled on a kafka cluster

opensearchAclsEnabled Boolean

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 DatabaseNodeArgs[]

List of nodes object. Multi region cluster are not yet available, all node should be identical.

plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

version string

The version of the engine in which the service should be deployed

description string

Small description of the database service.

kafkaRestApi boolean

Defines whether the REST API is enabled on a kafka cluster

opensearchAclsEnabled boolean

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 DatabaseNodeArgs]

List of nodes object. Multi region cluster are not yet available, all node should be identical.

plan str

Plan of the cluster. Enum: "essential", "business", "enterprise".

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

version str

The version of the engine in which the service should be deployed

description str

Small description of the database service.

kafka_rest_api bool

Defines whether the REST API is enabled on a kafka cluster

opensearch_acls_enabled bool

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. Enum: "essential", "business", "enterprise".

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

version String

The version of the engine in which the service should be deployed

description String

Small description of the database service.

kafkaRestApi Boolean

Defines whether the REST API is enabled on a kafka cluster

opensearchAclsEnabled Boolean

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:

BackupTime string

Time on which backups start every day.

CreatedAt string

Date of the creation of the cluster.

Endpoints List<Lbrlabs.PulumiPackage.Ovh.CloudProject.Outputs.DatabaseEndpoint>

List of all endpoints objects of the service.

Id string

The provider-assigned unique ID for this managed resource.

MaintenanceTime string

Time on which maintenances can start every day.

NetworkType string

Type of network of the cluster.

Status string

Current status of the cluster.

BackupTime string

Time on which backups start every day.

CreatedAt string

Date of the creation of the cluster.

Endpoints []DatabaseEndpoint

List of all endpoints objects of the service.

Id string

The provider-assigned unique ID for this managed resource.

MaintenanceTime string

Time on which maintenances can start every day.

NetworkType string

Type of network of the cluster.

Status string

Current status of the cluster.

backupTime String

Time on which backups start every day.

createdAt String

Date of the creation of the cluster.

endpoints List<DatabaseEndpoint>

List of all endpoints objects of the service.

id String

The provider-assigned unique ID for this managed resource.

maintenanceTime String

Time on which maintenances can start every day.

networkType String

Type of network of the cluster.

status String

Current status of the cluster.

backupTime string

Time on which backups start every day.

createdAt string

Date of the creation of the cluster.

endpoints DatabaseEndpoint[]

List of all endpoints objects of the service.

id string

The provider-assigned unique ID for this managed resource.

maintenanceTime string

Time on which maintenances can start every day.

networkType string

Type of network of the cluster.

status string

Current status of the cluster.

backup_time str

Time on which backups start every day.

created_at str

Date of the creation of the cluster.

endpoints DatabaseEndpoint]

List of all endpoints objects of the service.

id str

The provider-assigned unique ID for this managed resource.

maintenance_time str

Time on which maintenances can start every day.

network_type str

Type of network of the cluster.

status str

Current status of the cluster.

backupTime String

Time on which backups start every day.

createdAt String

Date of the creation of the cluster.

endpoints List<Property Map>

List of all endpoints objects of the service.

id String

The provider-assigned unique ID for this managed resource.

maintenanceTime String

Time on which maintenances can start every day.

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,
        backup_time: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        endpoints: Optional[Sequence[_cloudproject.DatabaseEndpointArgs]] = None,
        engine: Optional[str] = None,
        flavor: Optional[str] = None,
        kafka_rest_api: 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) -> Database
func 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)
Resource lookup is not supported in YAML
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:
BackupTime string

Time on which backups start every day.

CreatedAt string

Date of the creation of the cluster.

Description string

Small description of the database service.

Endpoints List<Lbrlabs.PulumiPackage.Ovh.CloudProject.Inputs.DatabaseEndpointArgs>

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/

KafkaRestApi bool

Defines whether the REST API 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<Lbrlabs.PulumiPackage.Ovh.CloudProject.Inputs.DatabaseNodeArgs>

List of nodes object. Multi region cluster are not yet available, all node should be identical.

OpensearchAclsEnabled bool

Defines whether the ACLs are enabled on an OpenSearch cluster

Plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

Current status of the cluster.

Version string

The version of the engine in which the service should be deployed

BackupTime string

Time on which backups start every day.

CreatedAt string

Date of the creation of the cluster.

Description string

Small description of the database service.

Endpoints []DatabaseEndpointArgs

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/

KafkaRestApi bool

Defines whether the REST API 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 []DatabaseNodeArgs

List of nodes object. Multi region cluster are not yet available, all node should be identical.

OpensearchAclsEnabled bool

Defines whether the ACLs are enabled on an OpenSearch cluster

Plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

ServiceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

Status string

Current status of the cluster.

Version string

The version of the engine in which the service should be deployed

backupTime String

Time on which backups start every day.

createdAt String

Date of the creation of the cluster.

description String

Small description of the database service.

endpoints List<DatabaseEndpointArgs>

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/

kafkaRestApi Boolean

Defines whether the REST API 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<DatabaseNodeArgs>

List of nodes object. Multi region cluster are not yet available, all node should be identical.

opensearchAclsEnabled Boolean

Defines whether the ACLs are enabled on an OpenSearch cluster

plan String

Plan of the cluster. Enum: "essential", "business", "enterprise".

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status String

Current status of the cluster.

version String

The version of the engine in which the service should be deployed

backupTime string

Time on which backups start every day.

createdAt string

Date of the creation of the cluster.

description string

Small description of the database service.

endpoints DatabaseEndpointArgs[]

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/

kafkaRestApi boolean

Defines whether the REST API 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 DatabaseNodeArgs[]

List of nodes object. Multi region cluster are not yet available, all node should be identical.

opensearchAclsEnabled boolean

Defines whether the ACLs are enabled on an OpenSearch cluster

plan string

Plan of the cluster. Enum: "essential", "business", "enterprise".

serviceName string

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status string

Current status of the cluster.

version string

The version of the engine in which the service should be deployed

backup_time str

Time on which backups start every day.

created_at str

Date of the creation of the cluster.

description str

Small description of the database service.

endpoints DatabaseEndpointArgs]

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/

kafka_rest_api bool

Defines whether the REST API 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 DatabaseNodeArgs]

List of nodes object. Multi region cluster are not yet available, all node should be identical.

opensearch_acls_enabled bool

Defines whether the ACLs are enabled on an OpenSearch cluster

plan str

Plan of the cluster. Enum: "essential", "business", "enterprise".

service_name str

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

status str

Current status of the cluster.

version str

The version of the engine in which the service should be deployed

backupTime String

Time on which backups start every day.

createdAt String

Date of the creation of the cluster.

description String

Small description 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/

kafkaRestApi Boolean

Defines whether the REST API 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.

opensearchAclsEnabled Boolean

Defines whether the ACLs are enabled on an OpenSearch cluster

plan String

Plan of the cluster. Enum: "essential", "business", "enterprise".

serviceName String

The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment 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

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.

DatabaseNode

Region string

Public cloud region in which the node should be deployed. Ex: "GRA'.

NetworkId string

Private network id in which the node should be deployed. It's the regional openstackId of the private network

SubnetId string

Private subnet ID in which the node is.

Region string

Public cloud region in which the node should be deployed. Ex: "GRA'.

NetworkId string

Private network id in which the node should be deployed. It's the regional openstackId of the private network

SubnetId string

Private subnet ID in which the node is.

region String

Public cloud region in which the node should be deployed. Ex: "GRA'.

networkId String

Private network id in which the node should be deployed. It's the regional openstackId of the private network

subnetId String

Private subnet ID in which the node is.

region string

Public cloud region in which the node should be deployed. Ex: "GRA'.

networkId string

Private network id in which the node should be deployed. It's the regional openstackId of the private network

subnetId string

Private subnet ID in which the node is.

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.

region String

Public cloud region in which the node should be deployed. Ex: "GRA'.

networkId String

Private network id in which the node should be deployed. It's the regional openstackId of the private network

subnetId String

Private subnet ID in which the node is.

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.