- API >
- Public API Resources >
- MongoDB Server Usage >
- List All Host Assignments
List All Host Assignments¶
On this page
Retrieves all host assignments.
Required Roles¶
Your API Key must have the Global Owner
role to
successfully call this resource.
Request¶
Base URL: https://{OPSMANAGER-HOST}:{PORT}/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 |
Query Parameter | Type | Necessity | Description | Default |
---|---|---|---|---|
startDate | string | Required | Date in ISO 8601 date format when the list of host assignments starts. | |
endDate | string | Required | Date in ISO 8601 date format when the list of host assignments ends. | |
pageNum | integer | Required | Starting group of host assignments to return. Group size gets defined in itemsPerPage. This value starts with 1. | |
itemsPerPage | integer | Required | Number of host assignments to return in one group. | 100 |
Request Body Parameters¶
This endpoint does not use HTTP request body parameters.
Response¶
Response Element | Type | Description |
---|---|---|
hosts | array of strings | List of virtual hosts bound to the provided physical host. |
hosts
.groupId
|
string | Unique identifier of the project into which Ops Manager places this virtual host. |
hosts
.hostname
|
string | FQDN of the virtual host bound to the physical host. |
processes | array of objects | MongoDB processes running on the virtual host. |
processes
.[n].cluster
|
object | Name of the cluster to which the MongoDB process belongs. |
processes
.[n].groupName
|
string | Name of the project to which the MongoDB process belongs. |
processes
.[n].orgName
|
string | Name of the organization to which the MongoDB process belongs. |
processes
.[n].groupId
|
string | Unique identifier of the project to which the MongoDB process belongs. |
processes
.[n].hasConflictingServerType
|
Boolean | Flag that indicates whether the node has a different server type than the other nodes. |
processes
.[n].name
|
string | Name of the node hosting the MongoDB process. |
processes
.[n].processType
|
integer | Number representing the type of MongoDB process. |
serverType | object | Server Type of the physical host. See also |
serverType.name | string | Ops Manager returns one of the following values:
|
serverType.label | string | Ops Manager returns one of the following values:
|