Getting a list of storage nodes (by account ID) in JSON-RPC API
You can get the information of storage nodes used by a device using the EnumerateStorageNodesByAccountId
method.
Required parameters
Parameter | Description | Supported values |
---|---|---|
accounts
|
The ID of the account (device) | <int> Integer |
Sample request
{ "jsonrpc":"2.0", "visa": "{{visa}}", "id":"jsonrpc", "method" : "EnumerateStorageNodesByAccountId", "params" : { "accounts": 135791 } }
Sample response
{ "id": "jsonrpc", "jsonrpc": "2.0", "result": { "result": [ { "AccountId": 135791, "CurrentStorageNodeId": 0987654, "StorageNodes": [ { "ActiveAccounts": 694, "CommonInfo": { "CertificateInfo": { "ValidationMethod": "OsTrustStore" }, "Family": "FAMILY", "GatewayHost": "", "Host": "hostname:port", "HttpGatewayHost": "hostname:port", "Name": "nl.ams.17.01", "Password": "*****", "Path": "", "StorageId": 1001001, "User": "*****" }, "Id": 6789012, "LocationId": 1, "ModeInfo": { "Mode": "Operable" }, "StateInfo": { "PrivilegedStorage": 0, "State": [ "Online" ], "TotalStorage": 269080761, "UpdateTimestamp": 1693215848, "UsedStorage": 230868142 }, "TotalAccounts": 4436 }, { "ActiveAccounts": 1201, "CommonInfo": { "CertificateInfo": { "ValidationMethod": "OsTrustStore" }, "Family": "FAMILY", "GatewayHost": "", "Host": "hostnane:port", "HttpGatewayHost": "hostname:port", "Name": "nl.ams.19.14", "Password": "*****", "Path": "", "StorageId": 1001001, "User": "*****" }, "Id": 7890123, "LocationId": 1, "ModeInfo": { "Mode": "Operable" }, "StateInfo": { "PrivilegedStorage": 0, "State": [ "Online" ], "TotalStorage": 393082055, "UpdateTimestamp": 1693219985, "UsedStorage": 205150708 }, "TotalAccounts": 5963 } ] } ] }, "visa": "{{visa}}" }