重启PolarClaw网关
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。