cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1465
Views
0
Helpful
2
Replies

ASA REST API - Basic Device Information

Sloanstar
Level 5
Level 5

Looking to grab ASA software version, platform information, chassis inventory and up-time information from the API. Where I would expect to find this there is no documented method. Is this an oversight?

 

These do not provide the requisite information:

  • /api/monitoring/device
API operations for monitoring various device metrics.
 
  • /api/monitoring/device/components
API operations for monitoring of various device components, including software and hardware information and statistics.
2 Replies 2

Sloanstar
Level 5
Level 5

Found an old blog post.

 

This seems rather undocumented in the /doc links, but this will get me some of the information.

 

/api/monitoring/device/components/version

 

Interestingly enough when calling the above uri leaving off the trailing version, no version information is returned but a host of other information is preset. Seems like a "bug" / oversight.

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

The API URL you are looking for is:

/api/monitoring/device/components/version

 

... if all else fails you can always use /api/cli and send a list of commands and regex the returned response list.

 

cheers,

Seb.