Function: AVI vRO Client Get Cloud Type

by Simon Sparks · 11 March 2026

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.

You may also like