Atlas CLI を使用してクラスターを作成、クラスターをアップデート、またはクラスターをアップグレードする際に必要な設定を指定するには、クラスター構成ファイルを使用します。 Atlas CLI は.jsonクラスター構成ファイルを受け入れます。
利用可能な設定
When you create clusters using a configuration file, you can specify any settings that are listed in Create One Cluster from One Project under Request Body Schema.
When you update clusters using a configuration file, you can specify any settings that are listed in Modify One Cluster from One Project under Request Body Schema.
When you upgrade clusters using a configuration file, you can specify any settings that are listed in Upgrade One Shared-tier Cluster under Request Body Schema.
構成ファイルを作成
クラスターの作成
構成ファイルを使用してクラスターを作成するには、次の手順に従います。
Copy the sample request for Create One Cluster from One Project.
Navigate to the Create One Cluster from One Project section of the Atlas Admin API specification.
右側の [ Request samples ] の下にある [ Expand all ] をクリックします。
サンプル リクエストをコピーするには、 Copyをクリックします。
--fileオプションを指定して、 Atlas クラスター検索ノード作成コマンドを実行します。
--fileフラグを使用して保存したファイルへのパスを指定します。
クラスターの更新
構成ファイルを使用してクラスターを更新するには、次の手順に従います。
Copy the sample request for Modify One Cluster from One Project.
Navigate to the Modify One Cluster from One Project section of the Atlas Admin API specification.
右側の [ Request samples ] の下にある [ Expand all ] をクリックします。
サンプル リクエストをコピーするには、 Copyをクリックします。
--fileオプションを指定して、 Atlas クラスター検索ノードの更新コマンドを実行します。
--fileフラグを使用して保存したファイルへのパスを指定します。
クラスターのアップグレード
構成ファイルを使用してクラスターをアップグレードするには、次の手順に従います。
Copy the sample request for Upgrade One Shared-tier Cluster.
Navigate to the Upgrade One Shared-tier Cluster section of the Atlas Admin API specification.
右側の [ Request samples ] の下にある [ Expand all ] をクリックします。
サンプル リクエストをコピーするには、 Copyをクリックします。
--fileオプションを指定して、 Atlas クラスターのアップグレードコマンドを実行します。
--fileフラグを使用して保存したファイルへのパスを指定します。