For the complete documentation index, see llms.txt. This page is also available as Markdown.

MongoDB API Versions

MongoDB v2 is the current version of the MongoDB API. It replaces the MongoDB v1 API as clusters are migrated to the new DBaaS platform. It supports region-specific endpoints and idempotent cluster management through the Ensure pattern. It also provides dedicated snapshot location management, polymorphic Business and Enterprise clusters, and token-only authentication.

What Changed in Version 2

The following tables highlight the key differences between MongoDB v1 and v2 APIs.

General API Architecture and Infrastructure

Feature

MongoDB v1 (1.0.0)

MongoDB v2 (2.0.0)

MongoDB v2 Advantage

Server model

Single global base URL https://api.ionos.com/databases/mongodb

Region-specific endpoints for Worcester and Newark.

Reduces network latency for management operations.

Update operation

PATCH /clusters/{clusterId} applies partial updates.

PUT /clusters/{clusterId} uses the Ensure pattern: provide the full resource object.

Idempotent, declarative updates.

Snapshots

Nested under the cluster: /clusters/{clusterId}/snapshots.

Top-level /snapshots resource, filterable by clusterId.

Snapshots are easier to locate across clusters.

SnapshotLocations tag

No dedicated snapshot location resource.

New SnapshotLocations tag with dedicated endpoints.

Explicit control over where snapshots are stored for geographic data safety.

Templates

Templates tag with /templates.

Renamed to InstanceTemplates, with /instance-templates.

Clearer naming; used by Business edition clusters.

Versions

Metadata tag, /versions and /infos/versions.

Versions tag with GET /versions and GET /versions/{versionId}. Each version lists its lifecycle status and canUpgradeTo.

Clearer separation between API metadata and MongoDB software versions.

Restore

Dedicated Restores tag with POST /clusters/{clusterId}/restore.

No dedicated restore endpoint. Restore is declared through restoreFromSnapshot on the cluster object.

Declarative restore model: restore intent is part of cluster configuration.

Logs

Dedicated Logs tag with /clusters/{clusterId}/logs.

No Logs tag. Log and metrics forwarding is configured through logsEnabled and metricsEnabled on the cluster object.

Logs and metrics route to the IONOS CLOUD Logging and Monitoring Services rather than through the database API.

Users

Users tag manages database users through /clusters/{clusterId}/users.

No Users tag. The initial user is created through the cluster credentials object.

User creation is folded into cluster provisioning.

Cluster Management

Feature

MongoDB v1 (1.0.0)

MongoDB v2 (2.0.0)

MongoDB v2 Advantage

Cluster object

One cluster shape.

Two shapes, selected by edition: ENTERPRISE and BUSINESS. Edition-specific fields are required on their own variant.

Each edition validates against exactly the fields that apply to it.

Lifecycle states

Basic lifecycle states, such as AVAILABLE, BUSY, DESTROYING, FAILED, UNKNOWN, and UPGRADING.

Granular states: PROVISIONING, AVAILABLE, UPDATING, DESTROYING, and FAILED.

More granular operational metadata.

Identity and Authentication

Feature

MongoDB v1 (1.0.0)

MongoDB v2 (2.0.0)

MongoDB v2 Advantage

Authorization

basicAuth and tokenAuth are supported.

Supports only tokenAuth.

Requests carry a Bearer token instead of account credentials.

Last updated

Was this helpful?