cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Config Templates settings

SOLVED
Highlighted
Getting noticed

Config Templates settings

Hello,

 

is it possible to read the config template settings?

I know you can get the config templates itself with "

GET /organizations/{organizationId}/configTemplates

 

And the result looks like this
 

[ { "id": "N_24329156", "name": "My config template", "productTypes": [ "appliance", "switch", "wireless" ] } ]

 

I've tried to get a list of devices with the id from this result as "network" id, but it is always empty. In this special case I'm interested in the appliance settings.

I want to read the local subnets settings and compare that to the ones which are used by the networks to get some kind of usage report.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Getting noticed

Re: Config Templates settings

I've added a new IDEA in the early developer community. API related wishes are getting more attention there.

If someone else needs that information, then there is some tricky workaround.

You can extract the subnet settings from the dashboard changelog and use the latest one.

 

Greenberet_0-1585265742395.png

 

View solution in original post

10 REPLIES 10
Kind of a big deal

Re: Config Templates settings

I've done exactly this to retrieve network settings.

 

You do just as you say - treated the retrieve template ID and use it as a network ID.  Then you can retrieve all the settings.

 

You wont be able to retrieve information on specific devices - as a template doesn't contain actual physical devices.

Highlighted
Getting noticed

Re: Config Templates settings

Do you know how to get the address/vlan configuration over the api from the template?
Highlighted
Kind of a big deal

Re: Config Templates settings

Not specifically.  What happens when you use the normal API calls to retrieve the VLANs?

 

https://dashboard.meraki.com/api_docs/v0#vlans 

Highlighted
Getting noticed

Re: Config Templates settings

Empty IP Addresses 😞
Highlighted
Here to help

Re: Config Templates settings

If you have auto-generated IP addresses, it won't pull those back for some reason.
Highlighted
Kind of a big deal

Re: Config Templates settings

The generated IP subnets are in the normal networks, so you should be querying the networks to get that info.

Highlighted
Getting noticed

Re: Config Templates settings

I'm not talking about the generated one. I want the address settings from which they are generated
Highlighted
Here to help

Re: Config Templates settings

Unfortunately it looks like you are out of luck.  Maybe use the make a wish function? 

Highlighted
Getting noticed

Re: Config Templates settings

I've added a new IDEA in the early developer community. API related wishes are getting more attention there.

If someone else needs that information, then there is some tricky workaround.

You can extract the subnet settings from the dashboard changelog and use the latest one.

 

Greenberet_0-1585265742395.png

 

View solution in original post

Highlighted
Here to help

Re: Config Templates settings

Good Morning,

 

We used templates as well, however due to some freak things, we were not able to autogenerate the VLAN IP addresses anymore. This really sucks... Also due to the nature of binding a network to the template, adding or removing stuff will result in errors.. Also later unbinding the template will have some effects on the current settings....

 

We in our organisation are not using templates anymore, and start using scripts to create networks and adding devices to that network... 

 

The easiest way would be browsing through your route table but it is not really possible to find a free IP range, so i created a python script which browses though all the networks, creates a list of all used network subnets, and then picks one which is not in use.

 

 

 

 

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.