“文档” 菜单
文档首页
/ /
Atlas
/ / /

Atlas events 组织列表

在此页面上

  • 语法
  • 选项
  • 继承选项
  • 举例

返回指定组织的所有事件。

命令语法
atlas events organizations list [options]
名称
类型
必需
说明
-h,--help
false
列表帮助
--limit
int
false
每个结果页面的列项数,最多 500 个。 如果结果超过 500 个,请指定 --page 选项以更改结果页面。 此值默认为 100。
--maxDate
字符串
false
最长创建日期。此选项返回创建日期小于或等于指定值的事件。此参数使用 UTC 格式的 ISO 8601时间戳。
--minDate
字符串
false
最小创建日期。此选项返回创建日期晚于或等于指定值的事件。此参数使用 UTC 格式的 ISO 8601时间戳。
--omitCount
false
指示 JSON 响应是否返回 JSON 响应中的项目总数 (totalCount) 的标志。
--orgId
字符串
false
要使用的组织 ID。 此选项会覆盖配置文件或环境变量中的设置。
-o, --output
字符串
false
输出格式。 有效值为 json、json-path、go-template 或 go-template-file。 要查看完整输出,请使用 -o json 选项。
--page
int
false
指定结果页面的页码。 该值默认为 1。
--type
字符串
false
触发警报的事件类型。 要了解 CLI 接受哪些值,请参阅 Atlas Admin API 规范中的 eventTypeName 枚举: https://dochub.mongodb.org/core/atlas-event-names。
名称
类型
必需
说明
-P, --profile
字符串
false
要从配置文件中使用的配置文件的名称。 要了解 Atlas CLI 的配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。
# Return a JSON-formatted list of events for the organization with the ID 5dd5a6b6f10fab1d71a58495:
atlas events organizations list --orgId 5dd5a6b6f10fab1d71a58495 --output json
# Return a JSON-formatted list of events between 2024-03-18T14:40:03-0000 and 2024-03-18T15:00:03-0000 and for the project with the ID 5e2211c17a3e5a48f5497de3
atlas events projects list --output json --projectId 5e2211c17a3e5a48f5497de3 --minDate 2024-03-18T14:40:03-0000 --maxDate 2024-03-18T15:00:03-0000

后退

organizations

来年

projects