Docs 菜单
Docs 主页
/ /
Atlas CLI
/ / /

atlas dbusers 证书列表

为指定数据库用户返回所有 Atlas 托管的未过期 X.509 证书。

公共预览版:从MongoDB Atlas Admin API自动生成的 atlas api 子命令提供了对 Admin API的全面覆盖,目前处于公共预览阶段(请通过以下网址提供反馈: https:// 反馈.mongodb.com/ forum/930808 -atlas-cli )。 Admin API功能有自己的发布生命周期,您可以通过提供的API端点文档链接进行检查。

如果您在自管理 X.509 模式下管理自己的证书颁发机构 (CA),则无法使用此命令返回证书。

您指定的用户必须使用 X.509 证书进行身份验证。

命令语法
atlas dbusers certs list <username> [options]
名称
类型
必需
说明

用户名

字符串

true

您要列出 Atlas 托管证书的数据库用户的用户名。

名称
类型
必需
说明

-h,--help

false

列表帮助

--limit

int

false

每个结果页面的列项数,最多 500 个。 如果结果超过 500 个,请指定 --page 选项以更改结果页面。 此值默认为 100。

--omitCount

false

指示 JSON 响应是否返回 JSON 响应中的项目总数 (totalCount) 的标志。

-o, --output

字符串

false

输出格式。 有效值为 json、json-path、go-template 或 go-template-file。 要查看完整输出,请使用 -o json 选项。

--page

int

false

指定结果页面的页码。 该值默认为 1。

--projectId

字符串

false

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

名称
类型
必需
说明

-P, --profile

字符串

false

# Return a JSON-formatted list of all Atlas-managed X.509 certificates for a MongoDB user named dbuser for the project with ID 5e2211c17a3e5a48f5497de3:
atlas dbusers certs list dbuser --projectId 5e2211c17a3e5a48f5497de3 --output json

后退

创建

在此页面上