获取组件

获取 /components.json

检索组件列表及其当前状态。

响应

  • 200 application/json

    已成功检索组件

    隐藏响应属性 显示响应属性 对象
    • page 对象 必需
      隐藏页面属性 显示页面属性 对象
      • id 字符串 必需

        页面的唯一标识符

      • 名称 字符串 必需

        状态页面的名称

      • url string(uri) 必需

        状态页面的URL

      • updated_at string(date-time) 必需

        上次更新页面的时间戳 (ISO 8601)

    • 组件 大量[对象] 必需

      组件列表

      隐藏组件属性 显示组件属性 对象
      • created_at string(date-time) 必需

        创建组件时的时间戳 (ISO 8601)

      • 描述 字符串 | null

        组件描述

      • id 字符串 必需

        组件的唯一标识符

      • 名称 字符串 必需

        组件名称

      • only_show_if_degraded 布尔 必需

        是否仅在降级时显示

      • page_id 字符串 必需

        Unique page identifier

      • Position 整型 必需

        显示位置

      • 状态 字符串 必需

        组件的当前状态

        取值为 operationaldegraded_performancepartial_outagemajor_outage

      • updated_at string(date-time) 必需

        上次更新组件的时间戳 (ISO 8601)

  • 404 application/json

    未找到请求的资源

    隐藏响应属性 显示响应属性 对象
    • message 字符串 必需

      错误消息

    • 代码 整型

      错误代码

  • 500 application/json

    服务器内部错误

    隐藏响应属性 显示响应属性 对象
    • message 字符串 必需

      错误消息

    • 代码 整型

      错误代码

GET /components.json
curl \
 --request GET 'https://status.mongodb.com/api/v2/components.json'
响应示例 (200)
{
  "page": {
    "id": "y2j98763l56x",
    "name": "MongoDB Cloud Status",
    "url": "https://status.mongodb.com",
    "updated_at": "2025-03-11T00:52:20-07:00"
  },
  "components": [
    {
      "created_at": "2025-05-04T09:42:00Z",
      "description": "string",
      "id": "string",
      "name": "string",
      "only_show_if_degraded": true,
      "page_id": "string",
      "position": 42,
      "status": "operational",
      "updated_at": "2025-05-04T09:42:00Z"
    }
  ]
}
响应示例 (404)
{
  "code": 404,
  "message": "Resource not found"
}
响应示例 (500)
{
  "code": 500,
  "message": "Internal server error"
}