Modified since last release
Get Cluster Capacity
GET /object/capacity
Gets the capacity of the cluster. The details includes the provisioned capacity in GB and available capacity in GB.
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
Response Body
Capacity of the cluster
Field |
Description |
Type |
Notes |
cluster_capacity |
|
|
|
totalProvisioned_gb |
Total provisioned capacity. |
Long |
|
totalFree_gb |
Total free capacity. |
Long |
|
Examples
Request
GET https://192.168.0.0:4443/object/capacity HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cluster_capacity>
<totalFree_gb>739</totalFree_gb>
<totalProvisioned_gb>750</totalProvisioned_gb>
</cluster_capacity>
Request
GET https://192.168.0.0:4443/object/capacity.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"cluster_capacity": {
"totalFree_gb": "739",
"totalProvisioned_gb": "750"
}
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/capacity
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cluster_capacity>
<totalFree_gb>739</totalFree_gb>
<totalProvisioned_gb>750</totalProvisioned_gb>
</cluster_capacity>