To use this function add it to the class library file named PluginAVIService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginAVIService.ts
Description: Orchestrator Function to Get the AVI vRO Client Cloud Type.
Private Function: AviVroClientGetCloudType
public AviVroClientGetCloudType(strTenant: string = "admin", strControllerFQDN: string, strCloudName: string): string {
let objAviVroClient: AviVroClient = this.AviVroClientGetByController(strControllerFQDN);
let objAviCloud: AviCloud = objAviVroClient.getObjectByName('cloud', strCloudName, strTenant);
let strCloudType: string = objAviCloud.getVtype(); // "CLOUD_NSXT" | "CLOUD_AWS" | "CLOUD_VCENTER"
return strCloudType;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
