cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1453
Views
0
Helpful
4
Replies

RESTAPI to RESTCONF

Hi 

what would be the equivalent request using RESTCONF

https://localhost:8888/api/running/devices/_operations/sync-from

 

Thanks

Regards

Yale

 

 

1 Accepted Solution

Accepted Solutions

I might had a bit of a copy-paste accident...

 

curl -i -k -u admin:admin https://localhost:8888/restconf/data/devices/sync-from -X POST
HTTP/1.1 200 OK
Server: 
Date: Mon, 17 Dec 2018 15:05:57 GMT
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
Content-Length: 827
Content-Type: application/yang-data+xml
Vary: Accept-Encoding
Pragma: no-cache

<output xmlns='http://tail-f.com/ns/ncs'>
  <sync-result>

 

View solution in original post

4 Replies 4

yfherzog
Cisco Employee
Cisco Employee

Should be:

https://localhost:8888/restconf/operations/devices/sync-from

error 405 :(

I might had a bit of a copy-paste accident...

 

curl -i -k -u admin:admin https://localhost:8888/restconf/data/devices/sync-from -X POST
HTTP/1.1 200 OK
Server: 
Date: Mon, 17 Dec 2018 15:05:57 GMT
Cache-Control: private, no-cache, must-revalidate, proxy-revalidate
Content-Length: 827
Content-Type: application/yang-data+xml
Vary: Accept-Encoding
Pragma: no-cache

<output xmlns='http://tail-f.com/ns/ncs'>
  <sync-result>

 

post not get ;)

 

Thanks

Regards

Yale

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: