Forum Discussion
Kevin_K_51432
Feb 02, 2017Historic F5 Account
Greetings, I took a quick peek at this post:
https://devcentral.f5.com/articles/icontrol-rest-cookbook-24575
This command deleted the server SSL profile from the virtual server:
curl -k -u admin:admin -X DELETE https://192.168.10.100/mgmt/tm/ltm/virtual/~Common~test/profiles/serverTest
This command can be used to add it back. It looks like you don't need to indicate context:
curl -k -u admin:admin https://192.168.10.100/mgmt/tm/ltm/virtual/~Common~test/profiles -H "Content-Type: application/json" -X POST -d '{"name":"serverTest"}'
Kevin
- JoeDziedzic_265Feb 02, 2017Nimbostratus
Hi Kevin,
I had seen that post, and tried using the same command structure, but it didn't work. I am using JavaScript, not CURL.
I wasn't able to resolve the issue with deleting or adding a single profile, however I was able to figure out how to set all of the profiles when I create the virtual server.