kkara_240139
Feb 05, 2016Nimbostratus
How can I remove a DNS Cache Record Using F5 REST API
i want removing DNS old, invalid DNS cache records from F5 using REST API, but no resource or sample available. Using tmsh, it can be done within 3 commands like below; but we dont wanne use tmsh because of performance issues. Can any one done this before and can share the code sample? Thanks
response = sshService.execute("tmsh");
logger.info("TMSH response:" + response);
response = sshService.execute("ltm dns cache records");
logger.info("LTM response:" + response);
response = sshService.execute("delete rrset type a cache " + url);
logger.info("DELETE response:" + response);
response = sshService.execute("quit");