To use this function add it to the class library file named vCenterServerService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterServerService.ts
Function VcDatastoreIsType
Description: Orchestrator Function to Check the Datastore Type
privateVcDatastoreIsType(objVcDatastore:VcDatastore,strVcDatastoreType:string):boolean{
letobjVcDatastoreSummary:VcDatastoreSummary=objVcDatastore.summary;
returnobjVcDatastoreSummary.type.toLowerCase()===strVcDatastoreType;
}Public Functions:
publicVcDatastoreIsVSAN(objVcDatastore:VcDatastore):boolean{
returnthis.VcDatastoreIsType(objVcDatastore,"vsan");
}
publicVcDatastoreIsVMFS(objVcDatastore:VcDatastore):boolean{
returnthis.VcDatastoreIsType(objVcDatastore,"vmfs");
}
publicVcDatastoreIsNFS(objVcDatastore:VcDatastore):boolean{
returnthis.VcDatastoreIsType(objVcDatastore,"nfs");
}
publicVcDatastoreIsNFS41(objVcDatastore:VcDatastore):boolean{
returnthis.VcDatastoreIsType(objVcDatastore,"nfs41");
}
publicVcDatastoreIsVFFS(objVcDatastore:VcDatastore):boolean{
returnthis.VcDatastoreIsType(objVcDatastore,"vffs");
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
