- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
how to add CAA records via python and the infoblox-client module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2021 01:40 PM
Hoi looking for some help to understand better the infoblox_client to create and update CAA
the following variable are needed
domain = foo.com
record type = CAA
Bit = 0
tag = issue
iodef
certificate authority = "some text"
I know there is an object CaaRecord
the question is then how to create /update a CAA record
hr = objects.CaaRecord.create(conn, view='my_dns_view', but then?
Can some advise me
and where to find good overview how to format the different objects
Thanks
Chris
Chris
Solved! Go to Solution.
Re: how to add CAA records via python and the infoblox-client module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2021 03:23 AM
Hi,
Could you please try this:
obj, created = objects.CaaRecord.create_check_exists(connector=conn, view='my_dns_view', name='caa.foo.com', ca_flag=128, ca_tag='issue', ca_value='some text')
Regards,
Krishna
Re: how to add CAA records via python and the infoblox-client module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2021 03:46 AM
Hi KKrishna
I tried your suggestion
infoblox_client.exceptions.InfobloxCannotCreateObject: Cannot create 'record:caa' object(s): b'{ "Error": "AdmConProtoError: Illegal object type (record:caa)", \n "code": "Client.Ibap.Proto", \n "text": "Illegal object type (record:caa)"\n}' [code 400]
t looks like its not supported? What do you think
Chris
Re: how to add CAA records via python and the infoblox-client module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2021 05:38 AM
Hi,
It is supported in the latest version of the infoblox client based on the list here: https://github.com/infobloxopen/infoblox-client
Could you please make sure you are using the latest version of the client (0.5.0)?
Regards,
Krishna
Re: how to add CAA records via python and the infoblox-client module
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2021 01:55 PM
I found the solution by default the Infoblox clients use the WAPI 2.1 but that doesn't support the CAA.
Within the connector setup. you must specify the wapi version in my case 2.11.2 and there it starts to work.
I am starting with the infoblox_client but it is not well documented, how to use. I am now looking in how to update 4 CAA records of the same name but should have different ca_value. Is there some who has some example how to do that?