Forum Discussion
syncretism
Nimbostratus
Jun 22, 2017What's the Best Way to Derive a Device-Group Name Over REST?
In order to create some scaleable BigIP automation, I need to be able to sync my active and standby balancers. To do this, I need to know the name of the device group. I've been using JQ to filter th...
Ed_Summers
Nimbostratus
Jun 22, 2017I use the Python SDK so I may not be able to get you exactly there, but hopefully can help a bit.
There is a device_groups sub-collection under /mgmt/tm/cm. I just checked a cluster that is running a single traffic-group, and it has three device-groups: gtm, the device_trust_group, and the sync-failover group containing the traffic group.
There may be a better way to pull the desired device-group from that list. In my case the desired group is the only one of type sync-failover (the others are sync-only).
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
