Infoblox-Development / Infoblox-API-Python

Implements the subset of Infoblox API via REST API
Apache License 2.0
89 stars 59 forks source link

Question about A record #30

Closed Jbone187 closed 4 years ago

Jbone187 commented 4 years ago

I have been looking all over the internet and haven't found a way to create a A record with the wapi. I have only seen how to create a host. Just to verify to your knowledge do you just use a host as a A record?

armsby commented 4 years ago

A record can be created like this: curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://gridmaster/wapi/v2.11/record:a?_return_fields%2B=name,ipv4addr&_return_as_object=1" -d '{"name":"server.info.com","ipv4addr":"10.10.10.2"}'

Jbone187 commented 4 years ago

I get this error when I try that:

{ "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."

Jbone187 commented 4 years ago

I got it to work ty