Information
The Arista Command eAPI is a simple and complete API that allows you to configure and monitor your Arista switches. Once the API is enabled, the switch accepts HTTPS requests containing a list of industry standard CLI commands, and responds with machine-readable output and errors serialized in JSON (served over HTTP or HTTPS). HTTP can be enabled but should be left disabled.
EOS API provides structured output more suitable for programmatic parsing than cli scraping.
If the API is enabled, it should only use https, not http.
Solution
switch(config)#management api http-commands
switch(config-mgmt-api-http-cmds)#no shutdown
switch(config-mgmt-api-http-cmds)#default protocol http
switch(config-mgmt-api-http-cmds)#vrf MGMT
switch(config-mgmt-api-http-cmds-vrf-MGMT)#no shutdown
switch(config-mgmt-api-http-cmds-vrf-MGMT)#