You can call the DescribeHADiagnoseConfig operation to query the availability check method of an ApsaraDB RDS instance.
By default, Alibaba Cloud uses persistent connections to check the availability of an ApsaraDB RDS instance.
For more information, see What is availability detection?
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeHADiagnoseConfig |
The operation that you want to perform. Set the value to DescribeHADiagnoseConfig. |
DBInstanceId | String | Yes | rm-uf6wjk5xxxxxxxxxx |
The ID of the instance. You can call the DescribeDBInstances operation to query the IDs of instances. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 06B220E2-EAC5-4DBE-A1FC-1B62DB6A4455 |
The ID of the request. |
TcpConnectionType | String | LONG |
The availability check method of the instance. Valid values:
|
Examples
Sample requests
http(s)://rds.aliyuncs.com/?Action=DescribeHADiagnoseConfig
&DBInstanceId=rm-uf6wjk5xxxxxxxxxx
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<DescribeHADiagnoseConfigResponse>
<RequestId>06B220E2-EAC5-4DBE-A1FC-1B62DB6A4455</RequestId>
<TcpConnectionType>LONG</TcpConnectionType>
</DescribeHADiagnoseConfigResponse>
JSON
format
{
"RequestId": "06B220E2-EAC5-4DBE-A1FC-1B62DB6A4455",
"TcpConnectionType": "LONG"
}
Error codes
For a list of error codes, visit the API Error Center.