GET https://192.168.0.0:4443/dashboard/zones/localzone/disks HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"title" : "disks List",
"_links" : {
"self" : {
"href" : "/dashboard/zones/localzone/disks"
}
},
"_embedded" : {
"_instances" : [ {
"_links" : {
"self" : {
"href" : "/dashboard/disks/69721eed-3cae-4bf3-88c7-8719a9273af1-PD-32166816-ee8f-416d-a3de-a78851479019"
}
},
"apiChange" : "1",
"healthStatus" : "Good",
"displayName" : "2EGGT94R",
"id" : "69721eed-3cae-4bf3-88c7-8719a9273af1-PD-32166816-ee8f-416d-a3de-a78851479019",
"diskSpaceTotal" : [ { "t" : "1502322582", "Space" : "7999376588800" } ],
"diskSpaceAllocated" : [ { "t" : "1502322582", "Space" : "104079037920" } ],
"diskSpaceFree" : [ { "t" : "1502322582", "Space" : "7895297550880" } ],
"diskSpaceAllocatedL1" : [ { "t" : "1502322826", "Space" : "44217988320" } ],
"diskSpaceAllocatedL2" : [ { "t" : "1502322582", "Space" : "59861049600" } ],
"diskSpaceAllocatedPercentage" : [ { "t" : "1502322582", "Percent" : "1.3010893632101532" } ],
"diskSpaceFreeL1" : [ { "t" : "1502322826", "Space" : "7547002489760" } ],
"diskSpaceFreeL2" : [ { "t" : "1502322582", "Space" : "348295061120" } ],
"nodeDisplayName" : "boston-raspberry",
"nodeId" : "69721eed-3cae-4bf3-88c7-8719a9273af1",
"slotId" : "1",
"ssmL1Status" : "Good(PD UP)",
"ssmL2Status" : "Good(PD UP)",
"storagePoolId" : "b40efcb6-8392-4f51-b965-8b12c9ba6a24",
"storagePoolName" : "SP2",
}, {...}
}
}
ATTRIBUTES DESCRIPTION
======================
a. All Time Stamps are GMT Epoch time in seconds.
b. Numbers can be reported in different formats, including without decimal point (e.g. 23000000), with decimal point
(23000000.0) or exponential (2.3e7)
c. <Attribute>Current: The most recent value of an attribute. The attribute is returned in the form of a single snapshot
{"t":12345678, " 'value tag' ":10} where 'value tag' reports the most recently known value of the attribute
and timestamp 't' reports time for which this value is available. The value tag is the same as used for the original
historical attribute. Units of the reported current value are the same as units of the corresponding historical attribute.
d. <Attribute>Summary: (Historical attributes only) The summary values for a historical attribute which includes
Min (lowest), Max (highest) and Avg (average) values across all snapshots. The attribute is returned in the form of
{"Min": {"t":"12345678", "Percent":10}, "Max": {"t":"23435455", "Percent": "43"}, "Avg": "30.67" }.
The value tag is the same as used for the original historical attribute. Units of the reported current value are the
same as units of the corresponding historical attribute.
e. 'dataType' filter: The client can use this filter to indicate which data needs to be returned in the feed. If not supplied,
both current and historical data will be returned.
dataType=current: return only the Current values, as detailed in Point C.
dataType=historical&startTime=<Time>&endTime=<Time>&interval=<Interval in seconds>: return historical series data
and summary for the period specified. Start and End Times are in Epoch Time in Seconds.
f. 'category' filter: Every API can be called with an optional 'category' filter. This filter specifies the category of
data to be included in the API. It is recommended to use filters only when a subset of the attributes is necessary.
g. Starting from ECS 2.2 a new variable named "apiChange' is returned. This variable may be removed in future versions
of the API, and currently always has the value "1".
------------------------------------+-----------+-------------------------------------------------------------------+------------
Attribute |Historical?|Category| Description |Units
------------------------------------+-----------+-------------------------------------------------------------------+------------
url.self | | |URL to this resource |
------------------------------------+-----------+-------------------------------------------------------------------+------------
title | | |Name of resource |
------------------------------------+-----------+-------------------------------------------------------------------+------------
id | | |ID of the disk |
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocated |historical |capacity|Space allocated for chunks on the disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedL1 |historical |capacity|Space allocated for chunks on the disk(s) for L1 |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedL2 |historical |capacity|Space allocated for chunks on the disk(s) for L2 |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedPercentage |historical |capacity|Total allocated space over total usable space on disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFree |historical |capacity|Total free usable disk space of disk(s) if status is Good |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFreeL1 |historical |capacity|Level 1 usable disk space |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFreeL2 |historical |capacity|Level 2 usable disk space |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceTotal |historical |capacity|Total usable space on the disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
displayName | | |Name of the disk |
------------------------------------+-----------+-------------------------------------------------------------------+------------
healthStatus | | |Disk health status: Good, NotAccessible, Suspect, Bad, |
| | |Removed, Missing, Maintenance |
------------------------------------+-----------+-------------------------------------------------------------------+------------
nodeDisplayName | | |Name of the node |
------------------------------------+-----------+-------------------------------------------------------------------+------------
nodeId | | |ID of the node |
------------------------------------+-----------+-------------------------------------------------------------------+------------
slotId | | |ID of the disk slot |
------------------------------------+-----------+-------------------------------------------------------------------+------------
ssmL1Status | | |L1 disk status as reported by Storage Server Manager (SSM)|
------------------------------------+-----------+-------------------------------------------------------------------+------------
ssmL2Status | | |L2 disk status as reported by Storage Server Manager (SSM)|
------------------------------------+-----------+-------------------------------------------------------------------+------------
storagePoolId | | |ID of the StoragePool |
------------------------------------+-----------+-------------------------------------------------------------------+------------
storagePoolName | | |Name of the StoragePool |
------------------------------------+-----------+-------------------------------------------------------------------+------------
Request
curl -H $token -H "Content-Type: application/json" -X GET https://$nodeIp:4443/dashboard/zones/localzone/disks
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"title" : "disks List",
"_links" : {
"self" : {
"href" : "/dashboard/zones/localzone/disks"
}
},
"_embedded" : {
"_instances" : [ {
"_links" : {
"self" : {
"href" : "/dashboard/disks/69721eed-3cae-4bf3-88c7-8719a9273af1-PD-32166816-ee8f-416d-a3de-a78851479019"
}
},
"apiChange" : "1",
"healthStatus" : "Good",
"displayName" : "2EGGT94R",
"id" : "69721eed-3cae-4bf3-88c7-8719a9273af1-PD-32166816-ee8f-416d-a3de-a78851479019",
"diskSpaceTotal" : [ { "t" : "1502322582", "Space" : "7999376588800" } ],
"diskSpaceAllocated" : [ { "t" : "1502322582", "Space" : "104079037920" } ],
"diskSpaceFree" : [ { "t" : "1502322582", "Space" : "7895297550880" } ],
"diskSpaceAllocatedL1" : [ { "t" : "1502322826", "Space" : "44217988320" } ],
"diskSpaceAllocatedL2" : [ { "t" : "1502322582", "Space" : "59861049600" } ],
"diskSpaceAllocatedPercentage" : [ { "t" : "1502322582", "Percent" : "1.3010893632101532" } ],
"diskSpaceFreeL1" : [ { "t" : "1502322826", "Space" : "7547002489760" } ],
"diskSpaceFreeL2" : [ { "t" : "1502322582", "Space" : "348295061120" } ],
"nodeDisplayName" : "boston-raspberry",
"nodeId" : "69721eed-3cae-4bf3-88c7-8719a9273af1",
"slotId" : "1",
"ssmL1Status" : "Good(PD UP)",
"ssmL2Status" : "Good(PD UP)",
"storagePoolId" : "b40efcb6-8392-4f51-b965-8b12c9ba6a24",
"storagePoolName" : "SP2",
}, {...}
}
}
ATTRIBUTES DESCRIPTION
======================
a. All Time Stamps are GMT Epoch time in seconds.
b. Numbers can be reported in different formats, including without decimal point (e.g. 23000000), with decimal point
(23000000.0) or exponential (2.3e7)
c. <Attribute>Current: The most recent value of an attribute. The attribute is returned in the form of a single snapshot
{"t":12345678, " 'value tag' ":10} where 'value tag' reports the most recently known value of the attribute
and timestamp 't' reports time for which this value is available. The value tag is the same as used for the original
historical attribute. Units of the reported current value are the same as units of the corresponding historical attribute.
d. <Attribute>Summary: (Historical attributes only) The summary values for a historical attribute which includes
Min (lowest), Max (highest) and Avg (average) values across all snapshots. The attribute is returned in the form of
{"Min": {"t":"12345678", "Percent":10}, "Max": {"t":"23435455", "Percent": "43"}, "Avg": "30.67" }.
The value tag is the same as used for the original historical attribute. Units of the reported current value are the
same as units of the corresponding historical attribute.
e. 'dataType' filter: The client can use this filter to indicate which data needs to be returned in the feed. If not supplied,
both current and historical data will be returned.
dataType=current: return only the Current values, as detailed in Point C.
dataType=historical&startTime=<Time>&endTime=<Time>&interval=<Interval in seconds>: return historical series data
and summary for the period specified. Start and End Times are in Epoch Time in Seconds.
f. 'category' filter: Every API can be called with an optional 'category' filter. This filter specifies the category of
data to be included in the API. It is recommended to use filters only when a subset of the attributes is necessary.
g. Starting from ECS 2.2 a new variable named "apiChange' is returned. This variable may be removed in future versions
of the API, and currently always has the value "1".
------------------------------------+-----------+-------------------------------------------------------------------+------------
Attribute |Historical?|Category| Description |Units
------------------------------------+-----------+-------------------------------------------------------------------+------------
url.self | | |URL to this resource |
------------------------------------+-----------+-------------------------------------------------------------------+------------
title | | |Name of resource |
------------------------------------+-----------+-------------------------------------------------------------------+------------
id | | |ID of the disk |
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocated |historical |capacity|Space allocated for chunks on the disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedL1 |historical |capacity|Space allocated for chunks on the disk(s) for L1 |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedL2 |historical |capacity|Space allocated for chunks on the disk(s) for L2 |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceAllocatedPercentage |historical |capacity|Total allocated space over total usable space on disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFree |historical |capacity|Total free usable disk space of disk(s) if status is Good |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFreeL1 |historical |capacity|Level 1 usable disk space |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceFreeL2 |historical |capacity|Level 2 usable disk space |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
diskSpaceTotal |historical |capacity|Total usable space on the disk(s) |Bytes
------------------------------------+-----------+-------------------------------------------------------------------+------------
displayName | | |Name of the disk |
------------------------------------+-----------+-------------------------------------------------------------------+------------
healthStatus | | |Disk health status: Good, NotAccessible, Suspect, Bad, |
| | |Removed, Missing, Maintenance |
------------------------------------+-----------+-------------------------------------------------------------------+------------
nodeDisplayName | | |Name of the node |
------------------------------------+-----------+-------------------------------------------------------------------+------------
nodeId | | |ID of the node |
------------------------------------+-----------+-------------------------------------------------------------------+------------
slotId | | |ID of the disk slot |
------------------------------------+-----------+-------------------------------------------------------------------+------------
ssmL1Status | | |L1 disk status as reported by Storage Server Manager (SSM)|
------------------------------------+-----------+-------------------------------------------------------------------+------------
ssmL2Status | | |L2 disk status as reported by Storage Server Manager (SSM)|
------------------------------------+-----------+-------------------------------------------------------------------+------------
storagePoolId | | |ID of the StoragePool |
------------------------------------+-----------+-------------------------------------------------------------------+------------
storagePoolName | | |Name of the StoragePool |
------------------------------------+-----------+-------------------------------------------------------------------+------------