Forum Discussion
JRahm
Apr 15, 2019Admin
(edited) Hi Matt, so you can create the vip up front with all the profiles and policies you need. Here's how I did it:
>>> profiles = []
>>> profiles.append({'name': 'tcp'})
>>> profiles.append({'name': 'http'})
>>> profiles.append({'name': 'clientssl'})
>>> profiles.append({'name': 'websecurity'})
>>> policies = []
>>> policies.append({'name': 'asm_auto_l7_policy__asmtestvip'})
>>> vip1 = b.tm.ltm.virtuals.virtual.create(name='testvip2',
destination='192.16.102.42:443',
mask='255.255.255.255',
pool='asmtestvip',
ipProtocol='tcp',
profiles=profiles,
policies=policies)