跳转到主要内容
平台运维/灾备管理/灾备服务(Plus)/灾备服务相关接口

获取数据库备份

从备份服务器获取导出的数据库备份。

GET/zstack/v1/database-backups/image-store

操作 ID

GetDatabaseBackupFromImageStore

起始版本

3.0.0

执行模式

同步

认证信息

需要认证

认证信息

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

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

查询参数

  • url
    String必填

    镜像服务器URL

  • registryPort
    int

    镜像仓库访问端口

  • systemTags
    List

    可选。

  • userTags
    List

    可选。

响应状态

200 OK
200 OK

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

  • error
    ErrorCode必填

    错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error

    • code
      String必填

      错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001

    • description
      String必填

      错误的概要描述

    • details
      String必填

      错误的详细信息

    • elaboration
      String必填

      保留字段,默认为null

    • opaque
      LinkedHashMap必填

      保留字段,默认为null

    • cause
      ErrorCode必填

      根错误,引发当前错误的源错误,若无原错误,该字段为null

  • infos
    List必填

    详情参考infos

    • id
      String必填

      镜像仓库中的id

    • parent
      String必填

      父镜像名称

    • blobsum
      String必填

      镜像hash码

    • created
      Timestamp必填

      镜像提交时间

    • author
      String必填

      镜像制作者

    • arch
      String必填

      镜像的os结构

    • desc
      String必填

      镜像描述

    • size
      Long必填

      镜像的真实大小

    • virtualsize
      Long必填

      镜像的虚拟大小

    • name
      String必填

      镜像仓库中的镜像名称