1. Packages
  2. Scaleway
  3. API Docs
  4. MongoDbInstance
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.MongoDbInstance

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Creates and manages Scaleway MongoDB® instance. For more information refer to the API documentation.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.MongoDbInstance("main", {
        name: "test-mongodb-basic1",
        version: "7.0.12",
        nodeType: "MGDB-PLAY2-NANO",
        nodeNumber: 1,
        userName: "my_initial_user",
        password: "thiZ_is_v&ry_s3cret",
        volumeSizeInGb: 5,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.MongoDbInstance("main",
        name="test-mongodb-basic1",
        version="7.0.12",
        node_type="MGDB-PLAY2-NANO",
        node_number=1,
        user_name="my_initial_user",
        password="thiZ_is_v&ry_s3cret",
        volume_size_in_gb=5)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewMongoDbInstance(ctx, "main", &scaleway.MongoDbInstanceArgs{
    			Name:           pulumi.String("test-mongodb-basic1"),
    			Version:        pulumi.String("7.0.12"),
    			NodeType:       pulumi.String("MGDB-PLAY2-NANO"),
    			NodeNumber:     pulumi.Int(1),
    			UserName:       pulumi.String("my_initial_user"),
    			Password:       pulumi.String("thiZ_is_v&ry_s3cret"),
    			VolumeSizeInGb: pulumi.Int(5),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.MongoDbInstance("main", new()
        {
            Name = "test-mongodb-basic1",
            Version = "7.0.12",
            NodeType = "MGDB-PLAY2-NANO",
            NodeNumber = 1,
            UserName = "my_initial_user",
            Password = "thiZ_is_v&ry_s3cret",
            VolumeSizeInGb = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.MongoDbInstance;
    import com.pulumi.scaleway.MongoDbInstanceArgs;
    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 main = new MongoDbInstance("main", MongoDbInstanceArgs.builder()
                .name("test-mongodb-basic1")
                .version("7.0.12")
                .nodeType("MGDB-PLAY2-NANO")
                .nodeNumber(1)
                .userName("my_initial_user")
                .password("thiZ_is_v&ry_s3cret")
                .volumeSizeInGb(5)
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:MongoDbInstance
        properties:
          name: test-mongodb-basic1
          version: 7.0.12
          nodeType: MGDB-PLAY2-NANO
          nodeNumber: 1
          userName: my_initial_user
          password: thiZ_is_v&ry_s3cret
          volumeSizeInGb: 5
    

    Restore From Snapshot

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const restoredInstance = new scaleway.MongoDbInstance("restored_instance", {
        snapshotId: pn.idscalewayMongodbSnapshot.mainSnapshot.id,
        name: "restored-mongodb-from-snapshot",
        nodeType: "MGDB-PLAY2-NANO",
        nodeNumber: 1,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    restored_instance = scaleway.MongoDbInstance("restored_instance",
        snapshot_id=pn["idscalewayMongodbSnapshot"]["mainSnapshot"]["id"],
        name="restored-mongodb-from-snapshot",
        node_type="MGDB-PLAY2-NANO",
        node_number=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.NewMongoDbInstance(ctx, "restored_instance", &scaleway.MongoDbInstanceArgs{
    			SnapshotId: pulumi.Any(pn.IdscalewayMongodbSnapshot.MainSnapshot.Id),
    			Name:       pulumi.String("restored-mongodb-from-snapshot"),
    			NodeType:   pulumi.String("MGDB-PLAY2-NANO"),
    			NodeNumber: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var restoredInstance = new Scaleway.MongoDbInstance("restored_instance", new()
        {
            SnapshotId = pn.IdscalewayMongodbSnapshot.MainSnapshot.Id,
            Name = "restored-mongodb-from-snapshot",
            NodeType = "MGDB-PLAY2-NANO",
            NodeNumber = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.MongoDbInstance;
    import com.pulumi.scaleway.MongoDbInstanceArgs;
    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 restoredInstance = new MongoDbInstance("restoredInstance", MongoDbInstanceArgs.builder()
                .snapshotId(pn.idscalewayMongodbSnapshot().mainSnapshot().id())
                .name("restored-mongodb-from-snapshot")
                .nodeType("MGDB-PLAY2-NANO")
                .nodeNumber(1)
                .build());
    
        }
    }
    
    resources:
      restoredInstance:
        type: scaleway:MongoDbInstance
        name: restored_instance
        properties:
          snapshotId: ${pn.idscalewayMongodbSnapshot.mainSnapshot.id}
          name: restored-mongodb-from-snapshot
          nodeType: MGDB-PLAY2-NANO
          nodeNumber: 1
    

    Create MongoDbInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MongoDbInstance(name: string, args: MongoDbInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def MongoDbInstance(resource_name: str,
                        args: MongoDbInstanceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def MongoDbInstance(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        node_type: Optional[str] = None,
                        node_number: Optional[int] = None,
                        region: Optional[str] = None,
                        password: Optional[str] = None,
                        project_id: Optional[str] = None,
                        public_network: Optional[MongoDbInstancePublicNetworkArgs] = None,
                        name: Optional[str] = None,
                        settings: Optional[Mapping[str, str]] = None,
                        snapshot_id: Optional[str] = None,
                        tags: Optional[Sequence[str]] = None,
                        user_name: Optional[str] = None,
                        version: Optional[str] = None,
                        volume_size_in_gb: Optional[int] = None,
                        volume_type: Optional[str] = None)
    func NewMongoDbInstance(ctx *Context, name string, args MongoDbInstanceArgs, opts ...ResourceOption) (*MongoDbInstance, error)
    public MongoDbInstance(string name, MongoDbInstanceArgs args, CustomResourceOptions? opts = null)
    public MongoDbInstance(String name, MongoDbInstanceArgs args)
    public MongoDbInstance(String name, MongoDbInstanceArgs args, CustomResourceOptions options)
    
    type: scaleway:MongoDbInstance
    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 MongoDbInstanceArgs
    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 MongoDbInstanceArgs
    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 MongoDbInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MongoDbInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MongoDbInstanceArgs
    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 mongoDbInstanceResource = new Scaleway.MongoDbInstance("mongoDbInstanceResource", new()
    {
        NodeType = "string",
        NodeNumber = 0,
        Region = "string",
        Password = "string",
        ProjectId = "string",
        PublicNetwork = new Scaleway.Inputs.MongoDbInstancePublicNetworkArgs
        {
            DnsRecord = "string",
            Id = "string",
            Port = 0,
        },
        Name = "string",
        Settings = 
        {
            { "string", "string" },
        },
        SnapshotId = "string",
        Tags = new[]
        {
            "string",
        },
        UserName = "string",
        Version = "string",
        VolumeSizeInGb = 0,
        VolumeType = "string",
    });
    
    example, err := scaleway.NewMongoDbInstance(ctx, "mongoDbInstanceResource", &scaleway.MongoDbInstanceArgs{
    	NodeType:   pulumi.String("string"),
    	NodeNumber: pulumi.Int(0),
    	Region:     pulumi.String("string"),
    	Password:   pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	PublicNetwork: &scaleway.MongoDbInstancePublicNetworkArgs{
    		DnsRecord: pulumi.String("string"),
    		Id:        pulumi.String("string"),
    		Port:      pulumi.Int(0),
    	},
    	Name: pulumi.String("string"),
    	Settings: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	SnapshotId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UserName:       pulumi.String("string"),
    	Version:        pulumi.String("string"),
    	VolumeSizeInGb: pulumi.Int(0),
    	VolumeType:     pulumi.String("string"),
    })
    
    var mongoDbInstanceResource = new MongoDbInstance("mongoDbInstanceResource", MongoDbInstanceArgs.builder()
        .nodeType("string")
        .nodeNumber(0)
        .region("string")
        .password("string")
        .projectId("string")
        .publicNetwork(MongoDbInstancePublicNetworkArgs.builder()
            .dnsRecord("string")
            .id("string")
            .port(0)
            .build())
        .name("string")
        .settings(Map.of("string", "string"))
        .snapshotId("string")
        .tags("string")
        .userName("string")
        .version("string")
        .volumeSizeInGb(0)
        .volumeType("string")
        .build());
    
    mongo_db_instance_resource = scaleway.MongoDbInstance("mongoDbInstanceResource",
        node_type="string",
        node_number=0,
        region="string",
        password="string",
        project_id="string",
        public_network={
            "dns_record": "string",
            "id": "string",
            "port": 0,
        },
        name="string",
        settings={
            "string": "string",
        },
        snapshot_id="string",
        tags=["string"],
        user_name="string",
        version="string",
        volume_size_in_gb=0,
        volume_type="string")
    
    const mongoDbInstanceResource = new scaleway.MongoDbInstance("mongoDbInstanceResource", {
        nodeType: "string",
        nodeNumber: 0,
        region: "string",
        password: "string",
        projectId: "string",
        publicNetwork: {
            dnsRecord: "string",
            id: "string",
            port: 0,
        },
        name: "string",
        settings: {
            string: "string",
        },
        snapshotId: "string",
        tags: ["string"],
        userName: "string",
        version: "string",
        volumeSizeInGb: 0,
        volumeType: "string",
    });
    
    type: scaleway:MongoDbInstance
    properties:
        name: string
        nodeNumber: 0
        nodeType: string
        password: string
        projectId: string
        publicNetwork:
            dnsRecord: string
            id: string
            port: 0
        region: string
        settings:
            string: string
        snapshotId: string
        tags:
            - string
        userName: string
        version: string
        volumeSizeInGb: 0
        volumeType: string
    

    MongoDbInstance 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 MongoDbInstance resource accepts the following input properties:

    NodeNumber int
    Number of nodes in the instance
    NodeType string
    The type of MongoDB® intance to create.
    Name string
    Name of the MongoDB® instance.
    Password string
    Password of the user.
    ProjectId string
    The project_id you want to attach the resource to
    PublicNetwork Pulumiverse.Scaleway.Inputs.MongoDbInstancePublicNetwork
    Public network specs details.
    Region string
    The region you want to attach the resource to
    Settings Dictionary<string, string>
    Map of settings to define for the instance.
    SnapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    Tags List<string>
    List of tags attached to the MongoDB® instance.
    UserName string
    Name of the user created when the intance is created.
    Version string
    MongoDB® version of the instance.
    VolumeSizeInGb int
    Volume size in GB.
    VolumeType string
    Volume type of the instance.
    NodeNumber int
    Number of nodes in the instance
    NodeType string
    The type of MongoDB® intance to create.
    Name string
    Name of the MongoDB® instance.
    Password string
    Password of the user.
    ProjectId string
    The project_id you want to attach the resource to
    PublicNetwork MongoDbInstancePublicNetworkArgs
    Public network specs details.
    Region string
    The region you want to attach the resource to
    Settings map[string]string
    Map of settings to define for the instance.
    SnapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    Tags []string
    List of tags attached to the MongoDB® instance.
    UserName string
    Name of the user created when the intance is created.
    Version string
    MongoDB® version of the instance.
    VolumeSizeInGb int
    Volume size in GB.
    VolumeType string
    Volume type of the instance.
    nodeNumber Integer
    Number of nodes in the instance
    nodeType String
    The type of MongoDB® intance to create.
    name String
    Name of the MongoDB® instance.
    password String
    Password of the user.
    projectId String
    The project_id you want to attach the resource to
    publicNetwork MongoDbInstancePublicNetwork
    Public network specs details.
    region String
    The region you want to attach the resource to
    settings Map<String,String>
    Map of settings to define for the instance.
    snapshotId String
    Snapshot ID to restore the MongoDB® instance from.
    tags List<String>
    List of tags attached to the MongoDB® instance.
    userName String
    Name of the user created when the intance is created.
    version String
    MongoDB® version of the instance.
    volumeSizeInGb Integer
    Volume size in GB.
    volumeType String
    Volume type of the instance.
    nodeNumber number
    Number of nodes in the instance
    nodeType string
    The type of MongoDB® intance to create.
    name string
    Name of the MongoDB® instance.
    password string
    Password of the user.
    projectId string
    The project_id you want to attach the resource to
    publicNetwork MongoDbInstancePublicNetwork
    Public network specs details.
    region string
    The region you want to attach the resource to
    settings {[key: string]: string}
    Map of settings to define for the instance.
    snapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    tags string[]
    List of tags attached to the MongoDB® instance.
    userName string
    Name of the user created when the intance is created.
    version string
    MongoDB® version of the instance.
    volumeSizeInGb number
    Volume size in GB.
    volumeType string
    Volume type of the instance.
    node_number int
    Number of nodes in the instance
    node_type str
    The type of MongoDB® intance to create.
    name str
    Name of the MongoDB® instance.
    password str
    Password of the user.
    project_id str
    The project_id you want to attach the resource to
    public_network MongoDbInstancePublicNetworkArgs
    Public network specs details.
    region str
    The region you want to attach the resource to
    settings Mapping[str, str]
    Map of settings to define for the instance.
    snapshot_id str
    Snapshot ID to restore the MongoDB® instance from.
    tags Sequence[str]
    List of tags attached to the MongoDB® instance.
    user_name str
    Name of the user created when the intance is created.
    version str
    MongoDB® version of the instance.
    volume_size_in_gb int
    Volume size in GB.
    volume_type str
    Volume type of the instance.
    nodeNumber Number
    Number of nodes in the instance
    nodeType String
    The type of MongoDB® intance to create.
    name String
    Name of the MongoDB® instance.
    password String
    Password of the user.
    projectId String
    The project_id you want to attach the resource to
    publicNetwork Property Map
    Public network specs details.
    region String
    The region you want to attach the resource to
    settings Map<String>
    Map of settings to define for the instance.
    snapshotId String
    Snapshot ID to restore the MongoDB® instance from.
    tags List<String>
    List of tags attached to the MongoDB® instance.
    userName String
    Name of the user created when the intance is created.
    version String
    MongoDB® version of the instance.
    volumeSizeInGb Number
    Volume size in GB.
    volumeType String
    Volume type of the instance.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MongoDbInstance resource produces the following output properties:

    CreatedAt string
    The date and time of the creation of the MongoDB® instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date and time of the last update of the MongoDB® instance.
    CreatedAt string
    The date and time of the creation of the MongoDB® instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date and time of the last update of the MongoDB® instance.
    createdAt String
    The date and time of the creation of the MongoDB® instance.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date and time of the last update of the MongoDB® instance.
    createdAt string
    The date and time of the creation of the MongoDB® instance.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The date and time of the last update of the MongoDB® instance.
    created_at str
    The date and time of the creation of the MongoDB® instance.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The date and time of the last update of the MongoDB® instance.
    createdAt String
    The date and time of the creation of the MongoDB® instance.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date and time of the last update of the MongoDB® instance.

    Look up Existing MongoDbInstance Resource

    Get an existing MongoDbInstance 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?: MongoDbInstanceState, opts?: CustomResourceOptions): MongoDbInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None,
            node_number: Optional[int] = None,
            node_type: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[str] = None,
            public_network: Optional[MongoDbInstancePublicNetworkArgs] = None,
            region: Optional[str] = None,
            settings: Optional[Mapping[str, str]] = None,
            snapshot_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            updated_at: Optional[str] = None,
            user_name: Optional[str] = None,
            version: Optional[str] = None,
            volume_size_in_gb: Optional[int] = None,
            volume_type: Optional[str] = None) -> MongoDbInstance
    func GetMongoDbInstance(ctx *Context, name string, id IDInput, state *MongoDbInstanceState, opts ...ResourceOption) (*MongoDbInstance, error)
    public static MongoDbInstance Get(string name, Input<string> id, MongoDbInstanceState? state, CustomResourceOptions? opts = null)
    public static MongoDbInstance get(String name, Output<String> id, MongoDbInstanceState 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:
    CreatedAt string
    The date and time of the creation of the MongoDB® instance.
    Name string
    Name of the MongoDB® instance.
    NodeNumber int
    Number of nodes in the instance
    NodeType string
    The type of MongoDB® intance to create.
    Password string
    Password of the user.
    ProjectId string
    The project_id you want to attach the resource to
    PublicNetwork Pulumiverse.Scaleway.Inputs.MongoDbInstancePublicNetwork
    Public network specs details.
    Region string
    The region you want to attach the resource to
    Settings Dictionary<string, string>
    Map of settings to define for the instance.
    SnapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    Tags List<string>
    List of tags attached to the MongoDB® instance.
    UpdatedAt string
    The date and time of the last update of the MongoDB® instance.
    UserName string
    Name of the user created when the intance is created.
    Version string
    MongoDB® version of the instance.
    VolumeSizeInGb int
    Volume size in GB.
    VolumeType string
    Volume type of the instance.
    CreatedAt string
    The date and time of the creation of the MongoDB® instance.
    Name string
    Name of the MongoDB® instance.
    NodeNumber int
    Number of nodes in the instance
    NodeType string
    The type of MongoDB® intance to create.
    Password string
    Password of the user.
    ProjectId string
    The project_id you want to attach the resource to
    PublicNetwork MongoDbInstancePublicNetworkArgs
    Public network specs details.
    Region string
    The region you want to attach the resource to
    Settings map[string]string
    Map of settings to define for the instance.
    SnapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    Tags []string
    List of tags attached to the MongoDB® instance.
    UpdatedAt string
    The date and time of the last update of the MongoDB® instance.
    UserName string
    Name of the user created when the intance is created.
    Version string
    MongoDB® version of the instance.
    VolumeSizeInGb int
    Volume size in GB.
    VolumeType string
    Volume type of the instance.
    createdAt String
    The date and time of the creation of the MongoDB® instance.
    name String
    Name of the MongoDB® instance.
    nodeNumber Integer
    Number of nodes in the instance
    nodeType String
    The type of MongoDB® intance to create.
    password String
    Password of the user.
    projectId String
    The project_id you want to attach the resource to
    publicNetwork MongoDbInstancePublicNetwork
    Public network specs details.
    region String
    The region you want to attach the resource to
    settings Map<String,String>
    Map of settings to define for the instance.
    snapshotId String
    Snapshot ID to restore the MongoDB® instance from.
    tags List<String>
    List of tags attached to the MongoDB® instance.
    updatedAt String
    The date and time of the last update of the MongoDB® instance.
    userName String
    Name of the user created when the intance is created.
    version String
    MongoDB® version of the instance.
    volumeSizeInGb Integer
    Volume size in GB.
    volumeType String
    Volume type of the instance.
    createdAt string
    The date and time of the creation of the MongoDB® instance.
    name string
    Name of the MongoDB® instance.
    nodeNumber number
    Number of nodes in the instance
    nodeType string
    The type of MongoDB® intance to create.
    password string
    Password of the user.
    projectId string
    The project_id you want to attach the resource to
    publicNetwork MongoDbInstancePublicNetwork
    Public network specs details.
    region string
    The region you want to attach the resource to
    settings {[key: string]: string}
    Map of settings to define for the instance.
    snapshotId string
    Snapshot ID to restore the MongoDB® instance from.
    tags string[]
    List of tags attached to the MongoDB® instance.
    updatedAt string
    The date and time of the last update of the MongoDB® instance.
    userName string
    Name of the user created when the intance is created.
    version string
    MongoDB® version of the instance.
    volumeSizeInGb number
    Volume size in GB.
    volumeType string
    Volume type of the instance.
    created_at str
    The date and time of the creation of the MongoDB® instance.
    name str
    Name of the MongoDB® instance.
    node_number int
    Number of nodes in the instance
    node_type str
    The type of MongoDB® intance to create.
    password str
    Password of the user.
    project_id str
    The project_id you want to attach the resource to
    public_network MongoDbInstancePublicNetworkArgs
    Public network specs details.
    region str
    The region you want to attach the resource to
    settings Mapping[str, str]
    Map of settings to define for the instance.
    snapshot_id str
    Snapshot ID to restore the MongoDB® instance from.
    tags Sequence[str]
    List of tags attached to the MongoDB® instance.
    updated_at str
    The date and time of the last update of the MongoDB® instance.
    user_name str
    Name of the user created when the intance is created.
    version str
    MongoDB® version of the instance.
    volume_size_in_gb int
    Volume size in GB.
    volume_type str
    Volume type of the instance.
    createdAt String
    The date and time of the creation of the MongoDB® instance.
    name String
    Name of the MongoDB® instance.
    nodeNumber Number
    Number of nodes in the instance
    nodeType String
    The type of MongoDB® intance to create.
    password String
    Password of the user.
    projectId String
    The project_id you want to attach the resource to
    publicNetwork Property Map
    Public network specs details.
    region String
    The region you want to attach the resource to
    settings Map<String>
    Map of settings to define for the instance.
    snapshotId String
    Snapshot ID to restore the MongoDB® instance from.
    tags List<String>
    List of tags attached to the MongoDB® instance.
    updatedAt String
    The date and time of the last update of the MongoDB® instance.
    userName String
    Name of the user created when the intance is created.
    version String
    MongoDB® version of the instance.
    volumeSizeInGb Number
    Volume size in GB.
    volumeType String
    Volume type of the instance.

    Supporting Types

    MongoDbInstancePublicNetwork, MongoDbInstancePublicNetworkArgs

    DnsRecord string
    The DNS record of your endpoint
    Id string
    The ID of the MongoDB® instance.
    Port int
    TCP port of the endpoint
    DnsRecord string
    The DNS record of your endpoint
    Id string
    The ID of the MongoDB® instance.
    Port int
    TCP port of the endpoint
    dnsRecord String
    The DNS record of your endpoint
    id String
    The ID of the MongoDB® instance.
    port Integer
    TCP port of the endpoint
    dnsRecord string
    The DNS record of your endpoint
    id string
    The ID of the MongoDB® instance.
    port number
    TCP port of the endpoint
    dns_record str
    The DNS record of your endpoint
    id str
    The ID of the MongoDB® instance.
    port int
    TCP port of the endpoint
    dnsRecord String
    The DNS record of your endpoint
    id String
    The ID of the MongoDB® instance.
    port Number
    TCP port of the endpoint

    Import

    MongoDB® instance can be imported using the id, e.g.

    bash

    $ pulumi import scaleway:index/mongoDbInstance:MongoDbInstance main fr-par-1/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse