GetStorage
This method is used to return the list of vcenter storage based on cluster in HCL BigFix CLM.
Method Signature:
GetStorage(cluster, controlId, async, callback)
Sample Response:
'[{"ActualIDOnEnvironment":"1014","Name":"SharedDatastore05","EntityID":"STR-1B84AD01-85CA-4B82-9469-D70F4D377969","PlatformEntityID":"VMWAR-8F4F7CD3-1E3C-4B57-983A-C2A3E7FACC35",
"TotalCapacityInGB":"11763.75","FreeCapacityInGB":"901.27","UsedCapacityInGB":"10862.48","DiskType":"VMFS","StorageName":"SharedDatastore05","text":"SharedDatastore05"},{"ActualIDOnEnvironment":"1016",
"Name":"SharedDatastore04","EntityID":"STR-0550FE1F-C3BF-4ACB-A775-69D0C6BF8333","PlatformEntityID":"VMWAR-8F4F7CD3-1E3C-4B57-983A-C2A3E7FACC35",
"TotalCapacityInGB":"12799.75","FreeCapacityInGB":"1825.25","UsedCapacityInGB":"10974.50",
"DiskType":"VMFS","StorageName":"SharedDatastore04","text":"SharedDatastore04"}]'
Parameter Details:
| Parameter Name | Type | Mandatory | Description |
|---|---|---|---|
| cluster | String | N |
If Cluster is passed, then details of passed Cluster’s Storage are returned. If blank “” is passed, then detail of all VMware’s Storage will be returned/bind to the control. |
| controlId | String | N |
Id of ‘Select’ control to be populated. If Id Control of dynamic UI is passed, then control will be populated with values return from this function else “Result set” will be returned in JSON format. |
| async | Boolean | N |
In case it’s False: Function will be called in synchronous mode. i.e., Current execution will wait for method execution to complete In case it’s True: Function will be called asynchronously. Execution will not wait for method execution completion. It will jump to the next statement. |
| Callback | Function | N | User can pass function name that can be executed on completion of Parent function call. |