Retrieving Configurations
This page describes how you can retrieve configuration files from IP Fabric’s configuration management capability to be consumed outside the platform.
Do this in two stages:
-
Send a
POSTto/tables/management/configurationwith a request body like:{ "columns":["id", "hash", "hostname", "lastChangeAt", "lastCheckAt", "reason", "sn", "status"] }Of course, you can filter that list (for example, for devices containing
L36) with akey:valuepair:"filters": { "hostname": ["like","L36"] }or you can select the range of dates you are interested in:
"filters": { "lastCheckAt": ["gte",XXXXXXXXXXXXXX] }where
XXXXXXXXXXXXXXis the UNIX epoch time representing the start of the time range.This gives you the list of saved configurations, and most importantly, the “hash” for each of them.
-
Send a
GETto/tables/management/configuration/download?hash=XXXXXXXXXXXXX, whereXXXXXXXXXXXXXis the hash for the required configuration from the list returned in step 1. This returns the plain text of the configuration in question.