cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

CLI command to associate URL redirect policy to VIP on LTM

Chris_Olson
Nimbostratus
Nimbostratus

I have command-line only access to my F5. A URL redirect policy was created. I would like to apply it to a VIP but cannot find the syntax anywhere. I've read multiple articles on creating the policy and even tmsh manuals but nothing shows me how to associate the policy to a virtual except via the GUI. Is this only available via the GUI?

Product   BIG-IP

 Version   12.1.3.5

 

1 ACCEPTED SOLUTION

Samir
Nacreous
Nacreous

Try below command to add & remove policy via CLI

 

Add Policy:

tmsh modify ltm virtual <virtual_Name> policies add {policy_name}

 Remove Policy

tmsh modify ltm virtual <virtual_Name> policies delete {policy_name}

 

View solution in original post

2 REPLIES 2

Samir
Nacreous
Nacreous

Try below command to add & remove policy via CLI

 

Add Policy:

tmsh modify ltm virtual <virtual_Name> policies add {policy_name}

 Remove Policy

tmsh modify ltm virtual <virtual_Name> policies delete {policy_name}

 

Chris_Olson
Nimbostratus
Nimbostratus

So simple, I should have tried it. I am a little embarrassed. Thank you!!!!