public IActionResult RemoteServerDescriptor() { RemoteServerDescriptor serverDescriptor = new RemoteServerDescriptor(); var connectorDescriptor = new ConnectorDescriptor(); connectorDescriptor.Name = "ProvisioningService"; connectorDescriptor.Type = "Capgemini.ProvisioningPortal.Connector"; connectorDescriptor.Path = "api"; connectorDescriptor.ConnectionInstanceProperties.Add(new ConnectionInstancePropertyDescriptor() { Name = "url", DisplayName = "URL", HelpText = "Url to the provisioning service", Type = "String", Required = true }); connectorDescriptor.Actions.Add(BuildRequestStatusActionDescriptor()); connectorDescriptor.Actions.Add(BuildRequestVmActionDescriptor()); serverDescriptor.Connectors.Add(connectorDescriptor); return(new ObjectResult(serverDescriptor)); }
public IActionResult RemoteServerDescriptor() { RemoteServerDescriptor serverDescriptor = new RemoteServerDescriptor(); var connectorDescriptor = new ConnectorDescriptor(); connectorDescriptor.Name = "RemedyITSM9"; connectorDescriptor.Type = "Capgemini.RemedyITSM9.ServiceRequest.Connector"; connectorDescriptor.Path = "api"; connectorDescriptor.ConnectionInstanceProperties.Add(new ConnectionInstancePropertyDescriptor() { Name = "url", DisplayName = "URL", HelpText = "Url to the Remedy 9 ITSM API", Type = "String", Required = true }); connectorDescriptor.Actions.Add(BuildCreateUserServiceRequestActionDescriptor()); connectorDescriptor.Actions.Add(BuildUserServiceRequestStatusActionDescriptor()); serverDescriptor.Connectors.Add(connectorDescriptor); return(new ObjectResult(serverDescriptor)); }