全部產品
Search
文件中心

PolarDB:RestartPolarClawGateway

更新時間:Jul 18, 2026

重新啟動 PolarClaw 閘道。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

ApplicationId

string

應用程式 ID。

pa-xxx

Mode

string

重新啟動方式:in-process(預設,輕量重新啟動,環境變數不生效)/pkill(冷啟動,環境變數生效)。

in-process

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

Id of the request

F45FFACC-xxx

Message

string

返回訊息。

successful

Code

integer

返回狀態碼。

200

ApplicationId

string

應用程式 ID。

pa-xxx

Ok

boolean

操作是否成功。

true

Mode

string

實際使用的重新啟動方式。

in-process

Restarted

boolean

重新啟動後是否已確認閘道恢復可用(同步返回)。

true

GatewayVersion

string

重新啟動後的閘道版本(同步返回)。

2026.5.7

DowntimeMs

integer

本次重新啟動的大致停機時長,毫秒(同步返回)。

3235

TaskId

string

非同步任務 ID(Async=true 時返回),透過 DescribePolarClawTask 輪詢。

0ee00f56-f467-4d41-858c-ca4ede2c770e

State

string

非同步任務初始狀態(Async=true 時返回)。

pending

Operation

string

操作名稱(Async=true 時返回)。

RestartPolarClawGateway

樣本

正常返回樣本

JSON格式

{
  "RequestId": "F45FFACC-xxx",
  "Message": "successful",
  "Code": 200,
  "ApplicationId": "pa-xxx",
  "Ok": true,
  "Mode": "in-process",
  "Restarted": true,
  "GatewayVersion": "2026.5.7",
  "DowntimeMs": 3235,
  "TaskId": "0ee00f56-f467-4d41-858c-ca4ede2c770e",
  "State": "pending",
  "Operation": "RestartPolarClawGateway"
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情