GetARMResourceGroup (Azure Resource Groups)

This method is used to return the list of Azure resource groups in HCL BigFix CLM.

Method Signature:

GetARMResourceGroup (regionName, resourceGroupName, controlId, async, servicePlanId, callback, addlparam)

Sample Response:

 [{"EntityID":"RES-02879754-56DA-4991-9017-CABC18F28D3D","Name":"testvm104634","ID":"36","IsActive":"Y","IsDefault":"N","IsSYNCEnabled":"N","PlatformEntityID":"ARM-EF5CA4B6-67BE-4B48-BA7C-5F6FC4DAEA3E","RegionName":"eastus","text":"testvm104634"}]

Parameter Details:

Table 1. GetARMResourceGroup
Parameter Name Type Mandatory Description
regionName String Y Details of passed region’s Resource Group are returned.
resourceGroupName String N

If Resource Group Name is passed, then the details of passed Resource Groups are returned.

If blank “” is passed, then detail of all AZURE’s Resource Group will return/bind to the control.

controlId String N

Id of ‘Select’ control to be populated.

If Id of 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 is False:

Function is called in synchronous mode. i.e., Current execution will wait for method execution to complete

In case it is True:

Function is called asynchronously. Execution will not wait for method execution completion. It will jump to the next statement.

servicePlanId String N Service Plan ID is UNIQUE ID.
callback Function N User will pass function name that gets 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 order either ASC (Ascending) or DESC (descending). e.g., sortorder="ASC”