定義
setParametersetParameteris an administrative command for modifying options normally set on the command line. You must issue thesetParametercommand against the admin database.
互換性
このコマンドは、次の環境でホストされている配置で使用できます。
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン
重要
このコマンドは、MongoDB Atlas クラスターではサポートされていません。すべてのコマンドに対する Atlas のサポートについては、「サポートされていないコマンド」を参照してください。
構文
db.adminCommand( { setParameter: 1, <parameter>: <value> } )
使用可能なパラメーター(例を含む)については、「自己管理型配置の MongoDB Server パラメーター 」を参照してください。
動作
永続性
Commands issued by the admin command setParameter do not survive server restarts. For a persistent option use the --setParameter command line option or the setParameter configuration file setting.
Stable API
apiStrict を に設定して1 Stable API Vtrue を使用している場合、サーバーパラメータを変更するためにsetParameter を使用することはできません。