URI
<mydatas_uri>/capacity[.<format>]
Supported methods
Parent resource
Introduction
With dataCapacity resource, users could view current data capacity status.
Supported Methods:
- GET: Get user's data capacity information.
- HEAD: Check whether the dataCapacity resource exists. or if the current user has the permission to access the dataCapacity resource.
Supported output formats: RJSON, JSON, HTML and XML.
Resource hierarchy

HTTP request methods
Execute the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/web/mycontent/datas/capacity.rjson
GET request
Get user's data capacity information.
Response structure
Execute GET request on dataCapacity resource, and return current user's data capacity information. It is composed of:
Field | Type | Description |
maxCapacity |
long |
Maximum capacity. Each user has 2G capacity by default. Administrator could change the maximum according to Data Management Page. |
usedCapacity |
long |
Capacity used, in Bytes. |
Response example
The returned rjson format representation after executing the GET request on the dataCapacity resource http://localhost:8090/iportal/web/mycontent/datas/capacity.rjson is as follows:
{
"maxCapacity": 2147483648,
"usedCapacity": 8315645
}
HEAD request
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the dataCapacity resource exists, or if the dataCapacity resource can be accessed by clients. It can also determine if the dataCapacity resource supports an output format <format> if performed on a URI with .<format> included.