Arista eAPI management

Arista's eAPI was first introduced in EOS 4.12 a few years ago. It transports a list of show or configuration commands over HTTP or HTTPS and responds back in JSON. An important distinction is that it is a Remote Procedure Call (RPC) and JSON-RPC, instead of a pure RESTFul API that's served over HTTP or HTTPS. For our intents and purposes, the difference is that we make the request to the same URL endpoint using the same HTTP method (POST). Instead of using HTTP verbs (GET, POST, PUT, DELETE) to express our action, we simply state our intended action in the body of the request. In the case of eAPI, we will specify a method key with a runCmds value for our intention.

For the following examples, I am using a physical ...

Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.