You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/api-cli/backup-and-restore.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,6 @@ categories:
11
11
- postgresql-and-mysql
12
12
---
13
13
14
-
<Messagetype="important">
15
-
Managed MongoDB® is currently in private beta. Click [here](https://www.scaleway.com/en/managed-mongodb/) to join the waiting list.
16
-
</Message>
17
-
18
14
Managed MongoDB® provides fully-managed document Database Instances, with a MongoDB®-compatible API layer over a PostgreSQL engine to store and retrieve data.
19
15
20
16
This means you can use MongoDB® command line tools to use and manage your MongoDB® Databases.
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/concepts.mdx
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,6 @@ categories:
10
10
- managed-databases
11
11
---
12
12
13
-
<Messagetype="important">
14
-
Managed MongoDB® is currently in private beta. Click [here](https://www.scaleway.com/en/managed-mongodb/) to join the waiting list.
15
-
</Message>
16
-
17
13
## Block Storage Legacy
18
14
19
15
Block Storage Legacy is a volume type that is decoupled from your compute resources. You can increase your storage space to up to 10 TB without changing your node type.
@@ -60,10 +56,6 @@ Compared to traditional database management, which requires customers to provisi
60
56
61
57
<Macroid="region-and-az" />
62
58
63
-
<Messagetype="requirement">
64
-
During the MongoDB® Private Beta, only the France region is available.
65
-
</Message>
66
-
67
59
## Replica-set 1-node
68
60
69
61
An Instance of MongoDB® that runs as a single server and does not provide redundancy or high availability.
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/how-to/create-a-database-instance.mdx
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,6 @@ categories:
13
13
- managed-databases
14
14
---
15
15
16
-
<Messagetype="important">
17
-
Managed MongoDB® is currently in public beta. Click [here](https://www.scaleway.com/en/managed-mongodb/) to join the waiting list.
18
-
</Message>
19
-
20
16
Managed MongoDB® provides fully-managed document Database Instances, with MongoDB® as a database engine.
21
17
22
18
Document databases enable users to store and retrieve data in a document format, such as `json`. Compared to traditional relational databases where data is stored in a table-like format, document-type storage supports storing multiple nested keys and values in each document key.
@@ -41,7 +37,7 @@ Document databases enable users to store and retrieve data in a document format,
41
37
- Configure storage settings. You can:
42
38
- Choose the [IOPS](/block-storage/concepts/#iops) setting, between **5k** and **15k**.
43
39
- Define your volume size. Block Storage volumes can increase up to 10 TB.
44
-
- Review the snapshot configuration. During the private beta, only manual snapshots are available.
40
+
- Review the snapshot configuration.
45
41
4. Configure your Network. Choose one or both of the options below:
46
42
-**Attach to Private Network**: allows your databases to communicate in an isolated and secure network without requiring a public IP address. If you select this option, you must either:
47
43
- Select and attach an existing Private Network and select the network from the drop-down list.
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/how-to/manage-users.mdx
+123-8Lines changed: 123 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,13 @@ categories:
13
13
- managed-databases
14
14
---
15
15
16
-
<Messagetype="important">
17
-
Managed MongoDB® is currently in public beta. Click [here](https://www.scaleway.com/en/managed-mongodb/) to join the waiting list.
18
-
</Message>
19
-
20
16
Users can connect to a database and access its data.
21
17
22
-
<Messagetype="important">
23
-
During the MongoDB® private beta, you can have only one user per Instance. The default user has admin rights on the Database Instance. The name and password of this default user can be set upon Database Instance creation.
24
-
</Message>
25
-
26
18
<Macroid="requirements" />
27
19
28
20
- A Scaleway account logged into the [console](https://console.scaleway.com)
29
21
-[Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
22
+
- A valid [API key](/iam/how-to/create-api-keys/)
30
23
- A [MongoDB® Database Instance](/managed-mongodb-databases/quickstart)
31
24
32
25
## How to change the password of your user
@@ -37,3 +30,125 @@ Users can connect to a database and access its data.
37
30
4. Click **Change password** to do so. A pop-up appears.
38
31
5. Enter your new password and confirm.
39
32
33
+
## How to create multi-users via the API
34
+
35
+
When you create your MongoDB® Database Instance, the first user is created by default and has admin rights.
36
+
37
+
You can create more users and grant them pre-set roles via the [Scaleway Managed MongoDB® API](https://www.scaleway.com/en/developers/api/managed-database-mongodb/).
38
+
39
+
<Messagetype="important">
40
+
All users you create have at first administrator roles, which can be changed after creation with the [Apply user roles](https://www.scaleway.com/en/developers/api/managed-database-mongodb/#path-users-apply-user-roles) call. The default user's role cannot be changed.
41
+
</Message>
42
+
43
+
### How to create a user
44
+
45
+
1. Edit the POST request payload you will use to create your user. Replace the values of each parameter with your values of choice following the parameter descriptions below.
|`password`| Set a password for the database user.|
57
+
58
+
2. Run the following command to create a user. Make sure you include the payload you edited in the previous step. `{instance_id}` corresponds to the UUID of the Managed MongoDB®.
All users you create will have the `read_write`, `db_admin` and `sync` roles on all databases by default.
93
+
94
+
You can follow the steps below to update a user's role(s) to the one(s) of your choice.
95
+
96
+
### How to apply a role to a user
97
+
98
+
1. Edit the POST request payload you will use to update the user role. Replace the values of each parameter with your values of choice following the parameter descriptions below.
99
+
100
+
In this example, we define a single `read_write` role for the user. This role applies only in the `example-db` database.
101
+
102
+
<Messagetype="tip">
103
+
To grant the user this role in all databases, you can set `any_database` to true.
|`read`| Read privileges on all non-system collections and the `system.js` collection. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-read) for an extensive list of the privileges granted to this role. |
122
+
|`read_write`| Read and write privileges on all non-system collections and the `system.js` collection. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-readWrite) for an extensive list of the privileges granted to this role. |
123
+
|`db_admin`| Privileges to perform administrative tasks on the database, such as schema-related tasks, indexing, and gathering statistics. This role does not grant privileges for user and role management. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/manual/reference/built-in-roles/#mongodb-authrole-dbAdmin) for an extensive list of the privileges granted to this role. |
124
+
|`sync`| Role that aggregates three MongoDB roles: |
125
+
||`clusterMonitor` - Read-only access to monitoring tools. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/upcoming/reference/built-in-roles/#mongodb-authrole-clusterMonitor) for an extensive list of the privileges granted to this role. |
126
+
||`backup` - Grants the minimal privileges needed to back up data. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/upcoming/reference/built-in-roles/#mongodb-authrole-backup) for an extensive list of the privileges granted to this role. |
127
+
||`restore` - Grants the privileges needed to restore data from backups. Refer to the [official MongoDB® documentation](https://www.mongodb.com/docs/upcoming/reference/built-in-roles/#mongodb-authrole-restore) for an extensive list of the privileges granted to this role. |
128
+
129
+
2. Run the following command to apply a new role to the user. Make sure you include the payload you edited in the previous step and that you replace the parameters in the call with your information. `{instance_id}` corresponds to the UUID of the Managed MongoDB®.
If the call was successful, you will get the payload with the new role(s) as a response.
149
+
150
+
<Messagetype="note">
151
+
Assigning roles upon user creation will be possible by the second half of 2025. Refer to the [Scaleway Changelog](/docs/changelog/?product=mongodb) to keep up with the latest Managed MongoDB® updates.
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/index.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,6 @@ content:
15
15
label="Managed MongoDB® Quickstart"
16
16
/>
17
17
18
-
<Messagetype="important">
19
-
Managed MongoDB® is currently in public beta. [Fill out the form](https://www.scaleway.com/en/managed-mongodb-form/) to be notified of the General Availability or if you want to get in touch with our team about Managed MongoDB®.
Copy file name to clipboardExpand all lines: pages/managed-mongodb-databases/quickstart.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,6 @@ categories:
13
13
- managed-databases
14
14
---
15
15
16
-
<Messagetype="important">
17
-
Managed MongoDB® is currently in public beta. [Fill out the form](https://www.scaleway.com/en/managed-mongodb/) to be notified of the General Availability or if you want to get in touch with our team about Managed MongoDB®.
18
-
</Message>
19
-
20
16
Managed MongoDB® provides fully-managed document Database Instances, with MongoDB® as a database engine.
21
17
22
18
MongoDB® databases enable users to store and retrieve data in a document format, such as `json`. Compared to traditional relational databases where data is stored in a table-like format, document-type storage supports storing multiple nested keys and values in each document key.
0 commit comments