您可以使用在线存档配置文件来指定使用Atlas CLI创建在线存档或更新在线存档时所需的设置。 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.
创建配置文件
创建在线存档
请按照以下步骤使用配置文件创建在线存档:
复制 Create One 在线存档 的示例请求。
Navigate to the Create One Online Archive section of the Atlas Admin API specification.
在右侧的Request samples下,单击Expand all 。
单击Copy ,复制样本请求。
使用 --file 选项运行Atlas clusters 搜索 nodes create命令。
使用--file标志指定保存的文件的路径。
更新在线存档
请按照以下步骤使用配置文件更新在线存档:
复制 Update One Online 存档的示例请求。
Navigate to the Update One Online Archive section of the Atlas Admin API specification.
在右侧的Request samples下,单击Expand all 。
单击Copy ,复制样本请求。
使用--file选项运行Atlas clusters 搜索 Nodes 更新命令。
使用--file标志指定保存的文件的路径。