Esa_Kuusisto_27
Mar 24, 2014Nimbostratus
REST Api and Config sync question.
I am trying to use REST api to make config sync. I have active/standby pair. I can make changes to active unit using REST api. Now I want to make sync to standby unit. Using GUI or TMSH "tmsh run cm config-sync to-group pair-group-name" works fine. In manual page 69 is simple example for ping using run command, but that is not very helpful.
I have done testing by curl and all other commands like making virtualserver work fine. I am asking little help with config sync. This is so far best what I have done:
curl -sk -u admin:adminpw https://demo.box/mgmt/tm/util/tmsh -H 'Content-Type: application/json' -X POST -d '{"command":"run","utilCmdArgs":"run cm config-sync to-group pair-group-name"}'
I think that in url /tm/util..etc I need to change that or something else.