GetOrganizations
This method is used to return the list of GetOrganizations of Cisco Intersight created in HCL BigFix CLM. The JavaScript function is available in the UI intellisense MCLD.Functions.CiscoIntersight.GetOrganizations.
Method Signature:
GetOrganizations (organizationMoid, controlId, async, callback, addlparam
Sample Response:
{ "totalRecords": 1, "records": [ { "moid": "xxxxxxx", "name": "default", "entityId": "CICOORG-AFD0DB65-B6DC-4584-8729-C63152E8D465",
"objectType": "organization.Organization", "classId": "organization.Organization",
"description": "User in a Default Organization automatically has access to all the resources available for the User Account. If required, a User with Account Administrator privileges can remove resources from the default organization.", "tags": "", "sharedScope": "" } ]}
Parameter Details:
| Parameter Name | Type | Mandatory | Description |
|---|---|---|---|
| organizationMoid | String | N | To filter the list on specific organizationMoid. |
| 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. |
| 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” |