Adding backup devices in JSON-RPC API

To add a backup device, use the AddAccount method. Devices are added one at a time.

Required parameters

Parameter Description Type/Supported values
accountInfo A group of parameters related to the device AccountInfo, (has child parameters of its own see the AccountInfo child parameters table below)

Optional parameters

Parameter Description Type/Supported values

homeNodeInfo

A group of parameters related to the storage node StorageNodeInfo, (has child parameters of its own, see the HomeNodeInfo child parameters table below)

downloadLinkInfo

The information for the download link for the Cove Data Protection (Cove) Backup Manager DownloadLinkInfo (has child parameters of its own, see the DownloadLinkInfo child parameters table below)

Sample request

{
    "id": "jsonrpc",
    "visa": "33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000",
    "method": "AddAccount",
    "jsonrpc": "2.0",
    "params": {
	"accountInfo": {
		"Name": "test-device",
		"PartnerId": 33495,
		"ProductId": 1,
		"LocationId": 1
	}
    }
}

Sample response

{  
    "id":"jsonrpc",
    "jsonrpc":"2.0",
    "result":{  
	"result":{  
		"Id":72910,
		"Name":"test-device",
		"Password":"24e3ec5461ed",
		"Token":"068a53c1-a64b-45c8-a87e-0000XX0000X0Xx0"
	}
    },
    "visa":"33491-50121-1-1512736778-A99E8BAC8AC82XXXXX0000000XXXXXXXXXXXX00000"
}