We're setting up a target server for various Apigee environment to our backend and we're able to do so through Apigee's environment config UI. However to update the ssl info ( enabling ssl verification ) this can only be done via the API, from what I've been mining through the docs.
How are we able to see the ssl info of a target server? The UI only shows minimal details, same with the target server api: name, host, port, enabled.
Also, while looking through the docs, there were xml references for a target server, are these accessible for editing, where are they located?
Solved! Go to Solution.
There is a bug in the API to update a target server, I've submitted a ticket.
https://api.enterprise.apigee.com/v1/organizations/<org>/environments/<env>/targetservers/<name>;
{ "name" : "api", "host" : "api-backend.dev.discoveryeducation.com", "isEnabled" : true, "port" : 443, "SSLInfo": { "enabled": true, "ignoreValidationErrors": false } }
With SSLInfo as the property key did not work, however changing it to sSLInfo successfully made an update. After the successful update I was able to see the SSL info in the GET request.
There is a bug in the API to update a target server, I've submitted a ticket.
https://api.enterprise.apigee.com/v1/organizations/<org>/environments/<env>/targetservers/<name>;
{ "name" : "api", "host" : "api-backend.dev.discoveryeducation.com", "isEnabled" : true, "port" : 443, "SSLInfo": { "enabled": true, "ignoreValidationErrors": false } }
With SSLInfo as the property key did not work, however changing it to sSLInfo successfully made an update. After the successful update I was able to see the SSL info in the GET request.
Thank you for sharing the answer! Everyone that gets over a hoop with this answer, should give at least an upvote 🙂