Getting a list of storages in JSON-RPC API
You can get a list of storages using the EnumerateStorages
method.
Required parameters
Parameter | Description | Supported values |
---|---|---|
partnerId
|
The ID of the customer to list the storages for (retrieved through the GetPartnerInfo method) |
<int> Integer |
Sample request
{ "jsonrpc":"2.0", "visa": "{{visa}}", "id":"jsonrpc", "method" : "EnumerateStorages", "params" : { "partnerId": 123456 } }
Sample response
{ "id": "jsonrpc", "jsonrpc": "2.0", "result": { "result": [ { "Id": 100, "LocationId": 1, "Name": "Storage01", "NodeEmptierTrigger": "", "NodeFullTrigger": "", "PartnerId": 123456 } ] }, "visa": "{{visa}}" }