Forum Discussion
Unable to add modify or remove Virtual Server Profiles using iControl REST
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
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.
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