You can call the ModifyDBInstanceSSL operation to modify the Secure Sockets Layer (SSL) encryption settings of an ApsaraDB for RDS instance.
This operation is used to configure SSL encryption for an instance.
- This operation is supported for MySQL 5.6, MySQL 5.7 on RDS High-availability Edition with local SSDs, MySQL 8.0 on RDS High-availability Edition with local SSDs, all SQL Server versions and editions, and all PostgreSQL versions with standard or enhanced SSDs.
- Read/write splitting endpoints do not support SSL encryption.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBInstanceSSL |
The operation that you want to perform. Set the value to ModifyDBInstanceSSL. |
ConnectionString | String | Yes | rm-uf6wjk5xxxxx.mysql.rds.aliyuncs.com |
The internal or public endpoint for which the SSL certificate needs to be created or updated. Note
|
DBInstanceId | String | Yes | rm-uf6wjk5xxxxxxx |
The ID of the instance. |
SSLEnabled | Integer | No | 1 |
Specifies whether to enable or disable SSL encryption. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 777C4593-8053-427B-99E2-105593277CAB |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=ModifyDBInstanceSSL
&ConnectionString=rm-uf6wjk5xxxxx.mysql.rds.aliyuncs.com
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBInstanceSSLResponse>
<requestId>777C4593-8053-427B-99E2-105593277CAB</requestId>
</ModifyDBInstanceSSLResponse>
JSON
format
{
"requestId": "777C4593-8053-427B-99E2-105593277CAB"
}
Error codes
For a list of error codes, visit the API Error Center.