Forum Discussion
icontrol How to set a Virtual server SSL profile
Hi,
When creating a Virtual server through the API, how do i specify an SSL profile?
Is the function "add profile" the right one to use?
https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__add_profile.ashx https://devcentral.f5.com/wiki/iControl.LocalLB__ProfileContextType.ashx
When using the "get_profile" function i can see the 'PROFILE_TYPE_CLIENT_SSL' option', but thats not available when creating/adding a profile (only PROFILE_CONTEXT_TYPE_ALL/CLIENT/SERVER)
Thanks! David
2 Replies
- Tim_K_92675
Cirrostratus
Specify the profile by defining the profile_context and profile_name...
$profile = New-Object -TypeName iControl.LocalLBVirtualServerVirtualServerProfile $profile.profile_context = "PROFILE_CONTEXT_TYPE_CLIENT" or PROFILE_CONTEXT_TYPE_SERVER $profile.profile_name = "[your_profile_name]" - David_Gonzalez1
Nimbostratus
Thanks for you help, that worked for me!
Regards, David
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