GetDataCenterClusterResource (VMware Data Center, Cluster, Resource)

This method is used to get VMWare Platform’s Datacenter details based on the cluster parameter in HCL BigFix CLM.

Method Signature:

GetDataCenterClusterResource(cluster, controlId, async, callback, addlparam)

Sample Response:

 [{"DatacenterEntityId":"DC-D2C0E668-CBEF-455F-96F6-3F5BCBE9FD16","text":"primary-site-datacenter","DatacenterActualIDonEnvironment":"2","ClusterEntityId":"CL-9406236E-9F57-4ADC-8758-212473FFDA5E",
"ClusterName":"primary-compute","ClusterActualIDonEnvironment":"9","ResourceEntityId":"RES-778C598C-1537-47E2-8311-8FB94E090E6B",
"ResourceName":"Resources","ResourceActualIDonEnvironment":"10"}]

Parameter Details:

Table 1. GetDataCenterClusterResource
Parameter Name Type Mandatory Description
cluster String Y Cluster must pass to get the details of VMWare’s Cluster Datacenter.
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 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 next statement.

callback Function N User can pass function name that can be executed on completion of Parent function call.
addlparam Object N

Addlparam is used for filtering and sorting the records. It contains 3 properties filter/sortby/sortorder.

To Filter:

To filter records based on column name received from output. e.g., filter="keyname='keyvalue'"

To Sort By:

To sort the data based on column name. e.g., sortby="keyname"

To Sort Order:

To define sorting orders either ASC (Ascending) or DESC (descending). e.g., sortorder="ASC”