2.9 API access using https

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)#

See Also

https://workbench.cisecurity.org/benchmarks/25683

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-13

Plugin: Arista

Control ID: 362d25d2980df9b49de97b0816635bc2944cb6baa4d8ec190f00f579ed1739b6