An example messing around with the python bigsuds library:
b = bigsuds.BIGIP(hostname='ltm3.test.local')
rrs = b.Management.ResourceRecord.get_rrs([{'view_name': 'external', 'zone_name': 'test.local.'}])
for rr in rrs[0]:
print(rr)
test.local. 500 IN SOA ltm3.test.local. hostmaster.ltm3.test.local. 2021091401 10800 3600 604800 60
test.local. 0 IN NS ltm3.test.local.
test.local. 3600 IN CAA 0 issue test.local
test.local. 3600 IN CAA 0 issuewild test.local
gslb_test.test.local. 0 IN A 192.168.102.40
ltm3.test.local. 0 IN A 127.0.0.1
w3.test.local. 3600 IN A 10.0.0.102
www.test.local. 0 IN A 10.0.0.101
b.Management.ResourceRecord.add_a(view_zones = [{'view_name': 'external', 'zone_name': 'test.local.'}],
a_records = [[{'domain_name': 'w4.test.local.', 'ip_address': '10.0.0.104', 'ttl': 3600}]], sync_ptrs = [0])
rrs = b.Management.ResourceRecord.get_rrs([{'view_name': 'external', 'zone_name': 'test.local.'}])
for rr in rrs[0]:
print(rr)
test.local. 500 IN SOA ltm3.test.local. hostmaster.ltm3.test.local. 2021091402 10800 3600 604800 60
test.local. 0 IN NS ltm3.test.local.
test.local. 3600 IN CAA 0 issue test.local
test.local. 3600 IN CAA 0 issuewild test.local
gslb_test.test.local. 0 IN A 192.168.102.40
ltm3.test.local. 0 IN A 127.0.0.1
w3.test.local. 3600 IN A 10.0.0.102
w4.test.local. 3600 IN A 10.0.0.104
www.test.local. 0 IN A 10.0.0.101