跳转到主要内容
基础设施相关接口/OTA 升级计划

查询更新列表

列表可用软件更新安装状态。

GET/api/v1/lifecycle/updates

操作 ID

ListUpdates

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

查询参数

  • type
    String

    类型。

  • severity
    String

    告警级别。

  • limit
    Integer

    最多返回的记录数。

    示例: 0

  • offset
    Integer

    查询起始偏移量。

    示例: 0

  • status
    String

    状态信息。

响应状态

200 OK
200 OK

该 API 成功时返回以下响应结构。

  • items
    List

    条目列表。

    示例: (nested array)

    • uuid
      String

      资源的UUID,唯一标识该资源。

      示例: upd-a1b2c3d4-e5f6-7890-abcd-ef1234567890

    • name
      String

      资源名称。

      示例: zcf-security-patch

    • version
      String

      版本号。

      示例: 1.3.1

    • type
      String

      类型。

      示例: security

    • severity
      String

      告警级别。

      示例: critical

    • description
      String

      资源的详细描述。

      示例: Patches CVE-2026-12345 in the authentication module

    • size
      String

      返回记录数。

      示例: 10485760

    • checksum
      String

      校验值。

      示例: sha256:abc123

    • downloadUrl
      String

      下载地址。

      示例: https://depot.example.com/updates/zcf-security-patch-1.3.1.tar.gz

    • downloaded
      Boolean

      已下载。

      示例: false

    • discoveredAt
      String

      发现时间。

      示例: 2026-01-15T08:00:00Z

    • createDate
      String

      创建时间。

      示例: 2026-01-15T08:00:00Z

    • lastOpDate
      String

      最近一次操作时间。

      示例: 2026-01-15T08:00:00Z

    • status
      String

      状态信息。

      示例: running

    • componentType
      String

      组件类型。

      示例: "lifecycle-service"

    • deployedVersion
      String

      已部署版本。

      示例: 1.2.0

    • release
      String

      目标发布。

      示例: 221

    • deployedRelease
      String

      已部署发布。

      示例: 215

    • changelog
      String

      资源。

      示例: "Bug fixes and performance improvements"

    • releaseDate
      String

      发布时间。

      示例: 2026-01-15T08:00:00Z

  • total
    Integer

    返回结果总数。

    示例: 4

  • limit
    Integer

    最大返回条目数。

    示例: 20

  • offset
    Integer

    查询起始偏移量。

    示例: 20