Create a Sharded Database Cluster
Create the cluster
Resource consumption
Request
curl --include \
--request POST \
--user "[email protected]:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"metadata": {},
"properties":
{
"mongoDBVersion": "6.0",
"instances": 3,
"location": "de/fra",
"displayName": "a good name for a database",
"connections": [
{
"datacenterId": "b1432c51-c20a-4f83-876f-c3a8a9e1fbec",
"lanId": "28",
"cidrList": ["10.1.1.3/24", "10.1.1.4/24", "10.1.1.5/24"]
}
],
"type": "sharded-cluster",
"shards": 2,
"edition": "enterprise",
"cores": 4,
"ram": 2048,
"storageSize": 20000,
"storageType": "HDD"
}
}' \
https://api.ionos.com/databases/mongodb/clustersResponse
Last updated
Was this helpful?