Reply

how to add CAA records via python and the infoblox-client module

Authority
Posts: 7
3060     0

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

 

Re: how to add CAA records via python and the infoblox-client module

Adviser
Posts: 181
3060     0

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

Authority
Posts: 7
3061     0

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

Adviser
Posts: 181
3061     0

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

Authority
Posts: 7
3061     0

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?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You