文档菜单
文档首页
/ /
MongoDB CLI
/ / /

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

返回

删除