cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
435
Views
10
Helpful
1
Replies

Is kicker RESTAPI developed ?

nso20
Level 1
Level 1

Hello,

 

I am wondering and searched for kicker RESTAPI but didn't find. I am trying to GET kickers configured on NSO or POST/PUT new kicker. As you know, on NSO CLI, we always do unhide debug, but how can we do it via RESTAPI call.

NSO version: 4.7.5.2 and 5.2.1

1 Accepted Solution

Accepted Solutions

gmuloche
Cisco Employee
Cisco Employee

Hello,

 

you have a Query parameter you can add to your GET request:

 

 

http://127.0.0.1:8080/restconf/data/tailf-kicker:kickers?unhide=debug

This is described in NSO Northbound documentation / The RESTCONF API / Extensions / Additional query parameters (though it will redirect you to similar section in REST API) but it works (just tested this on NSO 5.2.1.1 for the record)

 

Now this gives you a GET ... and documentation does not say anything about PATCH though I just tried and it works

 

Screen Shot 2020-03-11 at 11.43.06 AM.png

 

View solution in original post

1 Reply 1

gmuloche
Cisco Employee
Cisco Employee

Hello,

 

you have a Query parameter you can add to your GET request:

 

 

http://127.0.0.1:8080/restconf/data/tailf-kicker:kickers?unhide=debug

This is described in NSO Northbound documentation / The RESTCONF API / Extensions / Additional query parameters (though it will redirect you to similar section in REST API) but it works (just tested this on NSO 5.2.1.1 for the record)

 

Now this gives you a GET ... and documentation does not say anything about PATCH though I just tried and it works

 

Screen Shot 2020-03-11 at 11.43.06 AM.png