mongocli iam teams describe
返回指定组织团队的详细信息。
您可以使用团队的ID或团队名称返回团队详情。您必须指定id选项或name选项之一。
要使用此命令,您必须使用具有组织成员角色的用户账户或API密钥进行认证。
语法
命令语法
mongocli iam teams describe [options]
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | false | 描述帮助信息 | |
--id | string | false | 唯一24位字符串,用于标识团队。 |
--name | string | false | 标识团队的标签。 |
--orgId | string | false | 要使用的组织ID。此选项将覆盖配置文件或环境变量中的设置。 |
-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 the team with the ID 5e44445ef10fab20b49c0f31 in the organization with ID 5e2211c17a3e5a48f5497de3: mongocli iam teams describe --id 5e44445ef10fab20b49c0f31 --projectId 5e1234c17a3e5a48f5497de3 --output json
# Return the JSON-formatted details for the the team with the name myTeam in the organization with ID 5e2211c17a3e5a48f5497de3: mongocli iam teams describe --name myTeam --projectId 5e1234c17a3e5a48f5497de3 --output json