User

A set of methods for managing MongoDB User resources.

JSON Representation

 {
  "name": "string",
  "clusterId": "string",
  "permissions": [
    {
      "databaseName": "string",
      "roles": [
        "string"
      ]
    }
  ]
}

Methods

Method Description
create Creates a MongoDB user in the specified cluster.
delete Deletes the specified MongoDB user.
get Returns the specified MongoDB User resource.
grantPermission Grants permission to the specified MongoDB user.
list Retrieves the list of MongoDB User resources in the specified cluster.
revokePermission Revokes permission from the specified MongoDB user.
update Updates the specified MongoDB user.