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 on the security profiles.
b = ManagementRoot('myhost', 'admin', admin')
vip = b.tm.ltm.virtuals.virtual.load(name='myvs')
profiles = vip.profiles_s.get_collection()
for p in profiles:
print(p.name)
Returns the Following:
ASM_pytest.mtb.com SO MY ASM POLICY NAME
clientssl MY CLIENT SSL
f5-tcp-lan MY TCP CLIENT PROFILE
f5-tcp-wan MY TCP SERVER PROFILE
http MY HTTP PROFILE
serverssl MY SERVER SSL PROFILE
websecurity NOT SURE WHAT THIS IS?
What I’m trying to understand, is that ASM_ prepended to every ASM policy associated with a virtual server or is there a more accurate way to get the ASM policy name associated?
What is ‘websecurity’ and how do I use it?
How do I get the DoS and Logging Profiles associated with the virtual server?
it looks like tmsh adds ASM_ to your policy when applied to the virtual server, as well as the websecurity profile. I’ll need to see what that means for you in using the sdk, however. Standby.