Orchestrator Workflow Action to Add a REST Host with No Credentials

by Simon Sparks · 1 May 2013

To use this function add it to the class library file named vCloudService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: vCloudService.ts

Description: Orchestrator Function to adds a REST Host with No Credentials

Function: RESTHostCreateNoCredentials

publicRESTHostCreateNoCredentials(strName:string,strUrl:string):RESTHost{
letarrAuthenticationParams:string[]= ["Per User Session","",""];

letobjRESTAuthentication:RESTAuthentication=RESTAuthenticationManager.createAuthentication("Basic",arrAuthenticationParams);

letobjRESTHost:RESTHost=newRESTHost(strName);
objRESTHost.url=strUrl;
objRESTHost.connectionTimeout=30.0;
objRESTHost.operationTimeout=60.0;
objRESTHost.authentication=objRESTAuthentication;

objRESTHost=RESTHostManager.addHost(objRESTHost);

returnobjRESTHost;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like