调用 ModifyDBInstanceSSL 接口修改指定实例的 SSL 配置。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
InstanceId | String | 是 | postgres-f006d308**** | 实例 ID。 |
SSLEnable | Boolean | 否 | false | 是否开启 SSL 加密功能,取值:
|
ReloadSSLCertificate | Boolean | 否 | true | 更新 SSL 证书有效期。取值为 说明
|
ForceEncryption | Boolean | 否 | true | 是否开启 SSL 强制加密功能,取值:
说明
|
null
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 }
{ "ResponseMetadata": { "RequestId": "20240423194017B2017EFDCA4047D90871-5308fb", "Action": "ModifyDBInstanceSSL", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-guangzhou" }, "Result": null }