Node Group ID

ChrisHykin
Here to help

Node Group ID

Hi,

 

Is there any known way of determining the Node Group identifier for a given network via the API?

 

This is the ID stored as Mkiconf.ng_id in the source of each page...

 

Thanks,

 

Chris

5 REPLIES 5
jdsilva
Kind of a big deal

I can't say I've seen that value anywhere in my travels with the API... And I don't see anything in the API docs either.

 

What is that value? What do you need it for?


@jdsilva wrote:

 

What is that value? What do you need it for?


 

Maybe for this:

https://create.meraki.io/build/wayfinding-mapwize/

 

It's mentioned there.

Ahh, neato. undocumented APIs!

Yes it is. It's for obtaining floor plans autonomously, however this approach requires a user to view source of a page it's not really a 'hidden Api'... hence my question.

 

 

I can't find any docs about that value being available via API. Make a wish!

 

Maybe this helps though, you might be able to reuse some of this code:

https://github.com/meraki/spark-operations-bot/blob/master/meraki_dashboard_link_parser.py

 

Seems like the following python function with settingval set to ng_id will get you the value.

 

 

def meraki_www_get_settings(strcontent, settingval, settingfull):
    '''
    In the dashboard, there are a large number of settings hidden in the code. This function will parse and retrieve
    the value of a specific setting
    :param strcontent: String. Raw HTML of the page.
    :param settingval: String. If the setting is in the "Mkiconf.setting = " format, pass "setting" here. Otherwise...
    :param settingfull: String. If the setting is named or punctuated differently, pass the exact string here.
    :return: String. The value of the requested setting
    '''

 

Get notified when there are additional replies to this discussion.