GetAWSKeyPairs (AWS Key Pair)

This method is used to return the list of AWS key pairs in HCL BigFix CLM.

Method Signature:

GetAWSKeyPairs(regionName, controlId, async, servicePlanId, callback, addlparam)

Sample Response:

 [{"Value":"KEYPAIR-2D48E3C0-33D8-46EB-A9F8-268FE55BFD66",
"Name":"xxxxx","RegionName":"us-east-1","text":"xxxx"},{"Value":"KEYPAIR-A4A68A62-25AB-4230-BB60-7709ED736B07",
"Name":"xxxxxx","RegionName":"us-east-1","text":"xxxxxx"}]

Parameter Details:

Table 1. GetAWSKeyPairs
Parameter Name Type Mandatory Description
regionName String N

If region name is passed, then details of passed region are returned.

If blank “” is passed, then detail of all AWS’s Key pair 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 next statement.

servicePlanId String N Service Plan ID is a plan related to cost model created by provider and map to the resource in HCL BigFix CLM.
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 order either ASC (Ascending) or DESC (descending). e.g., sortorder="ASC”