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
@@ -29,7 +29,7 @@ stackit mongodbflex user create [flags]
29
29
--database string The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it
30
30
-h, --help Help for "stackit mongodbflex user create"
31
31
--instance-id string ID of the instance
32
-
--roles strings Roles of the user, possible values are ["read" "readWrite"] (default [read])
32
+
--role strings Roles of the user, possible values are ["read" "readWrite"] (default [read])
33
33
--username string Username of the user. If not specified, a random username will be assigned
Copy file name to clipboardExpand all lines: docs/stackit_mongodbflex_user_update.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ stackit mongodbflex user update USER_ID [flags]
14
14
15
15
```
16
16
Update the roles of a MongoDB Flex user with ID "xxx" of instance with ID "yyy"
17
-
$ stackit mongodbflex user update xxx --instance-id yyy --roles read
17
+
$ stackit mongodbflex user update xxx --instance-id yyy --role read
18
18
```
19
19
20
20
### Options
@@ -23,7 +23,7 @@ stackit mongodbflex user update USER_ID [flags]
23
23
--database string The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it
24
24
-h, --help Help for "stackit mongodbflex user update"
25
25
--instance-id string ID of the instance
26
-
--roles strings Roles of the user, possible values are ["read" "readWrite"] (default [])
26
+
--role strings Roles of the user, possible values are ["read" "readWrite"] (default [])
cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
114
114
cmd.Flags().String(usernameFlag, "", "Username of the user. If not specified, a random username will be assigned")
115
115
cmd.Flags().String(databaseFlag, "", "The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it")
116
-
cmd.Flags().Var(flags.EnumSliceFlag(false, rolesDefault, rolesOptions...), rolesFlag, fmt.Sprintf("Roles of the user, possible values are %q", rolesOptions))
116
+
cmd.Flags().Var(flags.EnumSliceFlag(false, rolesDefault, roleOptions...), roleFlag, fmt.Sprintf("Roles of the user, possible values are %q", roleOptions))
cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
100
100
cmd.Flags().String(databaseFlag, "", "The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it")
101
-
cmd.Flags().Var(flags.EnumSliceFlag(false, nil, rolesOptions...), rolesFlag, fmt.Sprintf("Roles of the user, possible values are %q", rolesOptions))
101
+
cmd.Flags().Var(flags.EnumSliceFlag(false, nil, roleOptions...), roleFlag, fmt.Sprintf("Roles of the user, possible values are %q", roleOptions))
cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
111
-
cmd.Flags().String(usernameFlag, "", "Username of the user. If not specified, a random username will be assigned")
112
-
cmd.Flags().Var(flags.EnumSliceFlag(false, rolesDefault, rolesOptions...), rolesFlag, fmt.Sprintf("Roles of the user, possible values are %q", rolesOptions))
111
+
cmd.Flags().String(usernameFlag, "", "Username of the user")
112
+
cmd.Flags().Var(flags.EnumSliceFlag(false, rolesDefault, roleOptions...), roleFlag, fmt.Sprintf("Roles of the user, possible values are %q", roleOptions))
0 commit comments