pub fn eapi_run<T: AsRef<str>>(
sysname: Option<&str>,
commands: &[T],
format: ResultFormat
) -> Result<Response, Error>Expand description
Runs commands via eAPI and returns the results.
Arguments:
sysnameargument should be left asNonefor running commands on production devices.commandsis a list of commands to run (they shouldn’t end with new line).formatspecifies if the results of the commands is plain text or JSON.
The commands are executed in order and the execution stops at the first command that results in an error.