Getting device info by Token

To get information about a backup device by its token, use the GetAccountInfoByToken method.

Required Parameters

ParameterDescriptionSupported values
tokenThe token of the backup device to get information for<std::string>

Optional Parameters

ParameterDescriptionSupported values
AccontStorageInfoA group of parameters related to the device's storageAccountStorageInfo, (has child parameters of its own, see the AccountStorageInfo child parameters table below)

AccountStorageInfo child parameters

ParameterDescriptionType/Supported values
CabinetAccountNodeIdThe ID number of the cabinet account node to assign to the device<int> Integer
HomeAccountNodeIdThe ID number of the home account node to assign to the device<int> Integer
CabinetStorageNodeIdThe ID number of the cabinet storage node to assign to the device<int> Integer
HomeStorageNodeIdThe ID number of the home storage node to assign to the device<int> Integer

Sample request

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "visa": "{{visa}}",
    "method": "GetAccountInfoByToken",
    "params": {
	"token": "068a53c1-a64b-45c8-a87e-0000XX0000X0Xx0"
    }
}

Sample response

{
    "id": "jsonrpc",
    "jsonrpc": "2.0",
    "result": {
	"accountStorageInfo": {
	    "CabinetAccountNodeId": 1234567,
	    "CabinetStorageNodeId": 2345678,
	    "HomeAccountNodeId": 3456789,
	    "HomeStorageNodeId": 4567890	},
	"result": {
	    "CreationTime": 1530535000,
	    "ExpirationTime": 1790640000,
	    "Id": 654321,
	    "LocationId": 1,
	    "Name": "device1",
	    "NameAlias": null,
	    "OverrideVirtual": "Default",
	    "PartnerId": 13579,
	    "Password": "XXXXXXXXXX",
	    "ProductId": 28345,
	    "RemovalTime": 0,
	    "StorageId": 0,
	    "StorageLocationId": 1,
	    "Token": "068a53c1-a64b-45c8-a87e-0000XX0000X0Xx0",
	    "Type": "BackupManager"
	}
    },
    "visa": "{{visa}}"
}

Did this page help you?