Show Data Action
Requestβ
GET /api/show_data
Descriptionβ
Used to get the total data volume of the cluster or the data volume of the specified database. Unit byte.
Path parametersβ
None
Query parametersβ
-
db
Optional. If specified, get the data volume of the specified database.
Request bodyβ
None
Responseβ
-
Specify the amount of data in the database.
{
"msg": "success",
"code": 0,
"data": {
"default_cluster:db1": 381
},
"count": 0
} -
Total data
{
"msg": "success",
"code": 0,
"data": {
"__total_size": 381
},
"count": 0
}
Examplesβ
-
Get the data volume of the specified database
GET /api/show_data?db=db1
Response:
{
"msg": "success",
"code": 0,
"data": {
"default_cluster:db1": 381
},
"count": 0
} -
Get the total data volume of the cluster
GET /api/show_data
Response:
{
"msg": "success",
"code": 0,
"data": {
"__total_size": 381
},
"count": 0
}