Skip to content

Commit 5f9a5bb

Browse files
authored
Remove deprecated api-mp.meraki.com
Batch 2 of 2
1 parent 0f20b83 commit 5f9a5bb

File tree

8 files changed

+17
-23
lines changed

8 files changed

+17
-23
lines changed

addroutes/addroutes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def getNetId(p_apiKey, p_orgId, p_shard, p_netName):
150150

151151
def getShardHost(p_apiKey, p_orgId):
152152
#patch
153-
return("api-mp.meraki.com")
153+
return("api.meraki.com")
154154

155155

156156
def addRoute(p_apiKey, p_shard, p_netId, p_routeData):

auto-cycle-port/auto-cycle-port.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def rebuild_auth(self, prepared_request, response):
4040
#Set to True or False to enable/disable console logging of sent API requests
4141
FLAG_REQUEST_VERBOSE = True
4242

43-
#change this to "https://api.meraki.com/api/v1" to disable mega proxy
44-
API_BASE_URL = "https://api-mp.meraki.com/api/v1"
43+
API_BASE_URL = "https://api.meraki.com/api/v1"
4544

4645

4746
def merakiRequest(p_apiKey, p_httpVerb, p_endpoint, p_additionalHeaders=None, p_queryItems=None,

cloneprovision/cloneprovision.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def getOrgId(p_apiKey, p_orgName):
187187

188188
def getShardHost(p_apiKey, p_orgId):
189189
#patch
190-
return("api-mp.meraki.com")
190+
return("api.meraki.com")
191191

192192

193193
def getNetId(p_apiKey, p_orgId, p_shard, p_netName):

migrate_cat3k/migrate_cat3k.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
read_me = '''This is a Python 3 script to migrate configuration from Catalyst 3750-X to Meraki MS-series switches.
22
33
Usage syntax:
4-
python migrate_cat3k.py -k <API key> -o <org name> -i <init file> [-u <default user> -p <default pass> -x <proxy>]
4+
python migrate_cat3k.py -k <API key> -o <org name> -i <init file> [-u <default user> -p <default pass>]
55
66
Mandatory parameters:
77
-k <API key> : Your Meraki Dashboard API key
@@ -11,9 +11,6 @@
1111
Optional parameters:
1212
-u <default user> : Catalyst switch SSH username, if none is defined in init config
1313
-p <default pass> : Catalyst switch SSH password, if none is defined in init config
14-
-x <proxy> : Whether to use the new Dashboard API mega proxy or not. Valid forms:
15-
-x use_mega_proxy Sends API requests to "api-mp.meraki.com" (default)
16-
-x do_not_use_mega_proxy Sends API requests to "api.meraki.com"
1714
1815
Usage example:
1916
python migrate_cat3k.py -k 1234 -o "My Meraki Account" -i init_config.txt
@@ -64,8 +61,10 @@
6461
#SECTION: GLOBAL VARIABLES AND CLASSES: DO NOT MODIFY
6562

6663
LAST_MERAKI_REQUEST = datetime.datetime.now() #used by merakiRequestThrottler()
67-
API_BASE_URL = 'https://api-mp.meraki.com/api/v0'
68-
API_BASE_URL_MEGA_PROXY = 'https://api-mp.meraki.com/api/v0'
64+
65+
#PATCH: MEGA PROXY IS DEPRECATED
66+
API_BASE_URL = 'https://api.meraki.com/api/v0'
67+
API_BASE_URL_MEGA_PROXY = 'https://api.meraki.com/api/v0'
6968
API_BASE_URL_NO_MEGA = 'https://api.meraki.com/api/v0'
7069
ACTION_BATCH_QUEUE = []
7170

offline_logging/offline_logging.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def rebuild_auth(self, prepared_request, response):
4545
#Set to True or False to enable/disable console logging of sent API requests
4646
FLAG_REQUEST_VERBOSE = True
4747

48-
#change this to "https://api.meraki.com/api/v1" to disable mega proxy
49-
API_BASE_URL = "https://api-mp.meraki.com/api/v1"
48+
API_BASE_URL = "https://api.meraki.com/api/v1"
5049

5150

5251
def merakiRequest(p_apiKey, p_httpVerb, p_endpoint, p_additionalHeaders=None, p_queryItems=None,

provision_sites/provision_sites.py

+6-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
to Meraki dashboard.
33
44
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>]
66
77
Mandatory parameters:
88
-k <api key> : Your Meraki Dashboard API key
@@ -19,9 +19,6 @@
1919
with names that match the ones in the input file. Valid forms:
2020
-u fail Interrupts script if network is not new (default)
2121
-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"
2522
2623
Usage example:
2724
python provision_sites.py -k 1234 -o "Big Industries Inc" -i site_info.csv
@@ -69,8 +66,10 @@
6966

7067

7168
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'
7473
API_BASE_URL_NO_MEGA = 'https://api.meraki.com/api/v0'
7574
ACTION_BATCH_QUEUE = []
7675

@@ -569,9 +568,7 @@ def main(argv):
569568
if (not arg_updateExisting is None) and arg_updateExisting == 'update':
570569
flag_doNotUpdateExisting = False
571570

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
575572

576573

577574
print('Reading input file...')

setSwitchPortOnMacOui/setSwitchPortOnMacOui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def getOrgs():
229229

230230
def getShardHost(p_org):
231231
#patch
232-
return("api-mp.meraki.com")
232+
return("api.meraki.com")
233233

234234

235235
def getNetworkClients(p_org, p_net):

topusers/topusers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def getOrgs():
201201

202202
def getShardHost(p_org):
203203
#patch
204-
return("api-mp.meraki.com")
204+
return("api.meraki.com")
205205

206206

207207
def refreshOrgList2():

0 commit comments

Comments
 (0)