mongocli iam globalAccessLists list
返回您全局API密钥的所有IP访问列表条目。
语法
命令语法
mongocli iam globalAccessLists list [options]
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | false | 列表的帮助信息 | |
--limit | int | false | 每页结果的项目数,最大为500。如果您有超过500个结果,请指定 --page 选项来更改结果页。默认值为100。 |
-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. |
输出
如果命令成功执行,CLI将返回类似以下示例的输出。括号内的值表示您的值。
ID CIDR BLOCK CREATED AT <ID> <CidrBlock> <Created>
示例
# Return a JSON-formatted list of all access list entries for the global API key: mongocli iam globalAccessLists list --output json