How to get number of networks binded to a particular template using the API?

AnkitMagon
Comes here often

How to get number of networks binded to a particular template using the API?

Do we have any API that gives the number of networks binded to a particular template?

 

Thanks!!

3 Replies 3
Ryan_Miles
Meraki Employee
Meraki Employee

You can find your template network ID. Then use that as a parameter in the list networks in org call. That will return all networks in the org bound to that template ID. Not sure of any other method.

Ryan

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
AnkitMagon
Comes here often

Yeah, I was able to get than API(getOrganizationNetworks), but the requirement is to know how many networks are binded to a template before executing this org API .

RaphaelL
Kind of a big deal
Kind of a big deal

Like Miles mentionned , the only way ( that I'm aware ) is to retrieve the Template ID via  : getOrganizationConfigTemplates ( https://developer.cisco.com/meraki/api-latest/#!get-organization-config-templates ) 

 

Once you have that ID , you can use it as a parameter for the next call : getOrganizationNetworks (  https://developer.cisco.com/meraki/api-v1/#!get-organization-networks ) 

 

Which would look like :  GET /organizations/{organizationId}/networks?configTemplateId=XXXXXXXXXXX

Get notified when there are additional replies to this discussion.