클러스터 구성 파일 을 사용하면 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 cluster 검색 노드 생성 명령을 실행합니다.
--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 cluster 검색 노드 업데이트 명령을 실행합니다.
--file 플래그를 사용하여 저장한 파일의 경로를 지정합니다.
클러스터 업그레이드
구성 파일 을 사용하여 클러스터를 업그레이드 하려면 다음 단계를 따르세요.
1개의 공유 계층 클러스터 업그레이드에 대한 샘플 요청 복사합니다.
Navigate to the Upgrade One Shared-tier Cluster section of the Atlas Admin API specification.
Request samples 오른쪽의 아래에서 을 Expand all 클릭합니다.
샘플 요청을 복사하려면 Copy 을 클릭합니다.
--file 옵션과 함께 Atlas cluster 업그레이드 명령을 실행합니다.
--file 플래그를 사용하여 저장한 파일의 경로를 지정합니다.