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

Reply

Multiple object body request

Member
Posts: 1
457     1

Hi,

 

Trying to add few PTR records using multiple object body request API, below is the payload snippet

[
 {
  'method': 'POST',
  'object': 'record:ptr',
  'data': {
     'view': 'default',
     'ipv4addr': '3.X.X.1',
     'ptrdname': 'ptr.infoblox.com'
  }
 },
 {
  'method': 'POST',
  'object': 'record:ptr',
  'data': {
     'view': 'default',
     'ipv4addr': '3.X.X.2',
     'ptrdname': 'ptr.infoblox.com'
  }
 },
 {
  'method': 'POST',
  'object': 'record:ptr',
  'data': {
     'view': 'default',
     'ipv4addr': '3.X.X.3',
     'ptrdname': 'ptr.infoblox.com'
  }
 }
]
...

Somewhere in the payload an IP is creating below issue, probably zone under delegation as shown below.

{
    "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:Cannot add records to a zone that is not authoritative)",
    "code": "Client.Ibap.Data.Conflict",
    "text": "Cannot add records to a zone that is not authoritative"
}

Is there a option to achieve below items,

1. Prevalidate all the IPs to check for delegation before implementing and gather only valid ones, then perform API call

2. Any option available in request API to skip those records which fail and proceed with other records in multiple object body request

 

Or any other suggestion would be much appreciated.

 

Thanks

Re: Multiple object body request

Community Manager
Community Manager
Posts: 180
458     1

Based on the error you shared, it sound like there is no in-addr.arpa zone configured to hold these records.  DNS records can only be created within a parent zone that is confiugred as primary in the grid.  (with the exception of MS Sync zones).

Re: Multiple object body request

Adviser
Posts: 179
458     1

Hi,

 

The request object does not give provision to skip some of the requests based on success/failure.

If you would like to prevalidate the IP address, this would have to be done using the programming language you are using before invoking this API.

 

Regards,

Krishna

Showing results for 
Search instead for 
Did you mean: 

Recommended for You