Enables or disables SSL encryption, or updates the SSL certificate that is issued by Certificate Authorities (CA) for a PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyDBClusterSSL |
The operation that you want to perform. Set the value to ModifyDBClusterSSL. |
DBClusterId | String | Yes | pc-************ |
The ID of the cluster. |
SSLEnabled | String | Yes | Enable |
Specifies how to modify the SSL encryption status. Valid values:
Note After you enable SSL encryption or update the SSL certificate, you must download and
configure the certificate. For more information, see Configure SSL encryption.
|
DBEndpointId | String | No | pe-****************** |
The ID of the endpoint. Note
|
NetType | String | No | Public |
The network type supported by the endpoint that is specified by DBEndpointId. Valid values:
Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | A94B1755-6D8B-4E27-BF3C-8562BC****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=ModifyDBClusterSSL
&DBClusterId=pc-************
&SSLEnabled=Enable
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBClusterSSLResponse>
<RequestId>A94B1755-6D8B-4E27-BF3C-8562BC******</RequestId>
</ModifyDBClusterSSLResponse>
JSON
format
{
"RequestId": "A94B1755-6D8B-4E27-BF3C-8562BC******"
}
Error codes
For a list of error codes, visit the API Error Center.