Modify Advanced Configuration Options for One Cluster
On this page
This feature is not available for M0
free clusters, M2
, and
M5
clusters. To learn more about which features are unavailable,
see Atlas M0 (Free Cluster), M2, and M5 Limitations.
Groups and projects are synonymous terms. Your {GROUP-ID}
is the
same as your project ID. For existing groups, your group/project ID
remains the same. The resource and corresponding endpoints use the
term groups
.
The Atlas Administration API authenticates using HTTP Digest Authentication. Provide a programmatic API public key and corresponding private key as the username and password when constructing the HTTP request. To learn how to configure API access for an Atlas project, see Get Started with the Atlas Administration API.
Resource
Base URL: https://cloud.mongodb.com/api/atlas/v1.0
PATCH /groups/{GROUP-ID}/clusters/{CLUSTER-NAME}/processArgs
Request Path Parameters
Path Parameter | Type | Necessity | Description |
---|---|---|---|
GROUP-ID | string | Required | Unique identifier for the project
containing the cluster you want to retrieve. |
CLUSTER-NAME | string | Required | Name of the cluster to retrieve. |
Request Query Parameters
This endpoint might use any of the HTTP request query parameters available to all Atlas Administration API resources. All of these are optional.
Name | Type | Necessity | Description | Default | ||||||
---|---|---|---|---|---|---|---|---|---|---|
pretty | boolean | Optional | Flag indicating whether the response body should be in a
prettyprint format. | false | ||||||
envelope | boolean | Optional | Flag indicating if Atlas should wrap the response in a JSON envelope. This option may be needed for some API clients. These clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. For endpoints that return one result, the response body includes:
| false |
Request Body Parameters
Specify one or all of the following options.
Body Parameter | Type | Necessity | Description |
---|---|---|---|
defaultReadConcern | string | Optional | Default level of acknowledgment requested from MongoDB for read operations set for this cluster. MongoDB 4.4 clusters default to available. |
defaultWriteConcern | string | Optional | Default level of acknowledgment requested from MongoDB for write operations set for this cluster. MongoDB 4.4 clusters default to 1. |
failIndexKeyTooLong | boolean | Optional | Flag that indicates whether you can insert or update documents
where all indexed entries don't exceed 1024 bytes. If you set
this to Changing this option corresponds to modifying the
Important Index Key Limit
|
javascriptEnabled | boolean | Optional | Enable or disable execution of operations that perform server-side execution of JavaScript.
Note In MongoDB version 4.4 and later,
|
minimumEnabledTlsProtocol | string | Optional | Minimum Transport Layer Security (TLS) version that the cluster
accepts for incoming connections. Clusters using TLS 1.0 or 1.1
should consider setting TLS 1.2 as the minimum TLS protocol
version. Atlas accepts the following values: To learn more, see What versions of TLS does Atlas support?. Note If you consider this option to enable the deprecated TLS 1.0 protocol version, read What versions of TLS does Atlas support? before first. TLS 1.0 carries security risks for any Atlas cluster that uses it. Enable TLS 1.0 only until you to update your application stack to support TLS 1.2. Changing this option corresponds to configuring the
To deploy the specified changes, Atlas performs a rolling deployment upgrade to maintain high availability. For sharded clusters, this involves a rolling restart of all shards and the config server replica set. To learn more about how Atlas supports high availability during maintenance operations, see How does MongoDB Atlas deliver high availability?. |
noTableScan | boolean | Optional | When Changing this option corresponds to modifying the
|
oplogSizeMB | integer | Optional | Custom oplog size of the cluster. A value of You can check the oplog size by connecting to your cluster
via Changing this option corresponds to modifying the
Atlas can deploy the specified changes without performing a rolling restart. |
sampleSizeBIConnector | integer | Optional | Number of documents per database to sample when gathering schema
information. Defaults to |
sampleRefreshIntervalBIConnector | integer | Optional | Interval in seconds at which the mongosqld process re-samples data to create its relational schema. The default value is 300. The specified value must be a positive integer. Available only for Atlas deployments in which BI Connector for Atlas is enabled. |
Response
Name | Type | Description |
---|---|---|
defaultReadConcern | string | Default level of acknowledgment requested from MongoDB for read operations set for this cluster. MongoDB 4.4 clusters default to available. |
defaultWriteConcern | string | Default level of acknowledgment requested from MongoDB for write operations set for this cluster. MongoDB 4.4 clusters default to 1. |
failIndexKeyTooLong | boolean | Flag that indicates whether you can insert or update documents
where all indexed entries don't exceed 1024 bytes. If you set
this to This option corresponds to the
|
javascriptEnabled | boolean | Flag that indicates whether the cluster allows execution of operations that perform server-side executions of JavaScript.
|
minimumEnabledTlsProtocol | string | Minimum Transport Layer Security (TLS) version that the cluster accepts for incoming connections. Clusters using TLS 1.0 or 1.1 should consider setting TLS 1.2 as the minimum TLS protocol version. To learn more, see What versions of TLS does Atlas support?. This option corresponds to the
|
noTableScan | boolean | Flag that indicates whether the cluster disables executing any query that requires a collection scan to return results. This option corresponds to the
|
oplogSizeMB | integer | Storage limit of cluster's oplog expressed in megabytes. A value
of To check the oplog size:
This option corresponds to the
|
sampleSizeBIConnector | integer | Number of documents per database to sample when gathering schema information. This parameter corresponds to the sampleSize mongosqld option. |
sampleRefreshIntervalBIConnector | integer | Interval in seconds at which the mongosqld process re-samples data to create its relational schema. This parameter corresponds to the sampleRefreshIntervalSecs mongosqld option. |
Example Request
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --include --digest \ --header "Content-Type: application/json" \ --request PATCH "https://cloud.mongodb.com/api/atlas/v1.0/groups/{GROUP-ID}/clusters/LogData/processArgs" \ --data '{ "defaultReadConcern": "available", "defaultWriteConcern": "1", "failIndexKeyTooLong" : false, "javascriptEnabled" : false, "minimumEnabledTlsProtocol": "TLS1_2", "noTableScan" : true, "oplogSizeMB" : 2000, "sampleSizeBIConnector" : 5000, "sampleRefreshIntervalBIConnector" : 300 }'
Example Response
Response Header
401 Unauthorized Content-Type: application/json;charset=ISO-8859-1 Date: {dateInUnixFormat} WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false Content-Length: {requestLengthInBytes} Connection: keep-alive
200 OK Vary: Accept-Encoding Content-Type: application/json Strict-Transport-Security: max-age=300 Date: {dateInUnixFormat} Connection: keep-alive Content-Length: {requestLengthInBytes}
Response Body
{ "defaultReadConcern": "available", "defaultWriteConcern": "1", "failIndexKeyTooLong": false, "javascriptEnabled": false, "minimumEnabledTlsProtocol": "TLS1_2", "noTableScan": true, "oplogSizeMB": 2000, "sampleSizeBIConnector" : 5000, "sampleRefreshIntervalBIConnector" : 300 }