Class: Orchestrator Plugin vCenter VAPI Base Service

by Simon Sparks · 27 October 2025

Over the course of the next 12 months I will be adding functions to this page so bookmark it and come back regularly for new cool features and updates.

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: vCenterVAPIBaseService.ts

import { BaseService } from "../BaseService";

export class vCenterVAPIBaseService extends BaseService {
    protected objVAPIEndpoint: VAPIEndpoint;
    protected objVAPIClient: VAPIClient;

    constructor(strProjectID: string, strServiceName: string) {
        super(strProjectID, strServiceName);

        this.arrVCenterServers = Constants.arrVCenterServer.filter((objVCenterServer: vCenterServer): boolean => {
            if (objVCenterServer.vCenterType === vCenterType.Workload) {
                if (this.strEnvironmentRoadSign === "PROD") {
                    return objVCenterServer.Environment === Environment.Production;
                } else {
                    return objVCenterServer.Environment === Environment.Development;
                }
            } else {
                return false;
            }
        });
    }
    
}

Class Functions:


Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like