We are only just starting to use tenants and currently most of our projects use variables scoped to their environment in project variables or library variable sets. This has resulted in us having a lot of deployment targets where each target relates to what would now be a tenant. Rather than completely remake the projects and variables from the ground up we were thinking the first step is to use existing variable names and set them on a per tenant basis and then remove them from the project and library variables and thus the dependency on environment scoping.
Is there a quick way to get the names of all the variables used and then put them in as templates instead? I’m happy using the API if there is a way to do this. I had a look but could only find project variables and not templates.