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 Create a vRA vSphere Cloud Account
Private Function: VraCloudAccountServiceCreateVSphereCloudAccount
publicVraCloudAccountServiceCreateVSphereCloudAccount(objVraHost:VraHost,strHostnameFQDN:string,blnAcceptSelfSignedCertificate:boolean=false,blnCreateDefaultZones:boolean=false,strDisplayName:string,strDescription:string,strUsername:string,strPassword:string,arrTag:Tag[]):VraCloudAccountVsphere{
// @ts-ignore
letobjVraCloudAccountVsphereSpecification:VraCloudAccountVsphereSpecification={
hostName:strHostnameFQDN,
acceptSelfSignedCertificate:blnAcceptSelfSignedCertificate,
createDefaultZones:blnCreateDefaultZones,
associatedCloudAccountIds: [],
regions: [],
name:strDisplayName,
description:strDescription,
username:strUsername,
password:strPassword,
tags:arrTag
};
letobjVraCloudAccountService:VraCloudAccountService=this.VraCloudAccountServiceCreate(objVraHost);
try{
letobjVraCloudAccountVsphere:VraCloudAccountVsphere=objVraCloudAccountService.createVSphereCloudAccount(objVraCloudAccountVsphereSpecification);
returnobjVraCloudAccountVsphere;
}
catch (objException){
returnnull;
}
}
Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
