Getting a list of storage nodes in JSON-RPC API
You can get a list of details on a storage node using the EnumerateStorageNodes
method.
Required parameters
Parameter | Description | Supported values |
---|---|---|
storageId
|
The ID of the storage node | <int> Integer |
Sample request
{ "jsonrpc":"2.0", "visa": "{{visa}}", "id":"jsonrpc", "method" : "EnumerateStorageNodes", "params" : { "storageId": 100 } }
Sample response
{ "id": "jsonrpc", "jsonrpc": "2.0", "result": { "result": [ { "ActiveAccounts": 0, "CommonInfo": { "CertificateInfo": { "Certificate": "", "CertificatePin": "", "EndDate": 0, "StartDate": 0 }, "Family": "FTPS", "GatewayHost": "", "Host": "100.0.0.0,iaso", "HttpGatewayHost": "", "Name": "node_1", "Password": "*****", "Path": "", "StorageId": 100, "User": "*****" }, "Id": 251, "LocationId": 1, "ModeInfo": { "Message": "", "Mode": "Operable" }, "StateInfo": { "PrivilegedStorage": 0, "State": [ "Online", "Migrated" ], "TotalStorage": 0, "UsedStorage": 0 }, "TotalAccounts": 0 } ] }, "visa": "{{visa}}" }