Forum Discussion
4 Replies
Sort By
- Theo_12742Cirrus
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_87658Nimbostratus
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_12742CirrusNope. 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_87658NimbostratusThanks I will give it a shot