Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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]"
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Thanks for you help, that worked for me!

Regards, David

0