cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
445
Views
0
Helpful
1
Replies

NSO API's - CLI output

vikhegde
Cisco Employee
Cisco Employee


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

1 Accepted Solution

Accepted Solutions

frjansso
Cisco Employee
Cisco Employee

AFAIK you can only get the configuration as XML (default) or JSON (Accept: application/vnd.yang.data+json) via REST.

View solution in original post

1 Reply 1

frjansso
Cisco Employee
Cisco Employee

AFAIK you can only get the configuration as XML (default) or JSON (Accept: application/vnd.yang.data+json) via REST.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community:

Recognize Your Peers