Forum Discussion
CLI command to associate URL redirect policy to VIP on LTM
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
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}
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_OlsonNimbostratus
So simple, I should have tried it. I am a little embarrassed. Thank you!!!!
Recent Discussions
Related Content
* 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