Nota
Grupos y proyectos son términos sinónimos. Su {PROJECT-ID} es el mismo que su ID del grupo. Para los grupos existentes, el ID del grupo se mantiene igual. Esta página utiliza el término más familiar grupo cuando se refiere a descripciones. El endpoint permanece tal como se indica en el documento.
Pase la configuración de automatización utilizando curl con la opción --data-binary @<configuration>. Los campos exactos incluidos en una configuración de automatización dependen del proyecto de Ops Manager.
Este ejemplo utiliza ... cuando un campo tiene múltiples entradas y también en lugar de algunos valores de campo.
Tip
Algunos parámetros en el siguiente ejemplo son condicionales. Consulte los Parámetros de configuración de automatización para obtener información detallada sobre cada parámetro individual.
1 { 2 "options" : { 3 "downloadBase" : "/var/lib/mongodb-mms-automation", 4 }, 5 "mongoDbVersions" : [ 6 { 7 "name" : "3.2.0", 8 "builds" : [ 9 { 10 "platform" : "windows", 11 "url" : "https ://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-3.2.0.zip", 12 "gitVersion" : "45d947729a0315accb6d4f15a6b06be6d9c19fe7", 13 "architecture" : "amd64", 14 "bits" : 64, 15 "win2008plus" : true 16 }, 17 ... 18 ], 19 }, 20 ... 21 ], 22 "agentVersion" : { 23 "directoryUrl" : "https://s3.amazonaws.com/mongodb-mms-build-agent/releases/prod/", 24 "name" : "2.6.4.1612-1" 25 }, 26 "monitoringVersions" : [ 27 { 28 "name" : "4.1.0.251-1", 29 "hostname" : "example.net", 30 "baseUrl" : null 31 }, 32 ... 33 ], 34 "backupVersions" : [ 35 { 36 "name" : "4.1.0.347-1", 37 "hostname" : "example.net", 38 "baseUrl" : null 39 }, 40 ... 41 ], 42 "processes" : [ 43 { 44 "name" : "MyCLUSTER_MySHARD_0_0", 45 "processType" : "mongod", 46 "version" : "2.6.7", 47 "hostname" : "testAutoAPI-0.dns.placeholder", 48 "logRotate" : { 49 "sizeThresholdMB" : 1000, 50 "timeThresholdHrs" : 24 51 }, 52 "authSchemaVersion" : 1, 53 "args2_6" : { 54 "net" : { 55 "port" : 27017 56 }, 57 "storage" : { 58 "dbPath" : "/data/MyCLUSTER_MySHARD_0_0" 59 }, 60 "systemLog" : { 61 "path" : "/data/MyCLUSTER_MySHARD_0_0/mongodb.log", 62 "destination" : "file" 63 }, 64 "replication" : { 65 "replSetName" : "MySHARD_0" 66 }, 67 "operationProfiling" : {}, 68 "sharding" : { 69 "clusterRole" : "shardsvr" 70 } 71 } 72 }, 73 ... 74 ], 75 "replicaSets" : [ 76 { 77 "_id" : "MySHARD_0", 78 "members" : [ 79 { 80 "_id" : 0, 81 "host" : "MyCLUSTER_MySHARD_0_0", 82 "priority" : 1, 83 "votes" : 1, 84 "secondaryDelaySecs" : 0, 85 "hidden" : false, 86 "arbiterOnly" : false 87 }, 88 { 89 "_id" : 1, 90 "host" : "MyCLUSTER_MySHARD_0_1", 91 "priority" : 1, 92 "votes" : 1, 93 "secondaryDelaySecs" : 0, 94 "hidden" : false, 95 "arbiterOnly" : false 96 }, 97 { 98 "_id" : 2, 99 "host" : "MyCLUSTER_MySHARD_0_2", 100 "priority" : 1, 101 "votes" : 1, 102 "secondaryDelaySecs" : 0, 103 "hidden" : false, 104 "arbiterOnly" : false 105 } 106 ] 107 }, 108 ... 109 ], 110 "sharding" : [ 111 { 112 "name" : "myShardedCluster", 113 "configServer" : [ 114 "MyCLUSTER_MyCONFIG_SERVER_6", 115 "MyCLUSTER_MyCONFIG_SERVER_7", 116 "MyCLUSTER_MyCONFIG_SERVER_8" 117 ], 118 "shards" : [ 119 { 120 "_id" : "MySHARD_0", 121 "rs" : "MySHARD_0" 122 }, 123 { 124 "_id" : "MySHARD_1", 125 "rs" : "MySHARD_1" 126 } 127 ] 128 } 129 ], 130 "balancer" : { ... }, 131 "auth" : { 132 "authoritativeSet" : false, 133 "disabled" : true, 134 "usersDeleted" : [ ], 135 "usersWanted" : [ ] 136 }, 137 "tls" : { ... }, 138 "roles" : [ 139 { 140 "role" : ... , 141 "db" : ... , 142 "privileges" : [ ... ], 143 "roles" : [ ... ] 144 }, 145 ... 146 ], 147 "kerberos" : { 148 "serviceName" : ... 149 }, 150 "indexConfigs" : [ ] 151 }