Scaleway logo
Managed MongoDB®

A Managed MongoDB® Database Instance is composed of one or multiple dedicated compute nodes running a single database engine.


List MongoDB® Database Instances

GET
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances

List all MongoDB® Database Instances in the specified region. By default, the MongoDB® Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as tags and name. For the name parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.

List MongoDB® Database Instances › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par

List MongoDB® Database Instances › query Parameters

tags
​string[]

List Database Instances that have a given tag.

name
​string

Lists Database Instances that match a name pattern.

Criteria to use when ordering Database Instance listings.

Enum values:
created_at_asc
created_at_desc
name_asc
name_desc
status_asc
status_desc
Default: created_at_asc
organization_id
​string

Organization ID of the Database Instance.

project_id
​string

Project ID to list the instances of.

has_maintenance
​boolean

Retrieve pending maintenances for the database instances if given.

page
​integer · int32
page_size
​integer · uint32

List MongoDB® Database Instances › Responses

200

List of all Database Instances available in an Organization or Project.

total_count
​integer · uint64

Total count of Database Instances available in an Organization or Project.


Create a MongoDB® Database Instance

POST
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances

Create a new MongoDB® Database Instance.

Create a MongoDB® Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par

Create a MongoDB® Database Instance › Request Body

version
​string · required

Major version of the MongoDB® engine.

node_amount
​integer · uint32 · required

Number of node to use for the Database Instance.

node_type
​string · required

Type of node to use for the Database Instance.

user_name
​string · required

Username created when the Database Instance is created.

password
​string · required

Password of the initial user.

project_id
​string

The Project ID on which the Database Instance will be created.

name
​string

Name of the Database Instance.

tags
​string[]

Tags to apply to the Database Instance.

Instance volume information.

One or multiple EndpointSpec used to expose your Database Instance.

Create a MongoDB® Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

organization_id
​string

Organization ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown_status
ready
provisioning
configuring
deleting
error
initializing
locked
Default: unknown_status
version
​string

MongoDB® major engine version of the Database Instance.

tags
​string[]

List of tags applied to the Database Instance.

node_amount
​integer · uint32

Number of node in the Database Instance.

node_type
​string

Node type of the Database Instance.

Volumes of the Database Instance.

List of Database Instance endpoints.

created_at
​string | null · date-time

Creation date (must follow the ISO 8601 format). (RFC 3339 format)

region
​string

Region the Database Instance is in.

Snapshot schedule configuration of the Database Instance.

List of settings applied to the Database Instance.

List of pending maintenances applicable to the Database Instance.

upgradable_versions
​string[]

List of MongoDB® versions the Database Instance can be upgraded to.


Get a MongoDB® Database Instance

GET
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances/{instance_id}

Retrieve information about a given MongoDB® Database Instance, specified by the region and instance_id parameters. Its full details, including name, status, IP address and port, are returned in the response object.

Get a MongoDB® Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
instance_id
​string · required

UUID of the Database Instance.

Get a MongoDB® Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

organization_id
​string

Organization ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown_status
ready
provisioning
configuring
deleting
error
initializing
locked
Default: unknown_status
version
​string

MongoDB® major engine version of the Database Instance.

tags
​string[]

List of tags applied to the Database Instance.

node_amount
​integer · uint32

Number of node in the Database Instance.

node_type
​string

Node type of the Database Instance.

Volumes of the Database Instance.

List of Database Instance endpoints.

created_at
​string | null · date-time

Creation date (must follow the ISO 8601 format). (RFC 3339 format)

region
​string

Region the Database Instance is in.

Snapshot schedule configuration of the Database Instance.

List of settings applied to the Database Instance.

List of pending maintenances applicable to the Database Instance.

upgradable_versions
​string[]

List of MongoDB® versions the Database Instance can be upgraded to.


Delete a MongoDB® Database Instance

DELETE
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances/{instance_id}

Delete a given MongoDB® Database Instance, specified by the region and instance_id parameters. Deleting a MongoDB® Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.

Delete a MongoDB® Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
instance_id
​string · required

UUID of the Database Instance to delete.

Delete a MongoDB® Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

organization_id
​string

Organization ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown_status
ready
provisioning
configuring
deleting
error
initializing
locked
Default: unknown_status
version
​string

MongoDB® major engine version of the Database Instance.

tags
​string[]

List of tags applied to the Database Instance.

node_amount
​integer · uint32

Number of node in the Database Instance.

node_type
​string

Node type of the Database Instance.

Volumes of the Database Instance.

List of Database Instance endpoints.

created_at
​string | null · date-time

Creation date (must follow the ISO 8601 format). (RFC 3339 format)

region
​string

Region the Database Instance is in.

Snapshot schedule configuration of the Database Instance.

List of settings applied to the Database Instance.

List of pending maintenances applicable to the Database Instance.

upgradable_versions
​string[]

List of MongoDB® versions the Database Instance can be upgraded to.


Update a MongoDB® Database Instance

PATCH
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances/{instance_id}

Update the parameters of a MongoDB® Database Instance.

Update a MongoDB® Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
instance_id
​string · required

UUID of the Database Instance to update.

Update a MongoDB® Database Instance › Request Body

name
​string | null

Name of the Database Instance.

tags
​array | null

Tags of a Database Instance.

snapshot_schedule_frequency_hours
​integer | null · uint32

In hours.

snapshot_schedule_retention_days
​integer | null · uint32

In days.

is_snapshot_schedule_enabled
​boolean | null

Defines whether or not the snapshot schedule is enabled.

Update a MongoDB® Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

organization_id
​string

Organization ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown_status
ready
provisioning
configuring
deleting
error
initializing
locked
Default: unknown_status
version
​string

MongoDB® major engine version of the Database Instance.

tags
​string[]

List of tags applied to the Database Instance.

node_amount
​integer · uint32

Number of node in the Database Instance.

node_type
​string

Node type of the Database Instance.

Volumes of the Database Instance.

List of Database Instance endpoints.

created_at
​string | null · date-time

Creation date (must follow the ISO 8601 format). (RFC 3339 format)

region
​string

Region the Database Instance is in.

Snapshot schedule configuration of the Database Instance.

List of settings applied to the Database Instance.

List of pending maintenances applicable to the Database Instance.

upgradable_versions
​string[]

List of MongoDB® versions the Database Instance can be upgraded to.


Get the certificate of a Database Instance

GET
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances/{instance_id}/certificate

Retrieve the certificate of a given Database Instance, specified by the instance_id parameter.

Get the certificate of a Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
instance_id
​string · required

UUID of the Database Instance.

Get the certificate of a Database Instance › Responses

200
name
​string
content_type
​string
content
​string

Upgrade a Database Instance

POST
https://api.scaleway.com
/mongodb/v1/regions/{region}/instances/{instance_id}/upgrade

Upgrade your current Database Instance specifications like volume size.

Upgrade a Database Instance › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
instance_id
​string · required

UUID of the Database Instance you want to upgrade. (UUID format)

Upgrade a Database Instance › Request Body

volume_size_bytes
​integer | null · uint64

Increase your Block Storage volume size. (in bytes)

version
​string | null

MongoDB version to upgrade to (e.g., 8.0, 7.0, 8.2).

Upgrade a Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

organization_id
​string

Organization ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown_status
ready
provisioning
configuring
deleting
error
initializing
locked
Default: unknown_status
version
​string

MongoDB® major engine version of the Database Instance.

tags
​string[]

List of tags applied to the Database Instance.

node_amount
​integer · uint32

Number of node in the Database Instance.

node_type
​string

Node type of the Database Instance.

Volumes of the Database Instance.

List of Database Instance endpoints.

created_at
​string | null · date-time

Creation date (must follow the ISO 8601 format). (RFC 3339 format)

region
​string

Region the Database Instance is in.

Snapshot schedule configuration of the Database Instance.

List of settings applied to the Database Instance.

List of pending maintenances applicable to the Database Instance.

upgradable_versions
​string[]

List of MongoDB® versions the Database Instance can be upgraded to.