Disk Space (/disk_space/)

Disk Space (/disk_space/)

You can test API methods on the interactive API browser page and without writing code
Some of the resources described on the page may not be available by default due to the type of application (see Creating and authorizing applications).

The "Disk Space" resource allows you to get the information about a disk space usage by a client. 

Description of Data Structures 

Name 

Type 

Description 

Name 

Type 

Description 

call_records_count 

long 

Counter of call record files 

call_records_size 

long 

Size of call record files in bytes 

fax_count  

long 

Fax message counter 

fax_size  

long 

Size of fax message files, in bytes 

free_space  

long 

Size of free disk space, in bytes. If this value is equal to zero, the functions associated with writing files to the disk (conversation record, reception of voice messages, reception of a fax) stop working 

total_space 

long 

Total size of disk space allocated to the client, in bytes 

voicemail_count  

long 

Voice message counter 

voicemail_size  

long 

Size of voice messages files, in bytes 

Example 

Get a disk space information: 

Composition - Tabs

System response: 

{   "total_space": 10485760,   "fax_size": 0,   "voicemail_count": 0,   "free_space": 10485760,   "fax_count": 0,   "call_records_size": 0,   "voicemail_size": 0,   "call_records_count": 0 }

"Client" Section Resources 

GET /client/{client_id}/disk_space/  Get a client information about disk space  URL Options  Name  Type  client_id  string  Response Fields  Name  Type  call_records_count  long  call_records_size  long  fax_count   long  fax_size   long  free_space   long  total_space  long  voicemail_count   long  voicemail_size   long