Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/stackit_mongodbflex_user_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stackit mongodbflex user create [flags]
--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
-h, --help Help for "stackit mongodbflex user create"
--instance-id string ID of the instance
--role strings Roles of the user, possible values are ["read" "readWrite" "readWriteAnyDatabase"] (default [read])
--role strings Roles of the user, possible values are ["read" "readWrite" "readAnyDatabase" "readWriteAnyDatabase" "stackitAdmin"] (default [read])
--username string Username of the user. If not specified, a random username will be assigned
```

Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_mongodbflex_user_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stackit mongodbflex user update USER_ID [flags]
--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
-h, --help Help for "stackit mongodbflex user update"
--instance-id string ID of the instance
--role strings Roles of the user, possible values are ["read" "readWrite" "readWriteAnyDatabase"] (default [])
--role strings Roles of the user, possible values are ["read" "readWrite" "readAnyDatabase" "readWriteAnyDatabase" "stackitAdmin"] (default [])
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/mongodbflex/user/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
}

func configureFlags(cmd *cobra.Command) {
roleOptions := []string{"read", "readWrite", "readWriteAnyDatabase"}
roleOptions := []string{"read", "readWrite", "readAnyDatabase", "readWriteAnyDatabase", "stackitAdmin"}

cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
cmd.Flags().String(usernameFlag, "", "Username of the user. If not specified, a random username will be assigned")
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/mongodbflex/user/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
}

func configureFlags(cmd *cobra.Command) {
roleOptions := []string{"read", "readWrite", "readWriteAnyDatabase"}
roleOptions := []string{"read", "readWrite", "readAnyDatabase", "readWriteAnyDatabase", "stackitAdmin"}

cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
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")
Expand Down
Loading