REST Get Nodes
To get a quick summary of the status and capacity of the nodes on the server running Lightbits, use the GET method with this URL /api/v2/nodes
.
Sample Command
curl -s -X GET --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $LIGHTOS_JWT" https://localhost:443/api/v2/nodes | jq
Sample Output
{
"nodes": [
{
"name": "server00-0",
"UUID": "5d8fef00-82b0-559f-a523-990ac14ddb09",
"state": "Active",
"status": "NoStatus",
"nvmeEndpoint": "10.166.14.1:4420",
"failureDomains": [
"server00"
],
"failureInfo": "",
"hostname": "rack12-server61",
"inLocalRebuild": false,
"localRebuildProgress": 0,
"numManagedDevices": 6,
"maxNvmeDevices": 6,
"ec": true,
"statistics": {
"managedPhysicalStorage": "24004722180096",
"effectivePhysicalStorage": "17403423473664",
"logicalStorage": "2199023255552",
"logicalUsedStorage": "0",
"physicalUsedStorage": "0",
"physicalUsedStorageIncludingParity": "0",
"freePhysicalStorage": "17403423473664",
"estimatedFreeLogicalStorage": "17403423473664",
"estimatedLogicalStorage": "17403423473664",
"compressionRatio": 1
},
"serverUUID": "95c8298f-77d6-504f-ba15-7eacbf2bae1a",
"ETag": "0",
"readOnly": false,
"powerupProgress": 100
}
]
}
Was this page helpful?