GET api/Hosting/{hosting_handle}/Size?user={user}
Get size info for a given hosting
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hosting_handle |
Hosting object handle |
string |
Required |
| user |
Owner of object. If empty, currently logged in user will be used |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
Size info object on success
Collection of errors on failure
Return codes
200 - ok
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| MaxSize |
Total size available |
integer |
None. |
| LogFiles |
Size of logs |
decimal number |
None. |
| www |
Size of web sites |
decimal number |
None. |
| total |
Total size |
decimal number |
None. |
| stats |
Size of statistics |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"MaxSize": 1,
"LogFiles": 2.1,
"www": 3.1,
"total": 4.1,
"stats": 5.1
}
application/xml, text/xml
Sample:
<Size xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Hosting"> <LogFiles>2.1</LogFiles> <MaxSize>1</MaxSize> <stats>5.1</stats> <total>4.1</total> <www>3.1</www> </Size>