Exports tests from one or more devices.
The device.export
command is available only when logged into the BVE API server as an admin user or superuser
.
If the testName
parameter is used, tests with names matching the specified regular expression are exported. Otherwise, all tests from the specified devices are exported.
If there is name conflict, a unique name in the target department is generated. For example, if device X from department P is exported to department Q, but there is already a device named X in Q, the exported device is named X_imp_<timestamp>
. If X already exists in Q and is based on an exported device from P, then the list of tests in device X in department Q is updated. If a single device is specified, the newDeviceName
parameter can be used to set the device name in the target department. In this case, that device name must not already exist in the target department.
device.export "deviceName=<name|regexp>"
[, newDeviceName=<name>]
[,"testName=<regexp>"]
, "accountName=<value>"
, "newAccountName=<regexp>"
Examples:
device.export "deviceName=My_Dev1", "accountName=My_Dept", "newAccountName=Your_Dept", "newDeviceName=Your_Dev1"
device.export "deviceName=Router*", "testName=Packet Loss", "accountName=My_Dept", "newAccountName=Your_Dept"