create
Create MongoDB users.
Usage
ionosctl dbaas mongo user create [flags]Aliases
For mongo command:
[m mdb mongodb mg]For user command:
[u]For create command:
[c]Description
Create MongoDB users.
Options
-u, --api-url string Override default host URL. Preferred over the config file override 'mongo' and env var 'IONOS_API_URL' (default "https://api.ionos.com")
-i, --cluster-id string
--cols strings Set of columns to be printed on output
Available columns: [Username CreatedBy Roles]
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.yaml")
-f, --force Force command to execute without user input
-h, --help Print usage
--limit int Pagination limit: Maximum number of items to return per request (default 50)
-n, --name string The authentication username (required)
--no-headers Don't print table headers when table output is used
--offset int Pagination offset: Number of items to skip before starting to collect the results
-o, --output string Desired output format [text|json|api-json] (default "text")
-p, --password string The authentication password (required)
-q, --quiet Quiet output
-r, --roles string User's role for each db. DB1=Role1,DB2=Role2. Roles: read, readWrite, readAnyDatabase, readWriteAnyDatabase, dbAdmin, dbAdminAnyDatabase, clusterMonitor, enableSharding (required)
-v, --verbose count Increase verbosity level [-v, -vv, -vvv]Examples
ionosctl dbaas mongo user create --cluster-id CLUSTER_ID --name USERNAME --password PASSWORD --roles DATABASE=ROLELast updated
