You need to enable JavaScript to run this app.
RDS for PostgreSQL

RDS for PostgreSQL

Copy page
Download PDF
Data security
ModifyDBInstanceSSL
Copy page
Download PDF
ModifyDBInstanceSSL
Call the ModifyDBInstanceSSL interface to modify the SSL configuration of the specified instance.​
Request type​
Synchronous request.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Required?​
Example​
Description​
InstanceId​
String​
Yes​
postgres-f006d308****​
Instance ID.​
SSLEnable​
Boolean​
No​
false​
Enable SSL encryption or not, with values:​
  • true: yes.​
  • false: no.​
ReloadSSLCertificate​
Boolean​
No​
true​
Update the SSL certificate validity period. When set to true, updates the SSL certificate validity period.​
tip​
  • This parameter takes effect only when SSL encryption is enabled for the instance.​
  • ReloadSSLCertificate and SSLEnable cannot be passed in simultaneously.​
ForceEncryption​
Boolean​
No​
true​
Enable SSL force encryption or not, with values:​
  • true: yes.​
  • false: no.​
tip​
  • This parameter takes effect only when SSL encryption is enabled for the instance.​
  • ReloadSSLCertificate and SSLEnable cannot be passed in simultaneously.​
​
Response parameter​
null​
Sample​
Sample request​
​
POST /?Action=ModifyDBInstanceSSL&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-f006d308****",​
"SSLEnable": false,​
"ReloadSSLCertificate": true,​
"ForceEncryption": true​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20240423194017B2017EFDCA4047D90871-5308fb",​
"Action": "ModifyDBInstanceSSL",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-guangzhou"​
},​
"Result": null​
}​
​
Last updated: 2026.03.31 10:45:19