Skip to content

Instantly share code, notes, and snippets.

@isamarietr
Last active March 10, 2022 16:13
Show Gist options
  • Save isamarietr/0862df653e2a4153d1194d5f2b1a4042 to your computer and use it in GitHub Desktop.
Save isamarietr/0862df653e2a4153d1194d5f2b1a4042 to your computer and use it in GitHub Desktop.
Payload with all body fields for MongoDB's "Create One Cluster" API - See https://docs.atlas.mongodb.com/reference/api/clusters-create-one/#request-body-parameters
{
"autoScaling": {
"compute": {
"enabled": false,
"scaleDownEnabled": false
},
"diskGBEnabled": true
},
"backupEnabled": false,
"biConnector": {
"enabled": false,
"readPreference": "secondary"
},
"clusterType": "REPLICASET",
"diskSizeGB": 100,
"encryptionAtRestProvider": "AWS",
"labels": [
{
"key": "example key",
"value": "example value"
}
],
"mongoDBMajorVersion": "5.0",
"name": "SingleRegionCluster",
"numShards": 1,
"pitEnabled": false,
"providerBackupEnabled": true,
"providerSettings": {
"providerName": "AWS",
"autoScaling": {
"compute": {
"maxInstanceSize": null,
"minInstanceSize": null
}
},
"diskIOPS": 300,
"encryptEBSVolume": true,
"instanceSizeName": "M40",
"regionName": "US_EAST_1",
"volumeType": "STANDARD"
},
"replicationFactor": 3,
"replicationSpecs": [
{
"numShards": 1,
"regionsConfig": {
"US_EAST_1": {
"analyticsNodes": 0,
"electableNodes": 3,
"priority": 7,
"readOnlyNodes": 0
}
},
"zoneName": "Zone 1"
}
],
"rootCertType": "ISRGROOTX1",
"versionReleaseSystem": "LTS"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment