Forum Discussion
Add new key into data group without updating entire list using the API
- Apr 22, 2020
Hello,
I workaround this with options parameter:
e.g.
?options=records add { key3 { data value3 } }
curl -ku "admin:admin" -X PATCH -H 'Content-type: application/json' -d '{ "name":"my_datagroup" }' https://localhost/mgmt/tm/ltm/data-group/internal/my_datagroup?options=records%20add%20%7b%20key3%20%7b%20data%20value3%20%7d%20%7d |jq .
Best regards.
nice! I'll test 12.1, 15.1 and 16.1 and then call it good. I appreciate you!
- ashkFeb 13, 2024Cirrus
Okay, seems this one is using options to add, but I read its using tmsh commands to fulfil the same. but when we migrate to NEXT there would be no TMSH, what would be the best way to achieve to add a name and data to a data-group using iControl REST API?
- JRahmFeb 13, 2024Admin
there won't be an iControl REST as is in BIG-IP Next. Data-groups are not yet supported in Next, when those are added we'll have a better idea on how it will be supported, whether those will be expected to be part of the application declaration or a shared object that is versioned like iRules in CM. If I had to guess, it will be a versioned shared object that can then be deployed/rolled-back, but given the size of some data-groups, there may be incremental diffs supported. Time will tell.
- ashkFeb 13, 2024Cirrus
Got it, We are building a pool/class maintenance page based on API, hope it wont break when we migrate to NEXT. :)
Thank you again.
Recent Discussions
Related Content
* 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