- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Multiple objects in request body
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 04:42 AM - edited 02-19-2024 01:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 06:27 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 07:27 AM
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