Discovery of nodes in MongoDB instance
Select
SaaS
Customer Managed
Perform discovery of nodes in the MongoDB cluster. After discovering the nodes in the cluster, this response should be used to update the instance properties.
Path Parameters
- clientId string required
Client Id of the Master node
- application/json
Request Body
- path string
Default value:
/
clientEntity object
distAppsProperties object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
processinginstructioninfo object
- path string
browseItems object[]
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"path": "string",
"browseItems": [
{
"mdbItem": {
"mdbConfig": {
"mdbServerType": 0,
"mdbServerList": [
{
"hostName": "string",
"role": 0,
"health": 0,
"mdbVersion": "string",
"portNumber": 0,
"dataPath": "string",
"configFilePath": "string",
"bindIp": "string",
"logPath": "string",
"repsetName": "string",
"configFileContents": "string",
"subType": 0,
"engineName": "string",
"isLoggingEnabled": true,
"memberId": 0,
"client": {
"clientId": 0,
"clientName": "string",
"_type_": 0
}
}
]
}
}
}
]
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "WebServer",
"value": "OBLIVION"
}
]
},
"path": "/",
"browseItems": [
{
"mdbItem": {
"mdbConfig": {
"mdbServerType": 4,
"mdbServerList": [
{
"hostName": "xxx.xxx.xxx",
"role": 1,
"health": 1,
"mdbVersion": "7.0.0",
"portNumber": 27777,
"dataPath": "/mongo5/data",
"configFilePath": "/mongo5/mongod.conf",
"bindIp": "0.0.0.0",
"logPath": "/mongo5/data/mongod.log",
"repsetName": "mongo5",
"configFileContents": "systemLog:\n destination: file\n logAppend: true\n path: /mongo5/data/mongod.log\nstorage:\n dbPath: /mongo5/data\nprocessManagement:\n fork: \"true\"\n pidFilePath: /mongo5/data/mongod.pid\n timeZoneInfo: /usr/share/zoneinfo\nnet:\n port: 27777\n bindIp: 0.0.0.0\nreplication:\n replSetName: mongo5\n",
"subType": 2,
"engineName": "wiredTiger",
"isLoggingEnabled": true,
"memberId": 0,
"client": {
"clientId": 712,
"clientName": "xxx",
"_type_": 3
}
}
]
}
}
}
]
}
Bad Request
- application/json
- application/xml
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
- Schema
- Example (from schema)
Schema
- object
<root/>
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
POST /client/:clientid/action/machinebrowse
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/:clientId/Action/MachineBrowse' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"path": "/",
"clientEntity": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
},
"distAppsProperties": {
"clusterType": 8,
"subclient": {
"_type_": 5,
"instanceId": 0
},
"clusterConfig": {
"mdbConfig": {
"mdbServerType": 2,
"adminUser": {
"userName": "string"
},
"masterNode": {
"hostName": "string",
"osUser": "string",
"portNumber": 0,
"binPath": "string",
"client": {
"hostName": "string",
"clientId": 0,
"clientName": "string"
}
},
"sslCMCredInfo": {
"_type_": 0,
"credentialId": 0,
"credentialName": "string"
}
}
}
}
}'