mongocli iam projects describe
返回指定项目的详细信息。
要使用此命令,您必须使用具有项目只读角色的用户账户或API密钥进行认证。
语法
命令语法
mongocli iam projects describe <ID> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
标识符 | string | true | 唯一24位字符串,用于标识项目。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | false | 描述帮助信息 | |
-o, --output | string | false | 输出格式。有效值包括json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | string | false | 从配置文件中使用的配置文件名称。有关MongoCLI配置文件中配置文件的详细信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
输出
如果命令成功执行,CLI将返回类似以下示例的输出。括号中的值代表您的值。
ID NAME <ID> <Name>
示例
# Return the JSON-formatted details for the project with the ID 5e2211c17a3e5a48f5497de3: mongocli iam projects describe 5e2211c17a3e5a48f5497de3 --output json