Forum Discussion
Object not found when setting SSL profile to virtual server
Hello,
I am using icontrol rest to create key/cert and then create the SSL profile to set it to a virtual server.
Everything works fine except the last step (applying the ssl profile to virtual server).
I get an error message saying " Object not found - "profile name" " with error code 404, but the weird thing is that when i check through the GUI i can see that my SSL profile is applied to the virtual server.
Can someone help please !
Thanks
- Michael_Jenkins
Cirrostratus
Could you provide example iControlRest calls you used, just to see if anything looks odd?
- aloukili_289190
Nimbostratus
I actually resolved the problem by specifying the full path of the SSL profile in the name field:
 
payload_vip = {"context": "clientside", "name": "/%s/%s" % (partition, prof_name), "partition": partition}
This is the payload of my post and the uri used is :
 
https://%s/mgmt/tm/ltm/virtual/~%s~%s/profiles" %(hostname, partition, vip_name)
Thanks Michael. But i still have a problem when i want to change the SSL profile attached to the VIP can you take a look at this : https://devcentral.f5.com/s/feed/0D51T00006i7g36SAA
 
Thanks in advance
 
- trevorlinton_32
Nimbostratus
I'm having the same issues, trying to add a SSL client profile to a virtual server:
POST /mgmt/tm/ltm/virtual/~DEV~sni.dev.foobar.io_HTTPS_vs/profiles Content-Type:application/json Accept: application/json Authorization:Basic ... { "name": "foobar_io_test3", "partition": "DEV", "fullPath": "/DEV/foobar_io_test3", "context": "clientside" } << Response Status: 404 { "code": 404, "message": "Object not found - foobar_io_test3", "errorStack": [], "apiError": 1 }
But if I look in the GUI it shows the profile foobar_io_test3 added to the virtual server sni.dev.foobar.io on the DEV partition 😕
- trevorlinton_32
Nimbostratus
I took a closer look at this and figured out the issue. The issue I was having was the name field. Adding "/PARTITION/" to the name field fixed the issue, even though responses coming back from /mgmt/tm/ltm/virtual/VIRTUAL_NAME/profiles with a GET does not have the partition name in the name field it must be added when doing a POST /mgmt/tm/ltm/virtual/VIRTUAL_NAME/profiles to add a profile, e.g., instead of {"name":"foobar_io_test3"} use {"name":"/DEV/foobar_io_test3"} and I get a 200 response back.
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