Reply

WAPI for Reverse Zone

[ Edited ]
Guru
Posts: 54
74     0

I have a number of /19 blocks that I am attempting to allow a particular group to have specific permissions.  Because they are /19s, for each block I have to create a separate reverse zone for each of teh /24s inside the /19.

For a given /19, that's 32 reverse zones.  If the blocks could be contiguous, I'd condense them into a /16, and create one reverse zone, but that's not possible.

 

Is it possible to create a reverse zone via the WAPI?  I typically use python, but curl would probably suffice.  I'd also like to apply a standard set of perissions to each of these reverse zones.  Can that be automated as well?

Re: WAPI for Reverse Zone

Adviser
Posts: 168
75     0

Hi,

 

You can use the following WAPI to create reverse zones:

import requests

url = "https://grid-master/wapi/v2.10/zone_auth"

payload="{\r\n\t\"fqdn\": \"10.10.10.in-addr.arpa \",\r\n\t\"zone_format\":\"IPV4\"\r\n}\r\n"
headers = {
  'Authorization': 'Basic Yxxxxxxxxxxxxxxxxxx',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Regards,

Krishna Vasudevan

Re: WAPI for Reverse Zone

Guru
Posts: 54
75     0

Would you happen to have anything for setting the group permissions on a reverse zone?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Demo: Infoblox IPAM plug-in integration with OpenStack Newton