mongocli cloud-manager events organizations list
返回指定组织的所有事件。
语法
命令语法
mongocli cloud-manager events organizations list [options]
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | false | 列表的帮助信息 | |
--limit | int | false | 每页结果条目数,最大为500。如果您有超过500个结果,请指定--page选项来更改结果页。此值默认为100。 |
--maxDate | string | false | 最大创建日期。此选项返回创建日期小于或等于指定值的事件。 |
--minDate | string | false | Minimum created date. This option returns events whose created date is greater than or equal to the specified value. |
--orgId | string | false | Organization ID to use. This option overrides the settings in the configuration file or environment variable. |
-o, --output | string | false | 输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。 |
--page | int | false | Page number that specifies a page of results. This value defaults to 1. |
--type | strings | false | Type of event that triggered the alert. To learn which values the CLI accepts, see the possible eventTypeName values in the API documentation for Atlas (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