Function: vCenter VAPI Plugin Content Library Item Deploy Log Messages

by Simon Sparks · 29 March 2026

To use this function add it to the class library file named vCenterVAPIService.ts

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

Filename: vCenterVAPIService.ts

Public Function: ContentLibraryItemDeployLogMessages

publicContentLibraryItemDeployLogMessages(objVMwareVCenterOvfOvf:com_vmware_vcenter_ovf_ovf__info|com_vmware_vcenter_ovf_ovf__warning|com_vmware_vcenter_ovf_ovf__error):void{
this.objLogger.info(`Name:${objVMwareVCenterOvfOvf.name}.`);
this.objLogger.info(`Value:${objVMwareVCenterOvfOvf.value}.`);
this.objLogger.info(`Category:${objVMwareVCenterOvfOvf.category.toString()}.`);

letobjVMwareVAPIStdErrorsError:com_vmware_vapi_std_errors_error=objVMwareVCenterOvfOvf.error;

this.objLogger.info(`Error Data:${objVMwareVAPIStdErrorsError.data}.`);
this.objLogger.info(`Error:${objVMwareVAPIStdErrorsError.error_type.toString()}.`);

letarrVMwareVAPIStdLocalizableMessage:com_vmware_vapi_std_localizable__message[]=objVMwareVAPIStdErrorsError.messages;

arrVMwareVAPIStdLocalizableMessage.forEach((objVMwareVAPIStdLocalizableMessage:com_vmware_vapi_std_localizable__message):void=>{

this.objLogger.info(`Error ID:${objVMwareVAPIStdLocalizableMessage.id}.`);
this.objLogger.info(`Error Default Message:${objVMwareVAPIStdLocalizableMessage.default_message}.`);
this.objLogger.info(`Error Localized:${objVMwareVAPIStdLocalizableMessage.localized}.`);
this.objLogger.info(`Error Arguments:${JSON.stringify(objVMwareVAPIStdLocalizableMessage.args)}.`);
this.objLogger.info(`Error Parameters:${JSON.stringify(objVMwareVAPIStdLocalizableMessage.params)}.`);
});
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like