Session Action
Request
GET /rest/v1/session
SinceVersion dev
GET /rest/v1/session/all
Description
Session Action is used to obtain the current session information.
Path parameters
None
Query parameters
None
Request body
None
Obtain the current session information
GET /rest/v1/session
Response
1. {
2. "msg": "success",
3. "code": 0,
4. "data": {
5. "column_names": ["Id", "User", "Host", "Cluster", "Db", "Command", "Time", "State", "Info"],
6. "rows": [{
7. "User": "root",
8. "Command": "Sleep",
9. "State": "",
10. "Cluster": "default_cluster",
11. "Host": "10.81.85.89:31465",
12. "Time": "230",
13. "Id": "0",
14. "Info": "",
15. "Db": "db1"
16. }]
17. },
18. "count": 2
19. }
Obtain all FE session information
GET /rest/v1/session/all
Response
1. {
2. "msg": "success",
3. "code": 0,
4. "data": {
5. "column_names": ["FE", "Id", "User", "Host", "Cluster", "Db", "Command", "Time", "State", "Info"],
6. "rows": [{
7. "FE": "10.14.170.23",
8. "User": "root",
9. "Command": "Sleep",
10. "State": "",
11. "Cluster": "default_cluster",
12. "Host": "10.81.85.89:31465",
13. "Time": "230",
14. "Id": "0",
15. "Info": "",
16. "Db": "db1"
17. },
18. {
19. "FE": "10.14.170.24",
20. "User": "root",
21. "Command": "Sleep",
22. "State": "",
23. "Cluster": "default_cluster",
24. "Host": "10.81.85.88:61465",
25. "Time": "460",
26. "Id": "1",
27. "Info": "",
28. "Db": "db1"
29. }]
30. },
31. "count": 2
32. }
The returned result is the same as System Action. Is a description of the table.
