Forum Discussion
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 ...
Esa_Kuusisto_27
Jul 16, 2014Nimbostratus
I think this is your problem: http://localhost:8110/tm/cm Request is not going where it should go.
- Gregory_Mone_15Jul 16, 2014NimbostratusI thought that as well, but I checked where it's going on the way out, and all looks good, that seems to be the address that I get on every failed WebRequest.
- Nov 17, 2017
If you still experience issues you may want to try this slightly modified approach (i.e. for sync-failover-device-group devicegroup_lab-01; tested in v12.1.2):
curl -svk -H "X-F5-Auth-Token: ${token}" -H 'Content-Type: application/json' -X POST -d '{"command":"run","options":[{"to-group":"devicegroup_lab-01"}]}' "https://${bigip}/mgmt/tm/cm/config-sync" | json-format
Alternatively you can add the options as query parameter (use encoding; tested in v12.1.2):
curl -svk -H "X-F5-Auth-Token: ${token}" -H 'Content-Type: application/json' -X POST -d '{"command":"run"}' "https://${bigip}/mgmt/tm/cm/config-sync?options=to-group%20devicegroup_lab-01" | json-format
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects