Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to get DNS::Zone which are locked ?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 04:16 AM
Hi,
I want to get all DNS::Zone which are locked.
I try this :
my @zone_locked = $session->get(
object => "Infoblox:
NS::Zone",
locked => "true" );
But it returns me all DNS::Zone (even those which are "false") .
What is my error?
Thanks,
![Smiley Very Happy Smiley Very Happy](/i/smilies/16x16_smiley-very-happy.png)
Not all attributes are
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 01:09 PM
Not all attributes are searchable so for this particular query, you'd have to pull the zones you want to interrogate and then loop through and inspect the locked status for each. The loop itself will be fairly rapid.
I adapted this solution, and
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2015 06:33 AM
I adapted this solution, and it works.
Thank you for your reply !