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.

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.
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.