You need to enable JavaScript to run this app.
导航

ModifyDBEndpointReadWriteDelayThreshold

最近更新时间2023.11.15 22:39:52

首次发布时间2023.11.15 22:39:52

调用 ModifyDBEndpointReadWriteDelayThreshold 接口修改终端只读延迟阈值。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
InstanceIdStringpostgres-0af11cd4****实例 ID。
EndpointIdStringpostgres-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.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
}

返回示例

null

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "2023101118285676A8F34389CC270EE9CA",
        "Action": "ModifyDBEndpointReadWriteDelayThreshold",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": null
}