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

mongocli iam projects invitations describe

本页内容

  • 语法
  • 参数
  • 选项
  • 继承选项
  • 输出
  • 示例

返回指定待处理邀请的详细信息。

使用此命令时,您必须使用具有项目用户管理员角色的用户帐户或API密钥进行身份验证。

命令语法
mongocli iam projects invitations describe <invitationId> [options]
名称
类型
必需
描述
invitationId
字符串
唯一24位字符串,用于标识邀请。
名称
类型
必需
描述
-h, --help
false
描述帮助
-o, --output
字符串
false
输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。
--projectId
字符串
false
用于标识项目的十六进制字符串。此选项会覆盖配置文件或环境变量的设置。
名称
类型
必需
描述
-P, --profile
字符串
false
配置文件中要使用的配置文件的名称。有关MongoCLI配置文件中配置文件的更多信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file.

如果命令成功执行,CLI 将返回类似以下示例的输出。括号中的值代表您的值。

ID USERNAME CREATED AT EXPIRES AT
<ID> <Username> <CreatedAt> <ExpiresAt>
# Return the JSON-formatted details of the pending invitation with the ID 5dd56c847a3e5a1f363d424d for the project with the ID 5f71e5255afec75a3d0f96dc:
mongocli iam projects invitations describe 5dd56c847a3e5a1f363d424d --projectId 5f71e5255afec75a3d0f96dc --output json

返回

删除