10-25-2023 05:48 AM
Hi
So I am new to scripting and trying to change the ssid name in a template but can't seem to get it to work at all.
Is it even possible?
Every time I get this error:
line 22, in <module>
ssids = dashboard.config_templates.getOrganizationConfigTemplateSsids(organization_id, template_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DashboardAPI' object has no attribute 'config_templates'
It's driving me nuts and I have to change more than 100 templates next week 😄
sooo...help me :)) please
BR
Adrian
Solved! Go to Solution.
10-26-2023 04:53 AM
It does seem logical that it should allow updating a template network.
If the call does not fail because the network ID is a template, then it should report fail if it did not update the SSID.
But if it says it completed successfully, that is incorrect because the SSID was not changed, there is a contradiction here.
I had a look at overall documentation, but it doesn't say if a template network is treated the same as a network when making updates.
It won't get you out of our current situation, but you could open a support case to report that it doesn't work.
Either it's a bug or the documentation needs to clarify things, but it should not be necessary to guess!
10-25-2023 06:02 AM
@adde_x, the attribute looks incorrect. But to be honest, I think it will be faster to configure via dashboard than via script if you are not proficient.
10-25-2023 06:10 AM
But I believe the correct attribute is configTemplates
https://developer.cisco.com/meraki/api/get-organization-config-templates/
10-25-2023 06:13 AM
Hi
Please use English.
Also google translate does not always translate correctly.
And yes I have seen the link, still does not work when changing ssid name.
10-25-2023 06:21 AM
What does BR mean? For me it's Brazil, that's why I wrote in Portuguese.
10-25-2023 06:25 AM
BR = Best Regards
Oh, I don't speak Portuguese sorry.
Swedish, english or romanian 😄
I could use google translate but often gets it wrong.
So yeah, I used the link, used stuff in there but still can't change the ssid in the template. From what I understand this cannot be done?
Seems pretty bad since templates are a huge deal with meraki and I have a huge org with almost 1000 templates 😞
10-25-2023 06:29 AM
I think that you can use the template network id and the ssid API https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
10-25-2023 06:34 AM
That was the first thing i tested, script worked but when I went in to see the change, nothing was changed.
10-25-2023 06:45 AM
I'm almost 100% sure that there is no API to change the SSID name via template, only via Network.
@jscorb , do you have any information?
10-25-2023 07:21 AM
I haven't tried it, but @Raphletourn comment below looks like it may be the way
10-25-2023 07:24 AM
yeah, I suggested It before, but I don't have time to test it.
10-25-2023 10:44 PM
Yeah, think so too.
I will still try but so far it doesn't work.
10-26-2023 04:53 AM
It does seem logical that it should allow updating a template network.
If the call does not fail because the network ID is a template, then it should report fail if it did not update the SSID.
But if it says it completed successfully, that is incorrect because the SSID was not changed, there is a contradiction here.
I had a look at overall documentation, but it doesn't say if a template network is treated the same as a network when making updates.
It won't get you out of our current situation, but you could open a support case to report that it doesn't work.
Either it's a bug or the documentation needs to clarify things, but it should not be necessary to guess!
10-27-2023 12:52 AM
I did open a case but no good answer just that they get e OK in response.
Support said the same to use the network ssid api to change but that does not change the template and it is not a risk i am willing to take changing more than 100 networks and leaving the template as is.
10-25-2023 07:15 AM
I can't test it right now , I think you can use : https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
And provide the networkID of the template. Currently the 'Get' is working , haven't test the Put.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide