Viewing docs for Scaleway v1.50.0
published on Tuesday, Jun 2, 2026 by pulumiverse
published on Tuesday, Jun 2, 2026 by pulumiverse
Viewing docs for Scaleway v1.50.0
published on Tuesday, Jun 2, 2026 by pulumiverse
published on Tuesday, Jun 2, 2026 by pulumiverse
Gets information about databases on a MongoDB® instance.
For further information refer to the Managed Databases for MongoDB® API documentation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.mongodb.Instance("main", {
name: "foobar",
version: "7.0",
nodeType: "MGDB-PLAY2-NANO",
nodeNumber: 1,
userName: "my_initial_user",
password: "thiZ_is_v&ry_s3cret",
});
const db = scaleway.mongodb.getDatabasesOutput({
instanceId: main.id,
region: "fr-par",
});
export const databaseNames = db.apply(db => .map(database => (database.name)));
import pulumi
import pulumi_scaleway as scaleway
import pulumiverse_scaleway as scaleway
main = scaleway.mongodb.Instance("main",
name="foobar",
version="7.0",
node_type="MGDB-PLAY2-NANO",
node_number=1,
user_name="my_initial_user",
password="thiZ_is_v&ry_s3cret")
db = scaleway.mongodb.get_databases_output(instance_id=main.id,
region="fr-par")
pulumi.export("databaseNames", db.apply(lambda db: [database.name for database in db.databases]))
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Mongodb.Instance("main", new()
{
Name = "foobar",
Version = "7.0",
NodeType = "MGDB-PLAY2-NANO",
NodeNumber = 1,
UserName = "my_initial_user",
Password = "thiZ_is_v&ry_s3cret",
});
var db = Scaleway.Mongodb.GetDatabases.Invoke(new()
{
InstanceId = main.Id,
Region = "fr-par",
});
return new Dictionary<string, object?>
{
["databaseNames"] = .Select(database =>
{
return database.Name;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getDatabases
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabases(args: GetDatabasesArgs, opts?: InvokeOptions): Promise<GetDatabasesResult>
function getDatabasesOutput(args: GetDatabasesOutputArgs, opts?: InvokeOptions): Output<GetDatabasesResult>def get_databases(instance_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabasesResult
def get_databases_output(instance_id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabasesResult]func GetDatabases(ctx *Context, args *GetDatabasesArgs, opts ...InvokeOption) (*GetDatabasesResult, error)
func GetDatabasesOutput(ctx *Context, args *GetDatabasesOutputArgs, opts ...InvokeOption) GetDatabasesResultOutput> Note: This function is named GetDatabases in the Go SDK.
public static class GetDatabases
{
public static Task<GetDatabasesResult> InvokeAsync(GetDatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetDatabasesResult> Invoke(GetDatabasesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabasesResult> getDatabases(GetDatabasesArgs args, InvokeOptions options)
public static Output<GetDatabasesResult> getDatabases(GetDatabasesArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:mongodb/getDatabases:getDatabases
arguments:
# arguments dictionarydata "scaleway_mongodb_getdatabases" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- Region string
region) The region in which the MongoDB® instance exists.
- Instance
Id string - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- Region string
region) The region in which the MongoDB® instance exists.
- instance_
id string - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- region string
region) The region in which the MongoDB® instance exists.
- instance
Id String - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- region String
region) The region in which the MongoDB® instance exists.
- instance
Id string - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- region string
region) The region in which the MongoDB® instance exists.
- instance_
id str - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- region str
region) The region in which the MongoDB® instance exists.
- instance
Id String - The MongoDB® instance ID. Can be a plain UUID or a regional ID.
- region String
region) The region in which the MongoDB® instance exists.
getDatabases Result
The following output properties are available:
- Databases
List<Pulumiverse.
Scaleway. Mongodb. Outputs. Get Databases Database> - List of databases on the MongoDB® instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region string
- Databases
[]Get
Databases Database - List of databases on the MongoDB® instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region string
- databases list(object)
- List of databases on the MongoDB® instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
id string - region string
- databases
List<Get
Databases Database> - List of databases on the MongoDB® instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - region String
- databases
Get
Databases Database[] - List of databases on the MongoDB® instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - region string
- databases
Sequence[Get
Databases Database] - List of databases on the MongoDB® instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - region str
- databases List<Property Map>
- List of databases on the MongoDB® instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - region String
Supporting Types
GetDatabasesDatabase
- Name string
- Name of the database.
- Name string
- Name of the database.
- name string
- Name of the database.
- name String
- Name of the database.
- name string
- Name of the database.
- name str
- Name of the database.
- name String
- Name of the database.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.50.0
published on Tuesday, Jun 2, 2026 by pulumiverse
published on Tuesday, Jun 2, 2026 by pulumiverse