THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

How can I modify existing DTC Topolgy rule via WAPI ?

Authority
Posts: 14
4073     0

Hello,

We have a number of DTC configurations with corresponding topology rulesets and their rules.

Now I need to add an extra SubNet rule to some of the existing topology rulesets. It is just one subnet that needs to be put in these rulesets.
Doing this manually take some hours so I want to create a python script for this but I don't know how to setup the API call. 
Can someone help me with this ?

The idea of the python script would be to read a file that contains the names of the rulesets and then adds the subnet to them.

Re: How can I modify existing DTC Topolgy rule via WAPI ?

Moderator
Moderator
Posts: 315
4074     0

WHen you set the subnets for a rule, the entire set of subnets must be written.  You cannot add a new subnet to an existing subnet.  So first your script would need to read the list of current subnets, add any new subnets to that list, and then push back the entire list.

Re: How can I modify existing DTC Topolgy rule via WAPI ?

Authority
Posts: 14
4074     0

Even that seems to be a challenge to achieve with the current Infoblox documentation.

All I can get is the name and reference of the Topology rule, but I can not seem to retrieve the sources that are used in it. Let alone that I would be able to modify it and push back.

Re: How can I modify existing DTC Topolgy rule via WAPI ?

Moderator
Moderator
Posts: 315
4074     0

You need to ask it for the fields you want.  The rules sub-object allows for nested fields. For example:

 

https://gm.example.net/wapi/v2.11/dtc:topology?_return_fields%2b=comment,name,rules,rules.dest_type,rules.destination_link,rules.return_type,rules.sources,rules.topology,extattrs

Re: How can I modify existing DTC Topolgy rule via WAPI ?

New Member
Posts: 2
4074     0

Hi,

Is this also apply when updating topology rules using the GUI?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

NIOS 8.6.3 – What’s New in DDI