For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Lynn's avatar
Lynn
Icon for Nimbostratus rankNimbostratus
Aug 06, 2019

BIG-IP F5: python scripts to create/modify DoS Profile

Hello,

I am new here!

I try to use python scripts to create new DoS Profile (under Security), it succeeded by using:

from f5.bigip import ManagementRoot
from f5.bigip.tm.security.dos import Profile
emgmt = ManagementRoot('bigip.PRODaddress.com', 'user', 'pass')
profile1 = Profile(emgmt.tm.security.dos.profiles).create(name="today", partition="Common", description="todaydes")

After this, it's able to use delete() to delete this file.

But when I tried to setup its "Application Security" (from GUI it is to change it to "Enabled"), I can't do anything with this object profile1.

The modify() won't work coz parameter issue.

Any advice? Thank you!

Lynn

No RepliesBe the first to reply