Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps


issues adding host record to zone of DNS View

[ Edited ]
Posts: 1
1700     1



I am trying to add a host record to a zone of a DNS view. The DNS view I am working with is named "MS DNS". The authoritative zone within the view is named "". I thought the PowerShell below would handle this, but I keep getting "400 Bad Request". I've read up on this a bit, I am positive it has something to do with me not understanding the difference between Network View and DNS View as they relate to the view parameter in the request below. The code snippit below returns "The remote server returned an error: (400) Bad Request.". 


Thanks for the help!


$cred = Get-Credential
$body = @{
    name = ''
    ipv4addrs = @(
            ipv4addr = ''
    view = 'MS DNS'
} | ConvertTo-Json

$uri = ""
Invoke-WebRequest -Uri $uri -Method Post -Credential $cred -UseBasicParsing -Body $body -ContentType 'application/json'


Showing results for 
Search instead for 
Did you mean: 

Recommended for You