Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/ / /

mongocli cloud-manager alerts list

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Retrieves all alerts for the specified Atlas project.

mongocli cloud-manager alerts list [options]
Name
Type
Required
Description
-h, --help
false
help for list
--limit
int
false
Number of items per page.
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file.
--page
int
false
Page number.
--projectId
string
false
Project ID to use. Overrides the settings in the configuration file or environment variable.
--status
string
false
Alert's status. The values are TRACKING, OPEN, CLOSED, and CANCELED.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
This example uses the "mongocli atlas alerts list" command to retrieve all alerts that occurred for the specified project. It uses the profile named "myprofile" for accessing Atlas.
$ mongocli atlas alerts list \
--projectId 5df90590f10fab5e33de2305 \
-o json \
--profile myprofile

Back

list