eapi_run

Function eapi_run 

Source
pub fn eapi_run<T: AsRef<str>>(
    sysname: Option<&str>,
    commands: &[T],
    format: ResultFormat,
) -> Result<Response, Error>
👎Deprecated since 0.2.0: please use the ClientBuilder
Expand description

Runs commands via eAPI and returns the results.

§Arguments:

  • sysname argument should be left as None for running commands on production devices.
  • commands is a list of commands to run (they shouldn’t end with new line).
  • format specifies 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.