@@ -74,7 +74,7 @@ def __init__(self, baseUrl):
74
74
self .baseUrl = baseUrl
75
75
# Create appProfile
76
76
def createAppProfile (self , obj ):
77
- postUrl = self .baseUrl + '/api/AppProfiles /' + obj .tenantName + ":" + obj .networkName + ":" + obj .appProfileName + '/'
77
+ postUrl = self .baseUrl + '/api/appProfiles /' + obj .tenantName + ":" + obj .networkName + ":" + obj .appProfileName + '/'
78
78
79
79
jdata = json .dumps ({
80
80
"appProfileName" : obj .appProfileName ,
@@ -108,7 +108,7 @@ def listAppProfile(self):
108
108
return json .loads (retData )
109
109
# Create endpointGroup
110
110
def createEndpointGroup (self , obj ):
111
- postUrl = self .baseUrl + '/api/EndpointGroups /' + obj .tenantName + ":" + obj .networkName + ":" + obj .groupName + '/'
111
+ postUrl = self .baseUrl + '/api/endpointGroups /' + obj .tenantName + ":" + obj .networkName + ":" + obj .groupName + '/'
112
112
113
113
jdata = json .dumps ({
114
114
"endpointGroupId" : obj .endpointGroupId ,
@@ -143,7 +143,7 @@ def listEndpointGroup(self):
143
143
return json .loads (retData )
144
144
# Create global
145
145
def createGlobal (self , obj ):
146
- postUrl = self .baseUrl + '/api/Globals /' + obj .name + '/'
146
+ postUrl = self .baseUrl + '/api/globals /' + obj .name + '/'
147
147
148
148
jdata = json .dumps ({
149
149
"name" : obj .name ,
@@ -212,7 +212,7 @@ def listBgp(self):
212
212
return json .loads (retData )
213
213
# Create network
214
214
def createNetwork (self , obj ):
215
- postUrl = self .baseUrl + '/api/Networks /' + obj .tenantName + ":" + obj .networkName + '/'
215
+ postUrl = self .baseUrl + '/api/networks /' + obj .tenantName + ":" + obj .networkName + '/'
216
216
217
217
jdata = json .dumps ({
218
218
"encap" : obj .encap ,
@@ -248,7 +248,7 @@ def listNetwork(self):
248
248
return json .loads (retData )
249
249
# Create policy
250
250
def createPolicy (self , obj ):
251
- postUrl = self .baseUrl + '/api/Policys /' + obj .tenantName + ":" + obj .policyName + '/'
251
+ postUrl = self .baseUrl + '/api/policys /' + obj .tenantName + ":" + obj .policyName + '/'
252
252
253
253
jdata = json .dumps ({
254
254
"policyName" : obj .policyName ,
@@ -280,7 +280,7 @@ def listPolicy(self):
280
280
return json .loads (retData )
281
281
# Create rule
282
282
def createRule (self , obj ):
283
- postUrl = self .baseUrl + '/api/Rules /' + obj .tenantName + ":" + obj .policyName + ":" + obj .ruleId + '/'
283
+ postUrl = self .baseUrl + '/api/rules /' + obj .tenantName + ":" + obj .policyName + ":" + obj .ruleId + '/'
284
284
285
285
jdata = json .dumps ({
286
286
"action" : obj .action ,
@@ -324,7 +324,7 @@ def listRule(self):
324
324
return json .loads (retData )
325
325
# Create service
326
326
def createService (self , obj ):
327
- postUrl = self .baseUrl + '/api/Services /' + obj .tenantName + ":" + obj .appName + ":" + obj .serviceName + '/'
327
+ postUrl = self .baseUrl + '/api/services /' + obj .tenantName + ":" + obj .appName + ":" + obj .serviceName + '/'
328
328
329
329
jdata = json .dumps ({
330
330
"appName" : obj .appName ,
@@ -366,7 +366,7 @@ def listService(self):
366
366
return json .loads (retData )
367
367
# Create serviceInstance
368
368
def createServiceInstance (self , obj ):
369
- postUrl = self .baseUrl + '/api/ServiceInstances /' + obj .tenantName + ":" + obj .appName + ":" + obj .serviceName + ":" + obj .instanceId + '/'
369
+ postUrl = self .baseUrl + '/api/serviceInstances /' + obj .tenantName + ":" + obj .appName + ":" + obj .serviceName + ":" + obj .instanceId + '/'
370
370
371
371
jdata = json .dumps ({
372
372
"appName" : obj .appName ,
@@ -401,7 +401,7 @@ def listServiceInstance(self):
401
401
return json .loads (retData )
402
402
# Create tenant
403
403
def createTenant (self , obj ):
404
- postUrl = self .baseUrl + '/api/Tenants /' + obj .tenantName + '/'
404
+ postUrl = self .baseUrl + '/api/tenants /' + obj .tenantName + '/'
405
405
406
406
jdata = json .dumps ({
407
407
"defaultNetwork" : obj .defaultNetwork ,
@@ -433,7 +433,7 @@ def listTenant(self):
433
433
return json .loads (retData )
434
434
# Create volume
435
435
def createVolume (self , obj ):
436
- postUrl = self .baseUrl + '/api/Volumes /' + obj .tenantName + ":" + obj .volumeName + '/'
436
+ postUrl = self .baseUrl + '/api/volumes /' + obj .tenantName + ":" + obj .volumeName + '/'
437
437
438
438
jdata = json .dumps ({
439
439
"datastoreType" : obj .datastoreType ,
@@ -469,7 +469,7 @@ def listVolume(self):
469
469
return json .loads (retData )
470
470
# Create volumeProfile
471
471
def createVolumeProfile (self , obj ):
472
- postUrl = self .baseUrl + '/api/VolumeProfiles /' + obj .tenantName + ":" + obj .volumeProfileName + '/'
472
+ postUrl = self .baseUrl + '/api/volumeProfiles /' + obj .tenantName + ":" + obj .volumeProfileName + '/'
473
473
474
474
jdata = json .dumps ({
475
475
"datastoreType" : obj .datastoreType ,
0 commit comments