调用 ModifyDBEndpointProxyConfig 接口修改连接终端的读写分离代理连接数。
异步请求。
调用该接口修改连接终端的代理连接数前,需确保已开启终端的读写分离功能。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-0af11cd4**** | 实例 ID。 |
EndpointId | String | 是 | postgres-0af11cd4****-cluster | 实例已开启读写分离功能的连接终端的 ID。 说明 当前仅默认终端支持读写分离功能。 |
ReadWriteProxyConnection | Integer | 是 | 200 | 连接终端开启读写分离后,为终端设置的代理连接数。 说明
|
null
POST /?Action=ModifyDBEndpointProxyConfig&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: open.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-f511b775****", "EndpointId": "postgres-f511b775****-cluster", "ReadWriteProxyConnection": 100 }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "ModifyDBEndpointProxyConfig", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": null }