Getting device info by Token
To get information about a backup device by its token, use the GetAccountInfoByToken method.
Required Parameters
Parameter | Description | Supported values |
---|---|---|
token | The token of the backup device to get information for | <std::string> |
Optional Parameters
Parameter | Description | Supported values |
---|---|---|
AccontStorageInfo | A group of parameters related to the device's storage | AccountStorageInfo, (has child parameters of its own, see the AccountStorageInfo child parameters table below) |
AccountStorageInfo child parameters
Parameter | Description | Type/Supported values |
---|---|---|
CabinetAccountNodeId | The ID number of the cabinet account node to assign to the device |
|
HomeAccountNodeId | The ID number of the home account node to assign to the device |
|
CabinetStorageNodeId | The ID number of the cabinet storage node to assign to the device |
|
HomeStorageNodeId | The ID number of the home storage node to assign to the device |
|
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}}"
}
Updated 27 days ago