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

云数据库 PostgreSQL 版

复制全文
下载 pdf
连接管理
ModifyDBEndpointReadWriteDelayThreshold
复制全文
下载 pdf
ModifyDBEndpointReadWriteDelayThreshold
调用 ModifyDBEndpointReadWriteDelayThreshold 接口修改终端只读延迟阈值。​
请求类型​
同步请求。​
注意事项​
  • 已开启连接终端的读写分离功能。​
  • 仅默认终端支持开启读写分离,因此该接口仅支持对默认终端进行设置。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
InstanceId​
String​
是​
postgres-0af11cd4****​
实例 ID。​
EndpointId​
String​
是​
postgres-0af11cd4****-cluster​
实例连接终端 ID。​
ReadOnlyNodeMaxDelayTime​
Integer​
是​
30​
只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点。单位为秒,取值范围为 0~3600。​
​
返回参数​
null​
示例​
请求示例​
​
POST /?Action=ModifyDBEndpointReadWriteDelayThreshold&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-0af11cd4****",​
"EndpointId": "postgres-0af11cd4****-cluster",​
"ReadOnlyNodeMaxDelayTime": 80​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2023101118285676A8F34389CC270EE9CA",​
"Action": "ModifyDBEndpointReadWriteDelayThreshold",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
最近更新时间:2026.03.31 10:39:11
这个页面对您有帮助吗?
有用
有用
无用
无用