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 | jqSample Output
x
{"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}]}This example output only shows the first block of information. The command returns much more data for each node.
You can also use this command to get the information for a specific node by adding the node UUID to the command. For example:
curl -s -X GET http://192.168.16.153:80/api/v2/nodes/ee4f807f-5eb2-49f8-8315-ccf08df55601Was this page helpful?