TLS environment toggle

I’d like to be able to have a proxy use TLS when interacting with the Target Server, however I only want this enabled in certain environments. For example in Prod I want to use TLS, but in Dev I do not. What is the best way to achieve this?

I can create the target servers, the problem is that in some environments the TS will use TLS, and in other environments they won’t. The documentation I have been looking at (Configuring two-way TLS to the backend server) covers some code that needs added to the proxy HTTPTargetConnection to enable TLS. When I promote a proxy from one environment to another I do not want to have to go and amend this proxy code, I just want to change some environment specific settings (like the KVM).

thanks

Did you check this http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/targetservers

@robinwilkins

Thanks, that doesn’t help though - I’ve added more detail to the question to explain why