Modifica los detalles de la invitación pendiente especificada a tu organización.
Puede utilizar el ID de la invitación o la dirección de correo electrónico del usuario para especificar la invitación.
Pour utiliser cette commande, vous devez vous authentifier avec un compte utilisateur, un compte de service ou une clé d’API avec le rol Organización Owner.
Sintaxis
atlas organizations invitations update [invitationId] [options]
Arguments
Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
invitationId | string | false | string única de 24 dígitos que identifica la invitación. |
opciones
Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
string | false | Dirección de correo electrónico del usuario. | |
-f, --file | string | false | Ruta a un archivo de configuración JSON opcional que define la configuración de la invitación. Nota: Los campos no admitidos en el archivo JSON se ignoran. Mutuamente excluyente con --role. |
-h, --help | false | ayuda para actualizar | |
--orgId | string | false | Identificador de la Organización a usar. Esta opción anula la configuración en el archivo de configuración o la variable de entorno. |
-o, --output | string | false | Formato de salida. Los valores válidos son json, json-path, go-template o go-template-file. Para ver la salida completa, use la opción -o json. |
--role | Cuerdas | false | Roles del usuario para la organización asociada. Los valores válidos son ORG_OWNER, ORG_MEMBER, ORG_GROUP_CREATOR, ORG_BILLING_ADMIN y ORG_READ_ONLY. Al pasar esta bandera, se reemplazan los datos preexistentes. Mutuamente excluyente con --file. |
Opciones heredadas
Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
-P, --profile | string | false | Nombre del perfil que se usará del archivo de configuración. Para aprender sobre los perfiles para Atlas CLI, consulta https://dochub.mongodb.org/core/atlas-cli-save-connection-settings. |
Salida
Si el comando se ejecuta correctamente, el CLI devuelve una salida similar a la siguiente muestra. Los valores entre corchetes representan tus valores.
Invitation <Id> updated.
Ejemplos
# Modify the pending invitation with the ID 5dd56c847a3e5a1f363d424d to grant ORG_OWNER access the organization with the ID 5f71e5255afec75a3d0f96dc: atlas organizations invitations update 5dd56c847a3e5a1f363d424d --orgId 5f71e5255afec75a3d0f96dc --role ORG_OWNER --output json
# Modify the invitation for the user with the email address user@example.com to grant ORG_OWNER access the organization with the ID 5f71e5255afec75a3d0f96dc: atlas organizations invitations update --email user@example.com --orgId 5f71e5255afec75a3d0f96dc --role ORG_OWNER --output json