cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
462
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

 

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: RESTAPI to RESTCONF

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
Highlighted
Cisco Employee

Re: RESTAPI to RESTCONF

Should be:

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

Re: RESTAPI to RESTCONF

error 405 :(

Highlighted
Cisco Employee

Re: RESTAPI to RESTCONF

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

Highlighted

Re: RESTAPI to RESTCONF

post not get ;)

 

Thanks

Regards

Yale