You can add a rest host by using the “Add a REST host” workflow in vRealize Orchestrator. This workflow can be found under the folder Library > HTTP-REST > Configuration. You can specify the proxy in this workflow, if you have the requirement for one. Lately me and my colleague were working on a customer who had a requirement to add a Servicenow REST host via a proxy on port 80. The proxy and the SNOW host both had to be authenticated. We used the built in workflow to add the REST host but were confronted with an error that said “Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407 Proxy Authentication Required”. We tripped checked that we were providing proxy credentials but could not get around this error.

Upon close inspection of the workflow, we found that the workflow has a decision element that goes to the workflow import a certificate from URL using proxy server” when the useProxy flag was set to true and this workflow was throwing an exception. This workflow can be found in the folder “/Library/Configuration/SSL Trust Manager”. This workflow does not have inputs for the Proxy credentials and hence, does not pass the credentials to the proxy.

Same folder also has a workflow called Import a certificate from a URL using authenticated proxy server which passes through the proxy credentials. All we had to do was duplicate the original Add a REST host workflow and replace the Import a certificate from URL using proxy server with Import a certificate from a URL using authenticated proxy server and map the proxy credentials to the workflow inputs. We run the workflow and it’s cooking on gas.


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.