Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted
Accepted Solution

The action is not allowed. A parent was not found

Techie
Posts: 5
7499     0

Hi All,

 

Getting this error message

{ "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:The action is not allowed. A parent was not found.)",
"code": "Client.Ibap.Data.Conflict",
"text": "The action is not allowed. A parent was not found."

 

Any clue what went wrong? However, the I set DNS to FALSE (configure_for_dns=false) it works. But I need the DNS set to TRUE. 

Any work around? is it possible to select the zone manually via WAPI? Instead of put it this way  "name": "test.test.loc"?

 

Cheers,

Sofia

Highlighted

Re: The action is not allowed. A parent was not found

Community Manager
Community Manager
Posts: 167
7499     0

It would be hard to understand without digging in further...  You are specifying that the host record has a DNS name, however the gridmaster cannot find a zone where that DNS name can be stored (either "test.loc" or "loc" would work).  You might have to specify the correct DNS veiew or network view so it's obvious where it should look for the zone.

Highlighted

Re: The action is not allowed. A parent was not found

Techie
Posts: 5
7499     0

Hi 

 

 

Highlighted

Re: The action is not allowed. A parent was not found

Techie
Posts: 1
7500     0

Hello All,

 

I am trying create a host via REST API, using json format. My infoblox version is 8.0.6.

 

When a sent a POST  https://infoblox.domain.net/wapi/v1.2/record:host

 

The json content: 

 

{
"name":"host001.des.domain.net",
"ipv4addrs": [
{
"ipv4addr":"10.1.1.1"
}
]
}

 

The DNS domain des.domain.net exist, however I receive the same error:  

 

{
"Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:The action is not allowed. A parent was not found.)",
"code": "Client.Ibap.Data.Conflict",
"text": "The action is not allowed. A parent was not found."
}

 

 

 

Highlighted

Re: The action is not allowed. A parent was not found

Community Manager
Community Manager
Posts: 167
7500     0

As mentioned above, you should define the dns view so you know where it lands.  Also define whether or not it should be used for DHCP.  If it is used for DHCP, that DHCP network must also be defined.

 

For example,

 

{ "name": "host001.des.domain.net",
  "view": "Internal",
  "ipv4addrs": [  {"ipv4addr": "10.1.1.1",  "configure_for_dhcp": false} ]
}
Highlighted

Re: The action is not allowed. A parent was not found

[ Edited ]
Not applicable
Posts: 3
7500     0

Facing a similar problem and not sure how to use network view.

 

curl -k -u admin:Infoblox -H 'content-type: application/json' -X POST "https://<IP>/wapi/v2.7/record:host?_return_fields=name,ipv4addrs&_return_as_object=1" -d '{"name":"host2.info.com","ipv4addrs":[{"ipv4addr":"172.26.1.20","mac":"aa:bb:cc:11:22:21"}],"network_view":"automationNV1"}'

 

{ "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:The action is not allowed. A parent was not found.)",

  "code": "Client.Ibap.Data.Conflict",

  "text": "The action is not allowed. A parent was not found."

}

Highlighted

Re: The action is not allowed. A parent was not found

Not applicable
Posts: 3
7500     0

Same problem with DHCP Range

{ "Error": "AdmConDataError: None (IBDataConflictError: IB.Data.Conflict:Cannot find the parent network for the DHCP range 14.14.14.2 - 14.14.14.10.)",

  "code": "Client.Ibap.Data.Conflict",

  "text": "Cannot find the parent network for the DHCP range 14.14.14.2 - 14.14.14.10."

}

Highlighted

Re: The action is not allowed. A parent was not found

Community Manager
Community Manager
Posts: 167
7500     0

A network view is a complete compartmentalization of dns & dhcp data.  In order for a DNS-enabled host to be created, there must be a parent zone in that network view that can contain the host.  In order for the range to be created, there must be a parent network within that view that can contain the range.

Highlighted

Re: The action is not allowed. A parent was not found

[ Edited ]
Not applicable
Posts: 3
7500     0

Hi MRichard, thanks for the quick response. Can you please provide an example with curl? I really appreciate your help. Ths is what I've been trying:

 

curl -k -u admin:Infoblox -H 'content-type: application/json' -X POST "https://<IP>/wapi/v2.7/range?_return_fields=start_addr,end_addr,member&_return_as_object=1" -d '{"start_addr": “14.14.14.2","end_addr": “ 14.14.14.23","server_association_type": "MEMBER","member":{"_struct": "dhcpmember","ipv4addr" : “172.28.11.56"}}’

Showing results for 
Search instead for 
Do you mean 

Recommended for You