mongocli atlas alerts list
On this page
mongocli atlas
commands are now deprecated because there's a new, dedicated CLI available for Atlas users. Migrate to the Atlas CLI to enjoy the same capabilities and the latest features. You can use mongocli atlas
commands until April 30, 2023.Retrieves all alerts for the specified Atlas project.
Syntax
mongocli atlas alerts list [options]
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. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |
Examples
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