GetGCPZone(GCP Zone)

This method is used to return the list of GCP Zones.

Method Signature:

GetGCPZone(region, controlId, async, callback, additionalParam)

Sample Response:

 [{"ID":"71","NAME":"us-central1-a","RegionName":"us-central1","text":"us-central1-a"},
{"ID":"72","NAME":"us-central1-b","RegionName":"us-central1","text":"us-central1-b"}]

Parameter Details:

Table 1. GetGCPZone
Parameter Name Type Mandatory Description
region String Y

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

If blank “” is passed, then detail of all Zone 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.

callback Function N User can pass function name that can be executed on completion of Parent function call.
additionalParam 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”