Forum Discussion
Matt_Bystrzak_2
Nimbostratus
Apr 12, 2019How to get ASM, DoS, and Logging Profiles Applied to a Virtual Server
Hello,
I'm trying to map ASM, DoS, and logging profiles as a reporting feature to some of my automation. At the most basic level if I query a particular virtual server I don't get great information...
JRahm
Admin
Apr 15, 2019(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)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
