Creates and manages DbaaS MongoDB users.
Manages a DbaaS Mongo User. .
cluster_id
- (Required)[string] The unique ID of the cluster. Updates to the value of the field force the cluster to be re-created.
username
- (Required)[string] Used for authentication. Updates to the value of the field force the cluster to be re-created.
database
- (Required)[string] The user database to use for authentication. Updates to the value of the field force the cluster to be re-created.
password
- (Required)[string] User password. Updates to the value of the field force the cluster to be re-created.
roles
- (Required)[string] a list of mongodb user roles. Updates to the value of the field force the cluster to be re-created.
role
- (Required)[true] Mongodb user role. Examples: read, readWrite, readAnyDatabase, readWriteAnyDatabase, dbAdmin, dbAdminAnyDatabase, clusterMonitor.
database
- (Required)[true] Database on which to apply the role.
NOTE: MongoDb users do not support update at the moment. Changing any attribute will result in the user being re-created.
Resource DBaaS MongoDB User can be imported using the clusterID
and the username
. First, define an empty resource in the plan:
Then you can import the user using the following command: