문서 메뉴
문서 홈
/ /
아틀라스 CLI
/ /

Atlas dbusers 설명

이 페이지의 내용

  • 구문
  • arguments
  • 옵션
  • 상속된 옵션
  • 출력
  • 예제

프로젝트에 지정된 데이터베이스 사용자에 대한 세부 정보를 반환합니다.

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

명령 구문
atlas dbusers describe <username> [options]
이름
유형
필수 사항
설명
사용자 이름
문자열
true
MongoDB database에서 조회할 사용자 이름입니다. 사용자 이름의 형식은 사용자의 인증 방법에 따라 달라집니다.
이름
유형
필수 사항
설명
--authDB
문자열
거짓
인증 데이터베이스 이름입니다. 사용자가 Amazon Web Services IAM, x.509 또는 LDAP로 인증하는 경우 이 값은 $external이어야 합니다. 사용자가 SCRAM-SHA로 인증하는 경우 이 값은 admin이어야 합니다. 이 값의 기본값은 "admin"입니다.
-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는 다음 샘플과 유사한 출력을 반환합니다. 괄호 안의 값은 사용자의 값을 나타냅니다.

USERNAME DATABASE
<Username> <DatabaseName>
# Return the details for the SCRAM SHA-authenticating database user named myDbUser:
atlas dbuser describe myDbUser --authDB admin --output json
# Return the details for the AWS IAM-authenticating database user with the ARN arn:aws:iam::772401394250:user/my-test-user. Prepend $external with \ to escape the special-use character:
atlas dbuser describe arn:aws:iam::772401394250:user/my-test-user --authDB \$external --output json
# Return the details for the X.509-authenticating database user with the RFC 2253 Distinguished Name CN=ellen@example.com,OU=users,DC=example,DC=com. Prepend $external with \ to escape the special-use character:
atlas dbuser describe CN=ellen@example.com,OU=users,DC=example,DC=com --authDB \$external --output json

돌아가기

삭제

다음

목록