GetAWSVPCID (AWS VPC)

This method is used to return the details of VPC in JSON format of specific Subnets created for provisioning platform of Amazon in HCL BigFix CLM.

Method Signature:

GetAWSVPCID(subnetName, async, servicePlanId, callback, addlparam)

Sample Response:

[{"ID":"VPC-72AA2F4B-62E2-4D5F-8222-BBBD23F290B6",
"Name":"vpc-0547812492088dcc8","text":"vpc-0547812492088dcc8"},{"ID":"VPC-72AA2F4B-62E2-4D5F-8222-BBBD23F290B6",
"Name":"vpc-0547812492088dcc8","text":"vpc-0547812492088dcc8"}]

Parameter Details:

Table 1. GetAWSVPCID
Parameter Name Type Mandatory Description
subnetName String N

If subnet name is passed, then details of passed Subnets’ VPC are returned.

If blank “” is passed, then detail of all AWS’s VPC 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 Users 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”