Connection Action
Requestβ
GET /api/connection
Descriptionβ
Given a connection id, return the query id that is currently being executed for this connection or the last execution completed.
The connection id can be viewed through the id column in the MySQL command show processlist;
.
Path parametersβ
ζ
Query parametersβ
-
connection_id
Specified connection id
Request bodyβ
None
Responseβ
{
"msg": "OK",
"code": 0,
"data": {
"query_id": "b52513ce3f0841ca-9cb4a96a268f2dba"
},
"count": 0
}
Examplesβ
-
Get the query id of the specified connection id
GET /api/connection?connection_id=101
Response:
{
"msg": "OK",
"code": 0,
"data": {
"query_id": "b52513ce3f0841ca-9cb4a96a268f2dba"
},
"count": 0
}