|
2 | 2 | to Meraki dashboard.
|
3 | 3 |
|
4 | 4 | Syntax:
|
5 |
| - python provision_sites.py -k <api key> -o <org name> -i <input file> [-n <net type> -u <update mode> -x <proxy mode>] |
| 5 | + python provision_sites.py -k <api key> -o <org name> -i <input file> [-n <net type> -u <update mode>] |
6 | 6 |
|
7 | 7 | Mandatory parameters:
|
8 | 8 | -k <api key> : Your Meraki Dashboard API key
|
|
19 | 19 | with names that match the ones in the input file. Valid forms:
|
20 | 20 | -u fail Interrupts script if network is not new (default)
|
21 | 21 | -u update Attempts to update existing networks to match input file
|
22 |
| - -x <proxy mode> : Whether to use the new Dashboard API mega proxy or not. Valid forms: |
23 |
| - -x use-mega-proxy Sends API requests to "api-mp.meraki.com" (default) |
24 |
| - -x do-not-use-mega-proxy Sends API requests to "api.meraki.com" |
25 | 22 |
|
26 | 23 | Usage example:
|
27 | 24 | python provision_sites.py -k 1234 -o "Big Industries Inc" -i site_info.csv
|
|
69 | 66 |
|
70 | 67 |
|
71 | 68 | LAST_MERAKI_REQUEST = datetime.datetime.now() #used by merakiRequestThrottler()
|
72 |
| -API_BASE_URL = 'https://api-mp.meraki.com/api/v0' |
73 |
| -API_BASE_URL_MEGA_PROXY = 'https://api-mp.meraki.com/api/v0' |
| 69 | + |
| 70 | +# PATCH: MEGA PROXY FQDN IS DEPRECATED |
| 71 | +API_BASE_URL = 'https://api.meraki.com/api/v0' |
| 72 | +API_BASE_URL_MEGA_PROXY = 'https://api.meraki.com/api/v0' |
74 | 73 | API_BASE_URL_NO_MEGA = 'https://api.meraki.com/api/v0'
|
75 | 74 | ACTION_BATCH_QUEUE = []
|
76 | 75 |
|
@@ -569,9 +568,7 @@ def main(argv):
|
569 | 568 | if (not arg_updateExisting is None) and arg_updateExisting == 'update':
|
570 | 569 | flag_doNotUpdateExisting = False
|
571 | 570 |
|
572 |
| - API_BASE_URL = API_BASE_URL_MEGA_PROXY |
573 |
| - if (not arg_proxy is None) and arg_proxy == 'do-not-use-mega-proxy': |
574 |
| - API_BASE_URL = API_BASE_URL_NO_MEGA |
| 571 | + API_BASE_URL = API_BASE_URL_NO_MEGA |
575 | 572 |
|
576 | 573 |
|
577 | 574 | print('Reading input file...')
|
|
0 commit comments