mongocli iam organizations invitations describe
返回指定待处理邀请的详细信息。
要使用此命令,您必须使用具有组织用户管理员角色的用户账户或API密钥进行身份验证。
语法
命令语法
mongocli iam organizations invitations describe <invitationId> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
invitationId | 字符串 | 是 | 一个唯一的24位字符串,用于标识邀请。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | 否 | 描述 | |
--orgId | 字符串 | 否 | 要使用的组织ID。此选项会覆盖配置文件或环境变量的设置。 |
-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 USERNAME CREATED AT EXPIRES AT <ID> <Username> <CreatedAt> <ExpiresAt>
示例
# Return the JSON-formatted details of the pending invitation with the ID 5dd56c847a3e5a1f363d424d for the organization with the ID 5f71e5255afec75a3d0f96dc: mongocli iam organizations invitations describe 5dd56c847a3e5a1f363d424d --orgId 5f71e5255afec75a3d0f96dc --output json