Forum Discussion

David_Gonzalez1's avatar
David_Gonzalez1
Icon for Nimbostratus rankNimbostratus
Jan 25, 2014

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

  • 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]"