文档菜单
文档首页
/ /
MongoDB CLI
/ / / /

mongocli iam organizations apiKeys list

本页内容

  • 语法
  • 选项
  • 继承选项
  • 示例

返回您组织中的所有API密钥。

使用此命令,您必须使用具有组织成员角色的用户帐户或API密钥进行身份验证。

命令语法
mongocli iam organizations apiKeys list [options]
名称
类型
必需
描述
-h, --help
false
列表帮助
--limit
int
false
每页结果的项目数,最多为500。如果您有超过500个结果,请指定--page选项来更改结果页。默认值为100。
--orgId
string
false
要使用的组织ID。此选项会覆盖配置文件或环境变量中的设置。
-o, --output
string
false
输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。
--page
int
false
指定结果页的页码。默认值为1。
名称
类型
必需
描述
-P, --profile
string
false
从配置文件中选择配置文件使用的配置文件名称。有关MongoCLI的配置文件,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file.
# Return a JSON-formatted list of organization API keys for the organization with the ID 5a1b39eec902201990f12345:
mongocli iam organizations apiKeys list --orgId 5a1b39eec902201990f12345 --output json

返回

描述