getImageStreams
This method is used to return the list of Image Streams in HCL BigFix CLM.
Method Signature:
getImageStreams (controlId, async, callback, addlparam, provisioningEndPointId, namespaceuid)
Sample Response:
[{"resourceVersion":"239991245","generation":"1","labels":{"app":"voting-app"},
"spec":{"lookupPolicy":{"local":false}},"dockerImageRepository":"image-registry.openshift-image-registry.svc:5000/voting-app/result",
"publicDockerImageRepository":"default-route-openshift-image-registry.apps.openshift.com/voting-app/result","tags":[{"tag":"latest","items":[
{"created":"2024-10-18T12:11:38Z","dockerImageReference":
"image-registry.openshift-image-registry.svc:5000/voting-app/result@sha256:246fc050fe843bb3eb296db720d40b7b0c6808113a449bfa7d2b496b5aafaf3c","image":"sha256:246fc050fe843bb3eb296db720d40b7b0c6
808113a449bfa7d2b496b5aafaf3c","generation":1}]}],
"entityId":"IMGSTREAM-9114E7CF-C029-4F52-9EF3-B61F288E15BA",
"platformEntityId":"OCP-CD351169-215D-44A6-9584-37DAAFE7A2A0",
"uid":"6f091a87-911c-4a0b-8b04-79ff9564775a","name":"result",
"nameSpaceName":"voting-app","nameSpaceUid":"xxxxx",
"createdBy":"USER-E500C5C5-0F49-45EB-8297-7418F9C82E3F",
"createdDate":"2024-11-12T13:00:14.843","modifiedBy":"USER-
E500C5C5-0F49-45EB-8297-7418F9C82E3F"}]
Parameter Details:
| Parameter Name | Type | Mandatory | Description |
|---|---|---|---|
| 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” |
| provisioningEndPointId | string | N | User can provide provisioning Cloud Account Id. |
| namespaceuid | String | Y | User has to pass namespaceuid, then details of passed namespaceuid are returned. |