Skip to main content

mongodb_instances

Overview

Namemongodb_instances
TypeResource
Idlinode.databases.mongodb_instances

Fields

NameDatatypeDescription
idintegerA unique ID that can be used to identify and reference the Managed Database.
allow_listarrayA list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.

By default, this is an empty array ([]), which blocks all connections (both public and private) to the Managed Database.

If 0.0.0.0/0 is a value in this list, then all IP addresses can access the Managed Database.
cluster_sizeintegerThe number of Linode Instance nodes deployed to the Managed Database.

Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes.
compression_typestringThe type of data compression for this Database.

Snappy has a lower comparative compression ratio and resource consumption rate.

Zlip has a higher comparative compression ratio and resource consumption rate.
createdstringWhen this Managed Database was created.
encryptedbooleanWhether the Managed Databases is encrypted.
enginestringThe Managed Database engine type.
hostsobjectThe primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
labelstringA unique, user-defined string referring to the Managed Database.
peersarrayAn array of peer addresses for this Database.
portintegerThe access port for this Managed Database.
regionstringThe Region ID for the Managed Database.
replica_setstringLabel for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same replica set.

If null, the Database is not included in any replica set.
ssl_connectionbooleanWhether to require SSL credentials to establish a connection to the Managed Database.

Use the Managed MongoDB Database Credentials View (GET /databases/mongodb/instances/{instanceId}/credentials) command for access information.
statusstringThe operating status of the Managed Database.
storage_enginestringThe type of storage engine for this Database.

Note: MMAPV1 is not available for MongoDB versions 4.0 and above.
typestringThe Linode Instance type used by the Managed Database for its nodes.
updatedstringWhen this Managed Database was last updated.
updatesobjectConfiguration settings for automated patch update maintenance for the Managed Database.
versionstringThe Managed Database engine version.

Methods

NameAccessible byRequired ParamsDescription
getDatabasesMongoDBInstanceSELECTinstanceIdDisplay information for a single, accessible Managed MongoDB Database.

Note: New MongoDB Databases cannot currently be created.
getDatabasesMongoDBInstancesSELECTDisplay all accessible Managed MongoDB Databases.

Note: New MongoDB Databases cannot currently be created.
deleteDatabasesMongoDBInstanceDELETEinstanceIdRemove a Managed MongoDB Database from your Account.

Requires read_write access to the Database.

The Database must have an active, failed, or degraded status to perform this command.

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

Note: New MongoDB Databases cannot currently be created.
_getDatabasesMongoDBInstanceEXECinstanceIdDisplay information for a single, accessible Managed MongoDB Database.

Note: New MongoDB Databases cannot currently be created.
_getDatabasesMongoDBInstancesEXECDisplay all accessible Managed MongoDB Databases.

Note: New MongoDB Databases cannot currently be created.
postDatabasesMongoDBInstancePatchEXECinstanceIdApply security patches and updates to the underlying operating system of the Managed MongoDB Database. This function runs during regular maintenance windows, which are configurable with the Managed MongoDB Database Update (PUT /databases/mongodb/instances/{instanceId}) command.
Requires read_write access to the Database.

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

Note:

If your database cluster is configured with a single node, you will experience downtime during this maintenance. Consider upgrading to a high availability plan to avoid any downtime due to maintenance.

The database software is not updated automatically. To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.

Note: New MongoDB Databases cannot currently be created.
putDatabasesMongoDBInstanceEXECinstanceIdUpdate a Managed MongoDB Database.

Requires read_write access to the Database.

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

Updating addresses in the allow_list overwrites any existing addresses.

IP addresses and ranges on this list can access the Managed Database. All other sources are blocked.

If 0.0.0.0/0 is a value in this list, then all IP addresses can access the Managed Database.

Entering an empty array ([]) blocks all connections (both public and private) to the Managed Database.

Note: Updates to the allow_list may take a short period of time to complete, making this command inappropriate for rapid successive updates to this property.

All Managed Databases include automatic patch updates, which apply security patches and updates to the underlying operating system of the Managed MongoDB Database. The maintenance window for these updates is configured with the Managed Database's updates property.

If your database cluster is configured with a single node, you will experience downtime during this maintenance window when any updates occur. It's recommended that you adjust this window to match a time that will be the least disruptive for your application and users. You may also want to consider upgrading to a high availability plan to avoid any downtime due to maintenance.

The database software is not updated automatically. To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.

Note: New MongoDB Databases cannot currently be created.