cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
121
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

NSO API's - CLI output


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

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: NSO API's - CLI output

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

1 REPLY 1
Cisco Employee

Re: NSO API's - CLI output

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