To configure external vCO I think that you can try to create a new workflow and use something like this:
var configurations = configurationService.getConfigurations(host.tenant);
var configuration = new vCACCAFEConfiguration();
if(configurations[0].getId() != null) {
configuration.setId(configurations[0].getId());
}
if(useDefault == true) {
var urlVariables = [
host.tenant
];
System.log("Updating ASD server configuration...");
asdClient.putWithVariables("tenants/{tenantId}/configurations/default" ,"" ,urlVariables);
System.log("ASD server configuration updated.");
} else {
configuration.setTenantId(host.tenant);
configuration.setSystemDefault(false);
configuration.setName(name);
configuration.setDescription(description);
configuration.setHost(orchestratorHost);
configuration.setPort(port);
if(useSSO == false) {
configuration.setSsoMode(false);
configuration.setUsername(username);
configuration.setPassword(password);
} else {
configuration.setSsoMode(true);
}
System.log("Updating ASD server configuration...");
configurationService.createOrUpdateConfiguration(host.tenant, configuration);
System.log("ASD server configuration updated.");
}
The input of the workflow should be something similar to this:


Hope this helps.
Regards,
Georgi