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