To use this function add it to the class library file named OrchestratorPluginVRAService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginVRAService.ts
Description: Orchestrator Function to Update a vRA vSphere Cloud Account
Private Function: VraCloudAccountServiceUpdateVSphereCloudAccount
publicVraCloudAccountServiceUpdateVSphereCloudAccount(objVraHost:VraHost,objVraCloudAccountVsphere:VraCloudAccountVsphere,strHostnameFQDN:string,blnAcceptSelfSignedCertificate:boolean=false,blnCreateDefaultZones:boolean=false,strDisplayName:string,strDescription:string,strUsername:string,strPassword:string,arrTag:Tag[]):VraCloudAccountVsphere{
// @ts-ignore
letobjVraUpdateCloudAccountVsphereSpecification:VraUpdateCloudAccountVsphereSpecification={
hostName:strHostnameFQDN,
acceptSelfSignedCertificate:blnAcceptSelfSignedCertificate,
createDefaultZones:blnCreateDefaultZones,
associatedCloudAccountIds: [],
regions: [],
name:strDisplayName,
description:strDescription,
username:strUsername,
password:strPassword,
tags:arrTag
};
letobjVraCloudAccountService:VraCloudAccountService=this.VraCloudAccountServiceCreate(objVraHost);
try{
letobjVraCloudAccountVsphereReturn:VraCloudAccountVsphere=objVraCloudAccountService.updateVSphereCloudAccount(objVraCloudAccountVsphere,objVraUpdateCloudAccountVsphereSpecification);
returnobjVraCloudAccountVsphereReturn;
}
catch (objException){
returnnull;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
