06-12-2017 02:30 AM - edited 03-01-2019 03:51 AM
We are looking for API’s to talk to NSO collector in CLI format.
We tried the available API’s but output is in XML format.
For example, when we make a NSO REST API call to get the configuration of a device managed by NSO using the URL below the response is in XML format.
Is there a way to get the response in the format as displayed on the device CLI (e.g. show running-config)?
http://10.126.78.221:8080/api/running/devices/device/c0/config
Solved! Go to Solution.
06-14-2017 12:30 AM
AFAIK you can only get the configuration as XML (default) or JSON (Accept: application/vnd.yang.data+json) via REST.
06-14-2017 12:30 AM
AFAIK you can only get the configuration as XML (default) or JSON (Accept: application/vnd.yang.data+json) via REST.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide