Correct usage / syntax on "allow_update" field

Posts: 1
470     0

Hi Infoblox Experts!


I'm adding authoritative reverse zones using Powershell, using the below:

$data = '{"fqdn": "'+$Name+'","zone_format": "IPV4","view":"Internal","ns_group":"Internal","use_allow_update":true}'

Invoke-RestMethod -Uri $URL -Method Post -Credential $Creds -Body $data -ContentType "application/json"


The above works fine, however, when I want to use the "allow_update": field to appoint a named ACL, I can't find the right syntax to do that, always get 400 error.


Few examples I've tried but all fail e.g.:


$data = '{"fqdn": "'+$Name+'","zone_format":

"IPV4","view":"Internal","ns_group":"Internal","use_allow_update":true,"allow_update":[{"namedacl":"TEST DDNS Updaters"}/"Allow"]}'



$data = '{"fqdn": "'+$Name+'","zone_format": "IPV4","view":"Internal","ns_group":"Internal","use_allow_update":true,"allow_update":[{"namedacl":"TEST DDNS Updaters"}]}'



$data = '{"fqdn": "'+$Name+'","zone_format": "IPV4","view":"Internal","ns_group":"Internal","use_allow_update":true,"allow_update":[{"namedacl":"TEST DDNS Updaters/Allow"}]}'



$data = '{"fqdn": "'+$Name+'","zone_format": "IPV4","view":"Internal","ns_group":"Internal","use_allow_update":true,"allow_update":"TEST DDNS Updaters"}'


Could you give an example of how the "allow_update" should look like, preferably even a PS example please?


Thank you!

Re: Correct usage / syntax on "allow_update" field

Posts: 17
470     0

You need to supply a reference to the Named ACL, which means you need to run a GET first. For my example, the object reference for the Named ACL is 



 POST /wapi/v2.10/zone_auth
 Content-Type: application/json

Showing results for 
Search instead for 
Did you mean: 

Recommended for You