Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/ /
Atlas CLI
/ / /

Atlas cluster OnlineArchive 설명

Atlas Online Archive에 대한 cluster의 세부 정보를 반환합니다.

이 명령을 사용하려면 프로젝트 읽기 전용 역할이 있는 사용자 계정 또는 API 키로 인증해야 합니다.

명령 구문
atlas clusters onlineArchives describe <archiveId> [options]
이름
유형
필수 사항
설명

archiveId

문자열

true

검색할 Atlas Online Archive의 고유 식별자입니다.

이름
유형
필수 사항
설명

--clusterName

문자열

true

Name of the cluster. To learn more, see https://dochub.mongodb.org/core/create-cluster-api.

-h, --help

거짓

설명 도움말

-o, --output

문자열

거짓

출력 형식입니다. 유효한 값은 json, json-path, go-템플릿 또는 go-템플릿 파일입니다. 전체 출력을 보려면 -o json 옵션을 사용합니다.

--projectId

문자열

거짓

사용할 프로젝트를 식별하는 16진수 문자열입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.

이름
유형
필수 사항
설명

-P, --profile

문자열

거짓

구성 파일 에서 사용할 프로필의 이름입니다. Atlas CLI 의 프로필에 대해 학습 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings를 참조하세요.

명령이 성공하면 Atlas CLI는 다음 샘플과 유사한 출력을 반환합니다. 괄호 안의 값은 사용자의 값을 나타냅니다.

ID CLUSTER DATABASE COLLECTION STATE
<Id> <ClusterName> <DbName> <CollName> <State>
# Return the JSON-formatted details for the online archive with the ID 5f189832e26ec075e10c32d3 for the cluster named myCluster:
atlas clusters onlineArchives describe 5f189832e26ec075e10c32d3 --clusterName myCluster --output json

돌아가기

삭제

이 페이지의 내용