ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs 菜单

atlas security ldap delete

从项目中删除 userToDNMapping 文档中捕获的当前 LDAP 配置。

要使用此命令,您必须使用具有项目所有者角色的用户帐户或 API 密钥进行身份验证。

命令语法
atlas security ldap delete [options]
名称
类型
必需
说明

--force

false

指示在继续执行请求的操作之前是否跳过确认提示的标志。

-h,--help

false

删除帮助

--projectId

字符串

false

标识要使用的项目的十六进制字符串。 此选项会覆盖配置文件或环境变量中的设置。

名称
类型
必需
说明

-P, --profile

字符串

false

要从配置文件中使用的配置文件的名称。 要了解 Atlas CLI 的配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。

如果命令成功,CLI 将返回类似于以下示例的输出。 括号中的值代表您的价值观。

LDAP configuration userToDNMapping deleted from project'<Name>'
# Remove the current LDAP configuration in the project with the ID 5e2211c17a3e5a48f5497de3:
atlas security ldap delete --projectId 5e2211c17a3e5a48f5497de3