To use this function add it to the class library file named OrchestratorService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorService.ts
Description: Orchestrator Function to Create a vCenter SNMP Device
Function SNMPDeviceCreate
publicSNMPDeviceCreate(strFQDN:string,strName:string,intPort:number,strCommunity:string,strVersion:string="V2C"):SNMPSnmpDevice|void{
try{
letobjSNMPSnmpDevice: SNMPSnmpDevice=SnmpService.createSnmpDeviceV1V2c(strFQDN,strName,intPort,strCommunity,strVersion);
returnobjSNMPSnmpDevice
}
catch (objException){
returnnull;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
