- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Correct usage / syntax on "allow_update" field
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2020 12:28 PM
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!
Re: Correct usage / syntax on "allow_update" field
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2020 11:48 PM
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
namedacl/b25lLmRlZmluZWRfYWNsJDAuSW50ZXJuYWwgSG9zdHM:Internal%20Hosts
POST /wapi/v2.10/zone_auth Content-Type: application/json { "fqdn":"test.org", "allow_update":[ { "_ref":"namedacl/b25lLmRlZmluZWRfYWNsJDAuSW50ZXJuYWwgSG9zdHM:Internal%20Hosts" } ] }