Enumerating Devices in JSON-RPC API

You can get the list of devices of your own company and your customers using the EnumerateAccounts method.

Required parameters

Parameter Description Supported values
partnerId

The ID of the customer whose devices you wish to list (retrieved through the GetPartnerInfo method)

<int> Integer

Sample request

{
    "id":"jsonrpc",
    "jsonrpc":"2.0",
    "visa": "{{visa}}",
    "method" : "EnumerateAccounts",
    "params" : {
	    "partnerId" : 123456
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
    "result": [
	{
	    "CreationTime": 1543482480,
	    "ExpirationTime": 2147483647,
	    "Id": 546852,
	    "LocationId": 1,
	    "Name": "Testpc1",
	    "NameAlias": null,
	    "PartnerId": 123456,
	    "Password": "111222c11011",
	    "ProductId": 56789,
	    "RemovalTime": 0,
	    "StorageLocationId": 1,
	    "Token": "9814bf0b-3a13-54jd-j972-g9s0q8hx3af1",
	    "Type": "BackupManager"
	},
			
	{
	    "CreationTime": 1547372143,
	    "ExpirationTime": 2147483647,
	    "Id": 846235,
	    "LocationId": 1,
	    "Name": "Pctestingenviron1",
	    "NameAlias": null,
	    "PartnerId": 123456,
	    "Password": "11ab22c33d44",
	    "ProductId": 56789,
	    "RemovalTime": 0,
	    "StorageLocationId": 1,
	    "Token": "530mw397-85dq-47hh-01d5-8613e68f6d14",
	    "Type": "BackupManager"
	}
    ]
    },
    "visa": "{{visa}}"
}