syncretism
Jun 22, 2017Nimbostratus
What'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 the output from https://active-balancer.mydomain.com/mgmt/tm/cm/syncStatus/
I have to upload an image, because devcentral's flagging my post as spam:
This isn't ideal, but I guess if I can always rely on the description for to contain the device group, I can parse it out with JQ. Is there a better way to get the desired string, which, in this case, is FOO-BAR-LB (see highlight in image)? Indeed, if there's a better approach to syncing an active:failover pair when you don't know the name of the device group, I'm all ears! Thanks.