mongocli ops-manager events organizations list
返回指定组织的所有事件。
语法
命令语法
mongocli ops-manager events organizations list [options]
选项
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
-h, --help | false | 列表的帮助信息 | |
--limit | int | false | 每页结果中项目的数量,最多为500。如果您有超过500个结果,请指定--page选项来更改结果页。此值默认为100。 |
--maxDate | string | false | 最大创建日期。此选项返回创建日期小于或等于指定值的事件。 |
--minDate | string | false | 最小创建日期。此选项返回创建日期大于或等于指定值的事件。 |
--orgId | string | false | 要使用的组织ID。此选项覆盖配置文件或环境变量中的设置。 |
-o, --output | string | false | 输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整的输出,请使用-o json选项。 |
--page | int | false | 指定结果页的页码。此值默认为1。 |
--type | strings | false | 触发警报的事件类型。要了解CLI接受的值,请参阅Atlas API文档中的可能的事件类型名称值。https://dochub.mongodb.org/core/atlas-event-names), 运维管理器 (https://dochub.mongodb.org/core/om-event-names), 或者云管理器 (https://dochub.mongodb.org/core/cm-event-names). |
继承选项
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
-P, --profile | string | false | 配置文件中要使用的配置文件名。要了解MongoCLI的配置文件,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file。 |
示例
# Return a JSON-formatted list of events for the organization with the ID 5dd5a6b6f10fab1d71a58495: mongocli [ops-manager|cloud-manager] events organizations list --orgId 5dd5a6b6f10fab1d71a58495 --output json