Returns the current number of connections for a specified AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeConnectionCountRecords |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL clusters in a specified region, including the cluster ID. |
am-bp1jj9xqft1po**** |
| RegionId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
562C7F89-FBE6-4A04-AAAA-7EBC25****** |
| DBClusterId |
string |
The cluster ID. |
am-bp1jj9xqft1po**** |
| AccessIpRecords |
array<object> |
The client IP information. |
|
|
object |
The response parameters. |
||
| AccessIp |
string |
The client IP address. |
42.120.XX.XX |
| Count |
integer |
The number of connections. |
1 |
| UserRecords |
array<object> |
The list of user information. |
|
|
object |
The response parameters. |
||
| User |
string |
The username. |
test |
| Count |
integer |
The number of connections. |
1 |
Examples
Success response
JSON format
{
"RequestId": "562C7F89-FBE6-4A04-AAAA-7EBC25******",
"DBClusterId": "am-bp1jj9xqft1po****",
"AccessIpRecords": [
{
"AccessIp": "42.120.XX.XX",
"Count": 1
}
],
"UserRecords": [
{
"User": "test",
"Count": 1
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.