Dashboard Module GraphQL APIs

This wiki is to capture the Dashboard module provided GraphQL APIs.

 

 

Fetch All Details of Diskspace

API - checkdiskspace

API Parameter - None

 

Query Parameter 

Query Parameters 

message status totalCount diskspace {     storage_path     available_space     used_space     total_size     used_percentage }

API Example - 

API Request 

GQLAPI:  /admin/api/api/gql    parameters:   query {     checkdiskspace {       message       status       totalCount       diskspace{           storage_path           available_space           used_space           total_size           used_percentage       }     } }

API Response 

{   "data": {     "checkdiskspace": {       "message": "Successfully found disks space details",       "status": true,       "totalCount": 2,       "diskspace": [         {           "storage_path": "/dev/mapper/SangomaVG-root",           "available_space": "6.0G",           "used_space": "9.3G",           "total_size": "16G",           "used_percentage": "61%"         },         {           "storage_path": "/dev/sda1",           "available_space": "1.8G",           "used_space": "58M",           "total_size": "1.9G",           "used_percentage": "4%"         }       ]     }   } }

Return to Documentation Home I Return to Sangoma Support