mongocli iam globalAccessLists describe
返回指定全局API密钥的访问列表条目的详细信息。
语法
命令语法
mongocli iam globalAccessLists describe <ID> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
ID | 字符串 | 是 | 一个唯一的24位字符串,用于标识访问列表条目。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | 否 | 描述帮助 | |
-o, --output | 字符串 | 否 | 输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | 字符串 | 否 | 从配置文件中使用的配置文件名。要了解MongoCLI配置文件中的配置文件,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
示例
# Return the JSON-formatted details for the access list entry with the ID 5f5bad7a57aef32b04ed0210 from the access list for the global API key: mongocli iam globalAccessLists describe 5f5bad7a57aef32b04ed0210 --output json