Forum Discussion
Brad_Baker
Cirrus
Nov 27, 2023Modifying multiple entries in a datagroup via api?
We have a datagroup with entries like this: domain1.com := virtual /Common/www.domain1.com_vs_443
domain2.com := virtual /Common/www.domain2.com_vs_443
domain3.com := virtual /Common/www.domain3...
- Nov 27, 2023
Hi Brad_Baker
You can additionally edit the content for a specific register
curl -ku "admin:Logi-123" -X PATCH -H 'Content-type: application/json' -d '{ "name":"test_domain" }' https://localhost/mgmt/tm/ltm/data-group/internal/test_domain?options=records%20modify%20%7B%20key3%20%7B%20data%20ke3new%20%7D%20%7D|jq .
as tmos you can use all of this option to interact with the data-groups
add delete modify none replace-all-with
to avoid mistakes use a tool to encode and decode the URL.
Cory_50405
Noctilucent
Jun 26, 2014Verify virtual server availability is a checkbox in the GTM pool config. If you want to get just the pools that have this setting enabled, do this from bash shell:
tmsh list gtm pool all-properties one-line | grep "verify-member-availability enabled" > /var/tmp/poolswithverify.txt
This will output those pools and their configurations to the text file specified in the path.
Brian_Saunders1
Altostratus
Jul 02, 2014Thanks - that was helpful!