How to get DNS::Zone which are locked ?

Hi,

I want to get all DNS::Zone which are locked.

I try this :

my @zone_locked = $session->get(
object => "Infoblox:Smiley Very HappyNS::Zone",
locked => "true" );

But it returns me all DNS::Zone (even those which are "false") .

What is my error?

Thanks,

Answers

  • 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 it works.
    Thank you for your reply !