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

查询更新列表

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

GET/api/v1/lifecycle/updates

操作 ID

ListUpdates

起始版本

1.0.0

执行模式

同步

认证信息

需要认证

认证信息

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

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

application/json

查询参数

  • type
    String

    类型。

  • severity
    String

    告警级别。

  • limit
    Integer

    返回的结果数量上限。

    示例: 0

    {"format":"int32"}

  • offset
    Integer

    查询起始偏移量。

    示例: 0

    {"format":"int32"}

  • status
    String

    P2a 状态筛选:discovered、downloaded、applied 或 obsolete。空值表示排除 obsolete。

响应状态

200 OK

请求成功。

Content-Type: application/json

响应体根类型: object

  • items
    List

    条目列表。

    • 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

      {"format":"int64"}

    • 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

      {"format":"date-time"}

    • createDate
      String

      创建时间。

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

      {"format":"date-time"}

    • lastOpDate
      String

      最近一次操作时间。

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

      {"format":"date-time"}

    • 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

      {"format":"date-time"}

  • total
    Integer

    返回结果总数。

    示例: 4

    {"format":"int32"}

  • limit
    Integer

    每页返回的条数上限。

    示例: 20

    {"format":"int32"}

  • offset
    Integer

    查询起始偏移量。

    示例: 20

    {"format":"int32"}