vCO Workflow Script to Add a REST Host with Credentials

The following script adds a REST Host with Credentials


var arrAuthenticationParams;
arrAuthenticationParams = ["Shared Session", "vcoflow", "P@ssw0rd1!"];

var objRESTAuthentication;
objRESTAuthentication = RESTAuthenticationManager.createAuthentication("Basic", arrAuthenticationParams);
var objRESTHost;
objRESTHost = new RESTHost("vfabric-application-director.vcoflow.co.uk - With Credentials");
<span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">objRESTHost.url = "https://vfabric-application-director.vcoflow.co.uk:8443/";
</span>objRESTHost.connectionTimeout = 30.0;
objRESTHost.operationTimeout = 60.0;
objRESTHost.authentication = objRESTAuthentication;

objRESTHost = RESTHostManager.addHost(objRESTHost);

Leave a Reply