Forum Discussion
Adding Compression and Web Acceleration profiles to Virtual Server via Icontrol API
Hello,
I have already created via Icontrol API, the compression and web acceleration profiles, but I couldn't find any methods to assign them to VIP.
Another question I had, why in 11.x these HTTP profile settings were moved as separate profile entities?
Thanks
4 Replies
- Theo_12742
Cirrus
Since all profile names must be unique (even across types), you only need to add them as a profile to the virtual server. See LocalLB::VirtualServer::add_profile.
Python Bigsuds Exampleb.LocalLB.VirtualServer.add_profile( ['/Common/my_virtual_server'], [{ 'profile_context': 0, 'profile_name': '/Common/my_compression_profile' }] ) - stecino_87658
Nimbostratus
Thanks for the quick reply. How will API know if this is a compression profile and not http for example. Don't I need to explicitly specify?
- Theo_12742
Cirrus
Nope. Profile names must be unique across ALL profile types. Thus the profile you are applying would be unique, and the platform determines the type once it is called. You can see this in the configuration file or by using `tmsh list ltm virtual`. You will see a bunch of profiles applied, but not specifying what type. The API merely mimics TMSH. - stecino_87658
Nimbostratus
Thanks I will give it a shot
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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