Queries the number of connections to an 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
Call the DescribeDBClusters operation to view the details of all AnalyticDB for MySQL clusters in a specific region. These details include the cluster ID. |
am-bp1jj9xqft1po**** |
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> |
Information about client IP addresses. |
|
|
object |
The parameter details. |
||
| AccessIp |
string |
The IP address of the client. |
42.120.XX.XX |
| Count |
integer |
The connection count. |
1 |
| UserRecords |
array<object> |
A list of user information. |
|
|
object |
An array of parameters. |
||
| User |
string |
The username. |
test |
| Count |
integer |
The connection count. |
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.