Create a MongoDB instance
Select
SaaS
Customer Managed
This operation is used to create a MongoDB instance.
- application/json
Request Body
clientInfo object
clientType stringDefault value:
DISTRIBUTED_IDA
internal field
distributedClusterInstanceProperties object
instance object
instanceId integer requiredinstanceName string requiredapplicationId integerDefault value:
64
clientName string requiredopType stringDefault value:
SET
clusterType stringDefault value:
MONGODB
clusterConfig object
mdbConfig object
adminUser object required
userName string requiredIf authentication is enabled on the cluster
password string requiredmasterNode object
client object
clientId integer requiredMaster node client ID
clientName string requiredMaster node client name
hostName string requiredMaster node hostname
portNumber integer requiredPort number of the MongoDB server/Mongos process on the master node
osUser string requiredOS user used for impersonation
binPath string requiredPath where MongoDB binaries are present on the master node
plan object
planId integer requiredplanName string requiredName of the plan associated with the MongoDB instance
planType integerplanSubtype integerplanSummary stringentityInfo object
companyId integercompanyName stringmultiCommcellId integerentity object
clientName stringMaster node client name
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
response object
errorCode integerentity object
clientId integerclientName stringinstanceId integer_type_ integer
{
"response": {
"errorCode": 0,
"entity": {
"clientId": 0,
"clientName": "string",
"instanceId": 0,
"_type_": 0
}
}
}
{
"response": {
"errorCode": 0,
"entity": {
"clientId": 825,
"clientName": "MongoDBInstance",
"instanceId": 723,
"_type_": 3
}
}
}
Bad Request
- application/json
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
Loading...