cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
898
Views
5
Helpful
1
Replies

Service Reconcile with RESTCONF

Hey 

 

I have a doubt about the RESTCONF Tags, actually is possible to do a re-deploy service reconcile with RESTCONF API  ? 

 

 

1 Reply 1

gmuloche
Cisco Employee
Cisco Employee

Hello,

 

yes reconcile is actually an action you can do a POST on your service instance re-deploy action and add in the payload the input parameter for reconcile (you can add the reconcile flags to keep or discard non service config inside the payload)

 

curl --location --request POST 'http://localhost:8080/restconf/data/test:test=42/re-deploy' \
--header 'Accept: application/yang-data+json' \
--header 'Content-Type: application/yang-data+json' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{
"input": {
"reconcile": {}
}
}'