mongocli iam organizations invitations list
返回组织所有挂起的邀请。
使用此命令,您必须使用具有组织用户管理员角色的用户帐户或API密钥进行身份验证。
语法
命令语法
mongocli iam organizations invitations list [options]
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
--email | 字符串 | false | 用户邮箱地址。 |
-h, --help | false | 列表的帮助信息。 | |
--orgId | 字符串 | false | 要使用的组织ID。此选项会覆盖配置文件或环境变量中的设置。 |
-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 a JSON-formatted list of pending invitations to the organization with the ID 5f71e5255afec75a3d0f96dc: mongocli iam organizations invitations list --orgId 5f71e5255afec75a3d0f96dc --output json