Getting device ID in JSON-RPC API
To get a backup device's ID number, use the GetAccountId method.
Required parameters
| Parameter | Description | Supported values |
|---|---|---|
accountName
|
The name of the backup device to get the ID for | <std::string>
|
accountPassword
|
The password for access to the backup device | <std::string>
|
Sample request
{
"id": "jsonrpc",
"jsonrpc": "2.0",
"visa": "{{visa}}",
"method": "GetAccountId",
"params": {
"accountName": "device1",
"accountPassword": "XXXXXXX"
}
}
Sample response
{
"id": "jsonrpc",
"jsonrpc": "2.0",
"result": {
"result": 543210
},
"visa": "{{visa}}"
}
