全部产品
Search
文档中心

实时数仓Hologres:GetUpgradeStatus - 查询升级状态

更新时间:May 21, 2026

查询升级状态

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v1/instances/{instanceId}/upgrade/status HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

instanceId

string

实例 id。

hgprecn-cn-uqm30ptv6004

请求参数

名称

类型

必填

描述

示例值

RegionId

string

地域 id。

cn-hangzhou

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

D73E42D0-AA72-5880-B96F-548B43C84736

Data

array<object>

返回结果。

object

FromVersion

string

当前版本

1.3.23

ToVersion

string

升级到此版本

1.3.24

Status

string

用于实例升级的 AirFlow DAG 的状态

枚举值:

  • archived :

    成功

  • upgrading :

    正在升级

  • preparing :

    正在准备

archived

Details

string

详情。

{"UpgradePhase":"Upgrade","StatusCode":"LeaderRestartFailed","FlightingReport":{"SQLResultStat":{"TotalExecuted":9000"Exceptions":0,"Incorrect":1,"Slow":1,"DQLSpeedup":2}"SegmentFormatStat":[{"Database":"test_db","TableUsingSegmentCount":5},{"Database":"user_order","TableUsingSegmentCount":7}],"EstimatedUpgradeTime":{"StopInstance":30,"BackupData":120,"UpgradeInstance":600},"ReadPermissionCheckStat":[{"db":"tst0","user":"v4_300433463265624129","schema":"dim_db","table":"it_rpt_org_tree_info_partition_all"},{"db":"tst1","user":"v4_300433463265624129","schema":"dim_db","table":"it_rpt_org_tree_info_partition_all_2"},]},"UpgradingSteps":{"Stop":{"Status":"Success","StartTime":"2023-05-09T06:48:28.843Z","StopTime":"2023-05-09T06:48:28.843Z"},"Backup":{"Status":"Success","StartTime":"2023-05-09T06:48:28.843Z","StopTime":"2023-05-09T06:48:28.843Z"},"DoUpgrade":{"Status":"Success","StartTime":"2023-05-09T06:48:28.843Z","StopTime":"2023-05-09T06:48:28.843Z"},"Rollback":{"Status":"Success","StartTime":"2023-05-09T06:48:28.843Z","StopTime":"2023-05-09T06:48:28.843Z"}},"Instances":{"LeaderInstanceId":"hgxxx","LeaderInstanceName":"ERP instance","LeaderInstanceStatus":"Running","FollowerInstances":[{"InstanceId":"hgxxx","InstanceName":"TMSinstance","Status":"Running"},{"InstanceId":"hxxx""InstanceName":"WMS readonly","Status":"Unavailable"}]}}

PrepareFinishTime

string

准备完成时间

2023-05-09T06:48:28.843Z

Success

boolean

请求结果,表示此次请求是否发生异常,和业务无关

true

ErrorCode

string

错误码。

404

ErrorMessage

string

错误信息。

Internal server error.

HttpStatusCode

string

http 状态码。

200

示例

正常返回示例

JSON格式

{
  "RequestId": "D73E42D0-AA72-5880-B96F-548B43C84736",
  "Data": [
    {
      "FromVersion": "1.3.23",
      "ToVersion": "1.3.24",
      "Status": "archived",
      "Details": "{\"UpgradePhase\":\"Upgrade\",\"StatusCode\":\"LeaderRestartFailed\",\"FlightingReport\":{\"SQLResultStat\":{\"TotalExecuted\":9000\"Exceptions\":0,\"Incorrect\":1,\"Slow\":1,\"DQLSpeedup\":2}\"SegmentFormatStat\":[{\"Database\":\"test_db\",\"TableUsingSegmentCount\":5},{\"Database\":\"user_order\",\"TableUsingSegmentCount\":7}],\"EstimatedUpgradeTime\":{\"StopInstance\":30,\"BackupData\":120,\"UpgradeInstance\":600},\"ReadPermissionCheckStat\":[{\"db\":\"tst0\",\"user\":\"v4_300433463265624129\",\"schema\":\"dim_db\",\"table\":\"it_rpt_org_tree_info_partition_all\"},{\"db\":\"tst1\",\"user\":\"v4_300433463265624129\",\"schema\":\"dim_db\",\"table\":\"it_rpt_org_tree_info_partition_all_2\"},]},\"UpgradingSteps\":{\"Stop\":{\"Status\":\"Success\",\"StartTime\":\"2023-05-09T06:48:28.843Z\",\"StopTime\":\"2023-05-09T06:48:28.843Z\"},\"Backup\":{\"Status\":\"Success\",\"StartTime\":\"2023-05-09T06:48:28.843Z\",\"StopTime\":\"2023-05-09T06:48:28.843Z\"},\"DoUpgrade\":{\"Status\":\"Success\",\"StartTime\":\"2023-05-09T06:48:28.843Z\",\"StopTime\":\"2023-05-09T06:48:28.843Z\"},\"Rollback\":{\"Status\":\"Success\",\"StartTime\":\"2023-05-09T06:48:28.843Z\",\"StopTime\":\"2023-05-09T06:48:28.843Z\"}},\"Instances\":{\"LeaderInstanceId\":\"hgxxx\",\"LeaderInstanceName\":\"ERP instance\",\"LeaderInstanceStatus\":\"Running\",\"FollowerInstances\":[{\"InstanceId\":\"hgxxx\",\"InstanceName\":\"TMSinstance\",\"Status\":\"Running\"},{\"InstanceId\":\"hxxx\"\"InstanceName\":\"WMS readonly\",\"Status\":\"Unavailable\"}]}}",
      "PrepareFinishTime": "2023-05-09T06:48:28.843Z"
    }
  ],
  "Success": true,
  "ErrorCode": "404",
  "ErrorMessage": "Internal server error.",
  "HttpStatusCode": "200"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情