Getting device info by ID in JSON-RPC API

To get information about a backup device by its ID, use the GetAccountInfoById method.

Required parameters

Parameter Description Supported values
accountId

The ID of the backup device to get information for.

This information can be found when running the GetAccountInfo call which uses the account name.

<int> Integer

Optional parameters

Parameter Description 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)

Sample request

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "visa": "{{visa}}",
    "method": "GetAccountInfoById",
    "params": {
	"accountId": 72896
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"homeNodeInfo": {
	    "ActiveAccounts": 1084,
	    "CommonInfo": {
		"CertificateInfo": {
		    "ValidationMethod": "OsTrustStore"
		},
		"Family": "WEBMOD",
		"GatewayHost": "",
		"Host": "hostname:port",
		"HttpGatewayHost": "hostname:port",
		"Name": "storageName",
		"Password": "*****",
		"Path": "",
		"StorageId": 1234567,
		"User": "*****"
	    },
	    "Id": 2345678,
	    "LocationId": 1,
	    "ModeInfo": {
		"Mode": "Operable"
	    },
	    "StateInfo": {
		"PrivilegedStorage": 0,
		"State": [
		    "Online"
		],
		"TotalStorage": 269320579,
		"UpdateTimestamp": 1666347496,
		"UsedStorage": 210196248
	    },
	    "TotalAccounts": 165
	},
	"result": {
	    "CreationTime": 1517402049,
	    "ExpirationTime": 1535673599,
	    "Id": 72896,
	    "LocationId": 1,
	    "Name": "test-device",
	    "NameAlias": null,
	    "OverrideVirtual": "Default",
	    "PartnerId": 33495,
	    "Password": "673487fcvg1",
	    "ProductId": 28382,
	    "RemovalTime": 0,
	    "StorageId": 0,
	    "StorageLocationId": 1,
	    "Token": "068a53c1-a64b-45c8-a87e-0000XX0000X0Xx0",
	    "Type": "BackupManager"
	}
    },
    "visa": "{{visa}}"
}