Queries the Secure Sockets Layer (SSL) settings of a PolarDB cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeDBClusterSSL

The operation that you want to perform. Set the value to DescribeDBClusterSSL.

DBClusterId String Yes pc-************

The ID of the cluster.

Response parameters

Parameter Type Example Description
Items Array of Item

The list of SSL connections.

DBEndpointId String pe-************

The ID of the cluster endpoint.

SSLConnectionString String pc-************.mysql.polardb.rds.aliyuncs.com

The SSL connection string.

SSLEnabled String Enabled

The status of SSL encryption. Valid values:

  • Enabled: indicates that SSL encryption is enabled.
  • Disabled: indicates that SSL encryption is disabled.
SSLExpireTime String 2021-11-13T07:14:22Z

The time when the SSL certificate expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

RequestId String C890995A-CF06-4F4D-8DB8-DD26C2******

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=DescribeDBClusterSSL
&DBClusterId=pc-************
&<Common request parameters>

Sample success responses

XML format

<DescribeDBClusterSSLResponse>
  <RequestId>C890995A-CF06-4F4D-8DB8-DD26C2******</RequestId>
  <Items>
        <SSLConnectionString>pc-************.mysql.polardb.rds.aliyuncs.com</SSLConnectionString>
        <SSLExpireTime>2021-11-13T07:14:22Z</SSLExpireTime>
        <DBEndpointId>pe-************</DBEndpointId>
        <SSLEnabled>Enabled</SSLEnabled>
  </Items>
</DescribeDBClusterSSLResponse>

JSON format

{
	"RequestId": "C890995A-CF06-4F4D-8DB8-DD26C2******",
	"Items": [
		{
			"SSLConnectionString": "pc-************.mysql.polardb.rds.aliyuncs.com",
			"SSLExpireTime": "2021-11-13T07:14:22Z",
			"DBEndpointId": "pe-************",
			"SSLEnabled": "Enabled"
		}
	]
}

Error codes

For a list of error codes, visit the API Error Center.