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