I would like to get some ideas on how to automate the following process.
I have created a location tag, let’s call it “US assets”. From a .txt file, I am importing a list of IP ranges and subnets and, I am tagging them as “US assets”. In addition, I have created a dynamic asset group that is taking all the assets labeled as “US assets”, let’s call this group, “US asset group”. I have set up a new site “US site” and I am telling it to scan the “US asset group”. So far so good, this is working and in fact I am able to replicate the same process for different locations.
Now what happens when a new subnet is included in my environment? I would have to generate a new .txt and update manually the “US assets” tag with the content. Sometimes is not just about adding subnets but also removing IP ranges that we are not longer using. I haven’t found a way to automate this process and it becomes problematic when I have to do it for a bunch of locations. I am looking for a way to leverage the API or another tool to automate the process of adding/removing IPs to a given tag based on a .txt file.
I would appreciate it if you have any suggestions.
If something is unclear I can provide more information.