12-17-2018 05:10 AM - edited 03-01-2019 04:15 AM
Hi
what would be the equivalent request using RESTCONF
https://localhost:8888/api/running/devices/_operations/sync-from
Thanks
Regards
Yale
Solved! Go to Solution.
12-17-2018 07:04 AM - edited 12-17-2018 07:08 AM
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>
12-17-2018 05:15 AM
Should be:
https://localhost:8888/restconf/operations/devices/sync-from
12-17-2018 06:22 AM
error 405 :(
12-17-2018 07:04 AM - edited 12-17-2018 07:08 AM
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>
12-17-2018 07:25 AM
post not get ;)
Thanks
Regards
Yale
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