Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API Examples

Reply
Highlighted

Correct usage / syntax on "allow_update" field

Posts: 1
38     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.:

1.

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

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

 

2.

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

 

3.

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

 

4.

$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!

Showing results for 
Search instead for 
Do you mean 

Recommended for You