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

mongocli iam organizations apiKeys accessLists list

本页内容

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

返回您的API密钥的所有IP访问列表条目。

要查看apiKeyID参数的可能值,请运行mongocli iam organizations apiKeys list。

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

命令语法
mongocli iam organizations apiKeys accessLists list <apiKeyID> [options]
名称
类型
必需
描述
apiKeyID
string
true
一个唯一24位字符串,用于标识您的API密钥。
名称
类型
必需
描述
-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 access list entries for the API key with the ID 5f24084d8dbffa3ad3f21234 in the organization with the ID 5a1b39eec902201990f12345:
mongocli iam organizations apiKeys accessLists list --apiKey 5f24084d8dbffa3ad3f21234 --orgId 5a1b39eec902201990f12345 --output json

返回

删除