Returns a list of all active Ops Manager servers. Ops Manager considers a
server active if it sent a heartbeat to the Application Database
within the last 20 seconds. Use this endpoint to discover valid
serverId values before you submit a log collection request.
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Resource
GET /admin/servers
Required Roles
Requires that the API Key calling this endpoint have the
Global Read Only role.
Request Parameters
Request Path Parameters
This endpoint doesn't use HTTP request path parameters.
Request Query Parameters
Name | Type | Necessity | Description | Default |
|---|---|---|---|---|
| number | Optional | One-based integer that returns a subsection of results. |
|
| number | Optional | Number of items to return per page, up to a maximum of 500. |
|
| string | Optional | Server type to filter by. Pass this parameter multiple times
to include several types ( | All types |
| string | Optional | Server status to filter by. Currently the only valid value
is |
|
| boolean | Optional | Flag indicating whether the response body should be in a prettyprint format. |
|
| boolean | Optional | Flag that indicates whether to wrap the response in an
envelope. Some API clients cannot access the HTTP
response headers or status code. To remediate this, set
|
|
Request Body Parameters
This endpoint doesn't use HTTP request body parameters.
Response
The response includes an array of server objects, an array of link objects, and the total number of server objects retrieved.
Name | Type | Description |
|---|---|---|
| array | Array of active Ops Manager servers. See results Embedded Document. |
| array | Array of one or more links to sub-resources or related resources. The relations between URLs follow Web Linking Specification (RFC 5988). |
| number | Total number of items in the result set. May exceed the
size of |
results Embedded Document
Each results element represents one active Ops Manager server.
Name | Type | Description |
|---|---|---|
| string | Identifier of the active Ops Manager server. |
| string | Type of server. Currently always returns |
| string | Timestamp, in ISO 8601 UTC format, when the server last sent a heartbeat. |
Example Request
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \ --header "Accept: application/json" \ --include \ --request GET \ "https://<OpsManagerHost>:<Port>/api/public/v1.0/admin/servers?pretty=true"
Example Response
Response Header
401 Unauthorized Content-Type: application/json;charset=ISO-8859-1 Date: {dateInUnixFormat} WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false Content-Length: {requestLengthInBytes} Connection: keep-alive
200 OK Vary: Accept-Encoding Content-Type: application/json Strict-Transport-Security: max-age=300 Date: {dateInUnixFormat} Connection: keep-alive Content-Length: {requestLengthInBytes} X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
Response Body
{ "links": [ { "href": "https://<OpsManagerHost>:<Port>/api/public/v1.0/admin/servers?pageNum=1&itemsPerPage=100", "rel": "self" } ], "results": [ { "serverId": "om-server-1.example.com", "serverType": "MMS_SERVER", "lastPing": "2026-04-13T10:00:15Z" }, { "serverId": "om-server-2.example.com", "serverType": "MMS_SERVER", "lastPing": "2026-04-13T10:00:12Z" } ], "totalCount": 2 }