对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

自动化配置示例

注意

群组和项目是同义术语。 您的 {PROJECT-ID} 与您的群组 ID(group ID)相同。对于现有群组,您的群组/项目 ID 保持不变。当引用说明时,此页面使用更为人熟知的术语“群组”。终结点保持不变,如文档中所述。

使用curl和--data-binary @<configuration>选项传递自动化配置。 自动化配置中包含的确切字段取决于 Cloud Manager 项目。

当字段有多个条目时,此示例使用...以及代替某些字段值。

{ "options" : { "downloadBase" : "/var/lib/mongodb-mms-automation", }, "mongoDbVersions" : [ { "name" : "3.2.0", "builds" : [ { "platform" : "windows", "url" : "https ://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-3.2.0.zip", "gitVersion" : "45d947729a0315accb6d4f15a6b06be6d9c19fe7", "architecture" : "amd64", "bits" : 64, "win2008plus" : true }, ... ], }, ... ], "agentVersion" : { "directoryUrl" : "https://s3.amazonaws.com/mongodb-mms-build-agent/releases/prod/", "name" : "2.6.4.1612-1" }, "monitoringVersions" : [ { "name" : "4.1.0.251-1", "hostname" : "example.net", "baseUrl" : null }, ... ], "backupVersions" : [ { "name" : "4.1.0.347-1", "hostname" : "example.net", "baseUrl" : null }, ... ], "processes" : [ { "name" : "MyCLUSTER_MySHARD_0_0", "processType" : "mongod", "version" : "2.6.7", "hostname" : "testAutoAPI-0.dns.placeholder", "logRotate" : { "sizeThresholdMB" : 1000, "timeThresholdHrs" : 24 }, "authSchemaVersion" : 1, "args2_6" : { "net" : { "port" : 27017 }, "storage" : { "dbPath" : "/data/MyCLUSTER_MySHARD_0_0" }, "systemLog" : { "path" : "/data/MyCLUSTER_MySHARD_0_0/mongodb.log", "destination" : "file" }, "replication" : { "replSetName" : "MySHARD_0" }, "operationProfiling" : {} } }, ... ], "replicaSets" : [ { "_id" : "MySHARD_0", "members" : [ { "_id" : 0, "host" : "MyCLUSTER_MySHARD_0_0", "priority" : 1, "votes" : 1, "secondaryDelaySecs" : 0, "hidden" : false, "arbiterOnly" : false }, { "_id" : 1, "host" : "MyCLUSTER_MySHARD_0_1", "priority" : 1, "votes" : 1, "secondaryDelaySecs" : 0, "hidden" : false, "arbiterOnly" : false }, { "_id" : 2, "host" : "MyCLUSTER_MySHARD_0_2", "priority" : 1, "votes" : 1, "secondaryDelaySecs" : 0, "hidden" : false, "arbiterOnly" : false } ] }, ... ], "sharding" : [ { "name" : "myShardedCluster", "configServer" : [ "MyCLUSTER_MyCONFIG_SERVER_6", "MyCLUSTER_MyCONFIG_SERVER_7", "MyCLUSTER_MyCONFIG_SERVER_8" ], "shards" : [ { "_id" : "MySHARD_0", "rs" : "MySHARD_0" }, { "_id" : "MySHARD_1", "rs" : "MySHARD_1" } ] } ], "balancer" : { ... }, "auth" : { "authoritativeSet" : false, "disabled" : true "usersDeleted" : [ ], "usersWanted" : [ ] }, "tls" : { ... }, "roles" : [ { "role" : ... , "db" : ... , "privileges" : [ ... ], "roles" : [ ... ] }, ... ], "kerberos" : { "serviceName" : ... }, "indexConfigs" : [ ]}
给本页内容打分