API Endpoint
http://localhost:5001/api/v1/storage/hosts/info
Arguments
Argument | Input Values | Type | Description | Required? |
---|---|---|---|---|
host-info-mode | all | string | Determines if either all the storage hosts or only certain storage hosts information is outputted. | N |
Usage
// Output storage hosts information
curl -X POST "http://localhost:5001/api/v1/storage/hosts/info?host-info-mode=all"
Response
{
"Nodes": [
{
"node_id": "16Uiu2HAm1w5WMxGCriUPz6eHN1YNjPPy7W3XG2zciJhsMF2GWXWL",
"create_timestamp": "2019-09-25T02:33:10.252092Z",
"update_timestamp": "2020-01-22T23:53:54.324533Z",
"region": "California",
"btfs_version": "1.0.0",
"score": 8,
"heart_beats": 6342,
"uptime": 0.551,
"age": 10358444,
"reputation": 60,
..........
"upload_variance": 0.016222889,
"location": {
"lat": 33.7,
"lon": -117.8
},
"storage_volume_cap": 15107810000,
"storage_volume_left": 15107809000,
"country_short": "US",
"flg": {}