The eAPI agent on the Arista device is disabled by default, so we will need to enable it on the device before we can use it:
arista1(config)#management api http-commandsarista1(config-mgmt-api-http-cmds)#no shutarista1(config-mgmt-api-http-cmds)#protocol https port 443arista1(config-mgmt-api-http-cmds)#no protocol httparista1(config-mgmt-api-http-cmds)#vrf management
As you can see, we have turned off the HTTP server and are using HTTPS as the sole transport instead. Starting from a few EOS versions ago, the management interfaces, by default, reside in a VRF called management. In my topology, I am accessing the device via the management interface; therefore, I have specified the VRF for eAPI management. You can check ...