Function: vRA vSphere Cloud Account Update

by Simon Sparks · 11 February 2026

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

public VraCloudAccountServiceUpdateVSphereCloudAccount(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
    let objVraUpdateCloudAccountVsphereSpecification: VraUpdateCloudAccountVsphereSpecification = {
        hostName: strHostnameFQDN,
        acceptSelfSignedCertificate: blnAcceptSelfSignedCertificate,
        createDefaultZones: blnCreateDefaultZones,
        associatedCloudAccountIds: [],
        regions: [],
        name: strDisplayName,
        description: strDescription,
        username: strUsername,
        password: strPassword,
        tags: arrTag
    };

    let objVraCloudAccountService: VraCloudAccountService = this.VraCloudAccountServiceCreate(objVraHost);

    try {
        let objVraCloudAccountVsphereReturn: VraCloudAccountVsphere = objVraCloudAccountService.updateVSphereCloudAccount(objVraCloudAccountVsphere, objVraUpdateCloudAccountVsphereSpecification);

        return objVraCloudAccountVsphereReturn;
    }
    catch (objException) {
        return null;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like