You need to enable JavaScript to run this app.
文档中心
云数据库 PostgreSQL 版

云数据库 PostgreSQL 版

复制全文
下载 pdf
实例管理
RestartDBInstance
复制全文
下载 pdf
RestartDBInstance
调用 RestartDBInstance 接口重启实例。​
请求类型​
异步请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
InstanceId​
String​
是​
postgres-21a3333b****​
实例 ID。​
ApplyScope​
String​
否​
AllNode​
重启场景,取值:​
  • AllNode:所有节点。默认值。​
  • CustomNode:自定义只读节点。​
CustomNodeIds​
Array of String​
否​
["postgres-6a85fdfd****-ro30f7","postgres-6a85fdfd****-rod958"]​
要重启的只读节点的 ID。​
  • 当 ApplyScope 取值为 AllNode 时,会重启整个实例,不能设置 CustomNodeIds 参数。​
  • 当 ApplyScope 取值为 CustomNode 时,需要为该参数传入待重启的只读节点 ID。​
​
返回参数​
null​
示例​
请求示例​
​
POST /?Action=RestartDBInstance&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"InstanceId": "postgres-21a3333b****",​
"ApplyScope": "CustomNode",​
"CustomNodeIds": [​
"postgres-857a4a97****-rod301"​
]​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202306192236493E0DA6BBDC4CB9AB1711",​
"Action": "RestartDBInstance",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
最近更新时间:2026.03.31 10:39:11
这个页面对您有帮助吗?
有用
有用
无用
无用