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