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
Users are profiles to which you can attribute database-level permissions. They allow you to define permissions specific to each type of database usage.
374
376
375
377
378
+
### Delete a user on a Database Instance
379
+
380
+
Delete an existing user on a Database Instance.
381
+
382
+
**Usage:**
383
+
384
+
```
385
+
scw mongodb user delete [arg=value ...]
386
+
```
387
+
388
+
389
+
**Args:**
390
+
391
+
| Name || Description |
392
+
|------|---|-------------|
393
+
| instance-id | Required | UUID of the Database Instance the user belongs to |
394
+
| name | Required | Name of the database user |
395
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
396
+
397
+
398
+
376
399
### List users of a Database Instance
377
400
378
401
List all users of a given Database Instance.
@@ -395,6 +418,30 @@ scw mongodb user list [arg=value ...]
395
418
396
419
397
420
421
+
### Apply user roles
422
+
423
+
Apply preset roles for a user in a Database Instance.
424
+
425
+
**Usage:**
426
+
427
+
```
428
+
scw mongodb user set-role [arg=value ...]
429
+
```
430
+
431
+
432
+
**Args:**
433
+
434
+
| Name || Description |
435
+
|------|---|-------------|
436
+
| instance-id | Required | UUID of the Database Instance the user belongs to |
437
+
| user-name || Name of the database user |
438
+
| roles.{index}.role | One of: `unknown_role`, `read`, `read_write`, `db_admin`, `sync`| Name of the preset role |
439
+
| roles.{index}.database || Name of the database on which the preset role will be used |
440
+
| roles.{index}.any-database || Flag to enable the preset role in all databases |
441
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
442
+
443
+
444
+
398
445
### Update a user on a Database Instance
399
446
400
447
Update the parameters of a user on a Database Instance. You can update the `password` parameter, but you cannot change the name of the user.
0 commit comments