Even though I am not executing any of my API Proxies, I get "HTTP/1.1 400 Bad Request" followed by the below error message, when I try to delete the "default" virtual host in my org.
{ "code": "events.EventHandlingFailure", "message": "Resource is in use by [ProxyEndpoint:default;API Proxy:infogroup-match;Revision:1;Environment:test;Organization:adevegowda, ProxyEndpoint:default;API Proxy:Hello-World-Nodejs;Revision:1;Environment:test;Organization:adevegowda, ProxyEndpoint:default;API Proxy:TestBase64JS;Revision:2;Environment:test;Organization:adevegowda]", "contexts": [] }
Solved! Go to Solution.
The error message indicates that the "default" virtual host is referenced in the ProxyEndpoint of some/all proxies in the org "adevegowda", and these proxies are deployed in "test" environment. Hence, it can't be deleted.
Before we delete a virtual host from an environment, we need to do the following:
1) Undeploy all those proxies listed in the error message
2) Remove the following line from the ProxyEndpoint of all those proxies listed in the error message:
<VirtualHost>default</VirtualHost>
The error message indicates that the "default" virtual host is referenced in the ProxyEndpoint of some/all proxies in the org "adevegowda", and these proxies are deployed in "test" environment. Hence, it can't be deleted.
Before we delete a virtual host from an environment, we need to do the following:
1) Undeploy all those proxies listed in the error message
2) Remove the following line from the ProxyEndpoint of all those proxies listed in the error message:
<VirtualHost>default</VirtualHost>
Correct! Thanks for sharing!
I have updated the doc here with that info.
Stephen
Thanks a lot for updating the docs.