Skip to main content

mongodb_instances_credentials

Overview

Namemongodb_instances_credentials
TypeResource
Idlinode.databases.mongodb_instances_credentials

Fields

NameDatatypeDescription
passwordstringThe randomly-generated root password for the Managed Database instance.
usernamestringThe root username for the Managed Database instance.

Methods

NameAccessible byRequired ParamsDescription
getDatabasesMongoDBInstanceCredentialsSELECTinstanceIdDisplay the root username and password for an accessible Managed MongoDB Database.

The Database must have an active status to perform this command.

Note: New MongoDB Databases cannot currently be created.
_getDatabasesMongoDBInstanceCredentialsEXECinstanceIdDisplay the root username and password for an accessible Managed MongoDB Database.

The Database must have an active status to perform this command.

Note: New MongoDB Databases cannot currently be created.
postDatabasesMongoDBInstanceCredentialsResetEXECinstanceIdReset the root password for a Managed MongoDB Database.

Requires read_write access to the Database.

A new root password is randomly generated and accessible with the Managed MongoDB Database Credentials View (GET /databases/mongodb/instances/{instanceId}/credentials) command.

Only unrestricted Users can access this command, and have access regardless of the acting token's OAuth scopes.

Note: Note that it may take several seconds for credentials to reset.

Note: New MongoDB Databases cannot currently be created.