Online Archive Configuration File
On this page
You can use a online archive configuration file to specify the
settings required when you create online archives or update online archives
using the Atlas CLI. The Atlas CLI accepts .json
online archive configuration files.
Available Settings
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.
Create a Configuration File
Create an Online Archive
Follow these steps to create online archives with a configuration file:
Copy the sample request for Create One Online Archive.
Navigate to the Create One Online Archive section of the Atlas Admin API specification.
Under Request samples on the right side, click Expand all.
Click Copy to copy the sample request.
Run the atlas clusters onlineArchives create command with
the --file
option.
Specify the path to the file you saved with the --file
flag.
Update an Online Archive
Follow these steps to update online archives with a configuration file:
Copy the sample request for Update One Online Archive.
Navigate to the Update One Online Archive section of the Atlas Admin API specification.
Under Request samples on the right side, click Expand all.
Click Copy to copy the sample request.
Run the atlas clusters onlineArchives update command with
the --file
option.
Specify the path to the file you saved with the --file
flag.