Can I update an existing virtual host without having to delete/recreate it?

If I want to update an existing virtual host in an on-prem install, do I have to undeploy any apis that are currently using the VH, delete the VH, and recreate it with the desired configuration?

I thought I could just update the VH "in place" by using this management API: http://apigee.com/docs/management/apis/put/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/...

Stephen

Solved Solved
1 3 704
1 ACCEPTED SOLUTION

No need Stephen, you could just update VH inplace using the API you mentioned

View solution in original post

3 REPLIES 3

No need Stephen, you could just update VH inplace using the API you mentioned

but you will need to know its current configuration for that to work... you cant just "ADD" entries - you need to update the whole thing.

Hi @sgilson,

You can update an existing VirtualHost by adding the existing VirtualHost name in your API call, as the endpoint {virtualhost_name} as in the doc you linked. (If you were creating, you would have to remove the {virtualhost_name}, as the system will take the name from the XML/JSON you send via the POST).

Thanks.