To use this function add it to the class library file named OrchestratorPluginVCFAService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginVCFAService.ts
Public Function: VcfaHostUpdate
publicVcfaHostUpdate(strDisplayName:string,strHostnameFQDN:string,strOrganization:string,strVcfaApiToken:string,strKubernetesAPIVersion:string,strSessionMode:"Shared Session"|"Per User Session",objVCFAHost:VCFAHost):boolean{
letobjRequest:any={
name:strDisplayName,
host:strHostnameFQDN,
tenant:strOrganization,
sessionMode:strSessionMode,
apiToken:strVcfaApiToken,
k8sApiVersion:strKubernetesAPIVersion
};
try{
VCFAHostManager.update(objRequest,objVCFAHost);
letblnValid:boolean=objVCFAHost.validate();
if (blnValid===true){
returntrue;
}
else{
returnfalse;
}
}
catch (objException){
returnfalse;
}
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
