Docs Menu
Docs Home
/ /
Atlas CLI
/ /

atlas alerts acknowledge

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options
  • Output
  • Examples

Acknowledges the specified alert for your project.

To use this command, you must authenticate with a user account or an API key with the Project Owner role.

Command Syntax
atlas alerts acknowledge <alertId> [options]
Name
Type
Required
Description
alertId
string
true
ID of the alert you want to acknowledge or unacknowledge.
Name
Type
Required
Description
--comment
string
false
Optional description or comment for the entry.
-F, --forever
false
Option that acknowledges an alert 'forever'. You can't set both the forever option and the until option in the same command.
-h, --help
false
help for acknowledge
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.
--projectId
string
false
Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
--until
string
false
ISO 8601-formatted time until which the alert is acknowledged. This command returns this value if a MongoDB user previously acknowledged the alert. After this date, the alert becomes unacknowledged.
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.

If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.

Alert '<Id>' acknowledged until <AcknowledgedUntil>
# Acknowledge an alert with the ID 5d1113b25a115342acc2d1aa in the project with the ID 5e2211c17a3e5a48f5497de3 until January 1 2028:
atlas alerts acknowledge 5d1113b25a115342acc2d1aa --until 2028-01-01T20:24:26Z --projectId 5e2211c17a3e5a48f5497de3 --output json

Back

alerts