SolarWinds Backup Help

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 the device is created for (retrieved through the GetPartnerInfo method)

Int

Sample request

{
    "jsonrpc":"2.0",
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000",
    "id":"jsonrpc",
    "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-44fd-b073-a8a4a8ab1af1",
	    "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": "1591a397-891a-4911-99b2-8613e68f6d14",
	    "Type": "BackupManager"
	}
    ]
    },
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000"
}