Template Stack variable assignments via API

Reply
Highlighted
L2 Linker

Template Stack variable assignments via API

Greetings,

 

I use Template Stacks with variables a lot for firewalls with the same hardware and network settings.

To assign the value of a variable, I go to the template stack and export the variable CSV file. I modify the file with the values for my firewall and import the CSV file.

This is all good, but I would like to automate this via API.

Via the API I can add new variables to my Templates, but this is not what I want to do. I want to add the values to the variables for the NGFW devices assigned to the Template Stack.

I just can't figure out how to add values to the devices in my templates.

I would even be ok with exporting the variable CSV via API, have my script modify the CSV, (add the values in the appropriate sections), and then import the CSV via API, but once again, I can't find where you can export the variables CSV. I can export all kinds of other items, but not this.

I am doing my scripting in python with the pandevice module.

Thanks.

Tags (1)
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!