- API >
- Public API Resources >
- Deployments >
- Clusters >
- Get All Clusters in All Projects
Get All Clusters in All Projects¶
On this page
Get details for all clusters in all projects available to the programmatic API key making the request.
Required Roles¶
You can successfully call this endpoint with any assigned role.
Request¶
Base URL: https://cloud.mongodb.com/api/public/v1.0
Request Path Parameters¶
This endpoint does not use HTTP request path parameters.
Request Query Parameters¶
Name | Type | Necessity | Description | Default | ||||||
---|---|---|---|---|---|---|---|---|---|---|
pretty | boolean | Optional | Flag indicating whether the response body should be in a prettyprint format. | false |
||||||
envelope | boolean | Optional | Flag that indicates whether or not to wrap the response in an envelope. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. For endpoints that return one result, the response body includes:
|
false |
Request Body Parameters¶
This endpoint does not use HTTP request body parameters.
Response¶
Response Parameters¶
Response Document¶
The response JSON document includes an array of result objects, an array of link objects and a count of the total number of result objects retrieved.
Name | Type | Description |
---|---|---|
results |
array | Array includes one object for each item detailed in the results Embedded Document section. |
links |
array | Array includes one or more links to sub-resources and/or related resources. The relations between URLs are explained in the Web Linking Specification. |
totalCount |
number | Integer count of the total number of items in the result set. It may be greater than the number of objects in the results array if the entire result set is paginated. |
results Embedded Document¶
Each result is one project.
Name | Type | Description |
---|---|---|
clusters |
array of objects | Objects that describe the clusters in each project that the API key is authorized to view. |
clusters.[n].alertCount |
integer | Number of open alerts. |
clusters.[n].authEnabled |
boolean | Specifies if authentication is required to access the nodes in the cluster. |
clusters.[n].availability |
string | Availability of the cluster. Values include:
|
clusters.[n].backupEnabled |
boolean | Specifies if backup is enabled for the cluster. |
clusters.[n].clusterId |
string | Unique identifier of the Cloud Manager cluster. |
clusters.[n].dataSizeBytes |
number | Total size of the data stored on each node in the cluster in bytes. |
clusters.[n].name |
string | Name of the cluster as it appears in Cloud Manager. |
clusters.[n].nodeCount |
integer | Number of nodes in the cluster. |
clusters.[n].sslEnabled |
boolean | Specifies if SSL authentication is required to access the nodes in the cluster. |
clusters.[n].type |
string | The type of MongoDB cluster. Values include:
|
clusters.[n].versions |
array of strings | Version of MongoDB that each node in the cluster is running. |
groupId |
string | Unique identifier of the project. |
groupName |
string | Name of the project to which the returned clusters belong. |
orgId |
string | Unique identifier for the organization that owns the project to which the returned clusters belong. |
orgName |
string | Name of the organization that owns the project to which the returned clusters belong. |
planType |
string | Plan type. In Cloud Manager, this value is always Cloud Manager. |
tags |
array of strings | Tags applied to the project. |