mongodb-atlas-cli
mongodb-atlas-cli copied to clipboard
CLOUDP-139997: Add the command atlas cluster advancedSettings update to AtlasCLI
Proposed changes
Jira ticket: CLOUDP-139997
Checklist
- [x] I have signed the MongoDB CLA
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
- [ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
- [x] I have updated test/README.md (if an e2e test has been added)
- [x] I have run
make fmt
and formatted my code
Further comments
./bin/atlas cluster advancedSettings update Cluster69449 --oplogSizeMB 1222 1.18
Updating advanced configuration settings of your cluster'.
./bin/atlas cluster advancedSettings update --help 1.18
Update advanced configuration settings for one cluster.
Usage:
atlas clusters advancedSettings update <clusterName> [flags]
Examples:
Update oplog minimum size for a cluster:
$ atlas cluster advancedSettings update <clusterName> --projectId <projectId> --oplogSizeMB 1000
Update minimum TLS protocol for a cluster:
$ atlas cluster advancedSettings update <clusterName> --projectId <projectId> --minimumEnabledTLSProtocol "TLS1_0"
Flags:
--disableFailIndexKeyTooLong Flag that indicates whether you can insert or update documents where all indexed entries don't exceed 1024 bytes. If you provide this flag, mongod writes documents that exceed this limit but doesn't index them.
--disableJavascript Flag that indicates whether the cluster allows execution of operations that perform server-side executions of JavaScript.
-h, --help help for update
--noTableScan Flag that indicates whether the cluster disables executing any query that requires a collection scan to return results.
--oplogMinRetentionHours float Minimum retention window for cluster's oplog expressed in hours.
--oplogSizeMB int Storage limit of cluster's oplog expressed in megabytes.
-o, --output string Output format. Valid values are json, json-path, go-template, or go-template-file.
--projectId string Project ID to use. Overrides the settings in the configuration file or environment variable.
--readConcern string Default level of acknowledgment requested from MongoDB for read operations set for this cluster. (default "available")
--sampleRefreshIntervalBIConnector int Interval in seconds at which the mongosqld process re-samples data to create its relational schema.
--sampleSizeBIConnector int Number of documents per database to sample when gathering schema information. (default 1000)
--tlsProtocol string Minimum Transport Layer Security (TLS) version that the cluster accepts for incoming connections.
--writeConcern string Default level of acknowledgment requested from MongoDB for write operations set for this cluster. (default "1")
Global Flags:
-P, --profile string Profile to use from your configuration file.
Waiting for https://github.com/mongodb/go-client-mongodb-atlas/pull/316