Forum Discussion
Nov 28, 2011
Once you create the virtual server, you can add profiles with these methods
LocalLB.VirtualServer.add_authentication_profile()
LocalLB.VirtualServer.add_httpclass_profile()
LocalLB.VirtualServer.add_persistence_profile()
LocalLB.VirtualServer.add_profile()
You'll need to call the method depending on the type of profile you are assigning. HTTP, FTP, etc will just be with the standard add_profile() method.
(There are get and remove versions of these methods as well to query and remove the profiles).
The methods are documented here:
http://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer.ashx
and I wrote a Tech Tip a while back on the Stream Profile. This article shows how to call the add_profile() method to assign a Stream Profile to a Virtual Server:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/241/iControl-101--18--Stream-Profile.aspx
Hope this helps...
-Joe