API Query: Fetch TTL value
a)@ Grid Level
b)@ Zone Level
Best Answer
-
My apologies for the delay in responding. To get the default TTL for a zone you can do a GET request for a URL like the following:
https://gm.example.com/wapi/v2.1/zone_auth?fqdn=hq.example.com&_return_fields=soa_default_ttl,use_grid_zone_timerThe corresponding curl command would be
curl --tlsv1 --insecure --user 'admin:infoblox' 'https://gm.example.com/wapi/v2.1/zone_auth?fqdn=hq.example.com&_return_fields=soa_default_ttl,use_grid_zone_timer'The value of the
soa_default_ttl
field is the TTL value that will be used by default for records in the zone. If the value ofuse_grid_zone_timer
isFalse
then the TTL value is inherited from the grid default TTL setting; if the value ofuse_grid_zone_timer
isTrue
then the grid default TTL value has been overridden and a TTL value set specifically for that zone.Unlike in the Perl API, in the RESTful API there is no way to directly retrieve (or set) the grid default TTL value. There is a
grid:dns
object that would be the obvious place to put a field for this, but there is no such field in the latest API version (2.1, for NIOS 7.1). If you'd like a way to do this, please work with your account manager and SE to have them submit a formal Request for Enhancement (RFE).0
Answers
-
In case the question isnt clear let me explain again.
We are trying to fetch A, PTR etc records and diplaying it in one of our application. So we also want to display TTL value. However if we fetch A record etc it doesnt show TTL value if it is either inherted from Zone or Grid. If i specifically give TTL value then only i get TTL value.
Is there any API by which i can fetch TTL for Zone and Grid Level?
I found one solution https://ipam.illinois.edu/api/doc/Infoblox/Grid/DNS.html#default_ttl___
but can't find equivalent for REST API0 -
Thank you so much Frank. Thanks a lot.0
Categories
- All Categories
- 5.1K Forums
- 4.6K Critical Network Services
- 463 Security
- Visibility and Insights
- Ideas Portal
- Webinars & Events
- 266 Resources
- 266 News & Announcements
- Knowledge Base Articles
- Infoblox Documentation Portal
- Infoblox Blog
- Support Portal
- 4 Members Hub
- 4 Getting Started with Community
- Community Support