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

Retrieve Cluster

Returns the Cluster by ID.

get
/clusters/{clusterId}
Authorizations
AuthorizationstringRequired

The token can be generated using the Authentication API.

Path parameters
clusterIdstring · uuidRequired

The ID (UUID) of the Cluster.

Example: e69b22a5-8fee-56b1-b6fb-4a07e4205ead
Responses
200

Getting Cluster was successful.

application/json
idstring · uuidRequired

The ID (UUID) of the Cluster.

Example: e69b22a5-8fee-56b1-b6fb-4a07e4205ead
typestring · enumRequired

The type of the resource.

Possible values:
hrefstringRequired

The URL of the Cluster.

Example: /clusters/e69b22a5-8fee-56b1-b6fb-4a07e4205ead
propertiesone ofRequired

A MongoDB cluster is the top-level logical unit that groups one or more MongoDB server instances into a single, highly available data store. It represents the complete deployment—including the primary node, standby replicas, and configuration—allowing the API to manage and monitor the cluster as a single unified resource.

or
get/clusters/{clusterId}
GET /v2/clusters/{clusterId} HTTP/1.1
Host: mongodb.gb-bhx.ionos.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "bcd31531-3ac8-11eb-9feb-046c59cc737e",
  "type": "cluster",
  "href": "/clusters/bcd31531-3ac8-11eb-9feb-046c59cc737e",
  "metadata": {
    "createdDate": "2023-10-01T12:00:00Z",
    "createdBy": "user@example.com",
    "lastModifiedDate": "2023-10-05T15:30:00Z",
    "lastModifiedBy": "user@example.com",
    "state": "AVAILABLE",
    "connectionUri": "mongodb+srv://m-bcd31531.mongodb.gb-bhx.ionoscloud.com"
  },
  "properties": {
    "name": "cms-business",
    "description": "A business cluster for production workloads.",
    "version": "7",
    "edition": "BUSINESS",
    "connection": {
      "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
      "lanId": "2",
      "instanceAddresses": [
        "192.168.1.5/24",
        "192.168.1.6/24",
        "192.168.1.7/24"
      ]
    },
    "instanceTemplateId": "bcd31531-3ac8-11eb-9feb-046c59cc737e",
    "instanceCount": 3,
    "maintenanceWindow": {
      "dayOfTheWeek": "Sunday",
      "time": "03:00"
    },
    "logsEnabled": false,
    "metricsEnabled": false,
    "credentials": {
      "username": "cms_user",
      "database": "cms"
    },
    "snapshot": {
      "location": "eu-south-2",
      "retentionDays": 90
    }
  }
}

Last updated

Was this helpful?