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

atlas dbusers delete

이 페이지의 내용

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

프로젝트에서 지정된 데이터베이스 사용자를 제거합니다.

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

명령 구문
atlas dbusers delete <username> [options]
이름
유형
필수 사항
설명
사용자 이름
문자열
true
MongoDB database에서 삭제할 사용자 이름입니다. 사용자 이름의 형식은 사용자의 인증 방법에 따라 달라집니다.
이름
유형
필수 사항
설명
--authDB
문자열
거짓
인증 데이터베이스 이름입니다. 사용자가 Amazon Web Services IAM, x.509 또는 LDAP로 인증하는 경우 이 값은 $external이어야 합니다. 사용자가 SCRAM-SHA로 인증하는 경우 이 값은 admin이어야 합니다. 이 값의 기본값은 "admin"입니다.
--force
거짓
요청된 작업을 진행하기 전에 확인 프롬프트를 건너뛸지 여부를 나타내는 플래그입니다.
-h, --help
거짓
삭제 도움말
--projectId
문자열
거짓
사용할 프로젝트를 식별하는 16진수 문자열입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
이름
유형
필수 사항
설명
-P, --profile
문자열
거짓
구성 파일에서 사용할 프로필의 이름입니다. Atlas CLI의 프로필에 대해 자세히 알아보려면 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings를 참조하세요.

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

DB user '<Name>' deleted
# Delete the SCRAM SHA-authenticating database user named dylan for the project with the ID 5e2211c17a3e5a48f5497de3:
atlas dbusers delete dylan --projectId 5e2211c17a3e5a48f5497de3
# Delete the AWS IAM-authenticating database user with the ARN arn:aws:iam::123456789012:user/sales/enterprise/DylanBloggs for the project with ID 5e2211c17a3e5a48f5497de3. Prepend $external with \ to escape the special-use character:
atlas dbusers delete arn:aws:iam::123456789012:user/sales/enterprise/DylanBloggs --authDB \$external --projectId 5e2211c17a3e5a48f5497de3
# Delete the xLDAP-authenticating database user with the RFC 2253 Distinguished Name CN=Dylan Bloggs,OU=Enterprise,OU=Sales,DC=Example,DC=COM for the project with ID 5e2211c17a3e5a48f5497de3. Prepend $external with \ to escape the special-use character:
atlas dbusers delete CN=Dylan Bloggs,OU=Enterprise,OU=Sales,DC=Example,DC=COM --authDB \$external --projectId 5e2211c17a3e5a48f5497de3

돌아가기

create

다음

설명