- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
API Query: Fetch TTL value
06-08-2015 11:20 PM
In case the question isnt
06-09-2015 08:32 PM
How to get the default TTL for a zone
06-10-2015 04:53 AM
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:
The 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_gr...
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 of
False then the TTL value is inherited from the grid default TTL setting; if the value of
True 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).
Thank you so much Frank.
06-10-2015 09:47 PM