getPersistentVolumeClaims
This method is used to return the list of OCP Persistent Volume Claims in HCL BigFix CLM.
Method Signature:
getPersistentVolumeClaims (controlId, async, callback, addlparam, null, namespaceuid)
Sample Response:
[{"entityId":"PERSVOLCLM-F0A61E7E-A7BB-4062-BE9A-AC4AAD4CF742",
"platformEntityId":"OCP-C5E26138-7E86-407C-8666-8909360ADB4D",
"uid":"6e5ea57e-366b-49ec-a8d9-befcd2cd91f6","name":"centos7-coffee-grasshopper-10",
"nameSpaceName":"default","nameSpaceUid":"xxxxx",
"labels":{"alerts.k8s.io/KubePersistentVolumeFillingUp":"disabled","app":
"containerized-data-importer","app.kubernetes.io/component":"storage",
"app.kubernetes.io/managed-by":"cdi-controller","app.kubernetes.io/part-of":
"hyperconverged-cluster","app.kubernetes.io/version":"4.15.4",
"instancetype.kubevirt.io/default-instancetype":"u1.medium",
"instancetype.kubevirt.io/default-preference":"centos.7","kubevirt.io/created-by":
"f0b015f3-3186-451d-92e5-7287d5a5d272"},
"annotations":{"cdi.kubevirt.io/cloneFallbackReason":
"In tree storage class does not support snapshot/clone","cdi.kubevirt.io/cloneType":"copy",
"cdi.kubevirt.io/createdForDataVolume":"48691d38-b4e6-40ca-afbe-0040f547f13a",
"cdi.kubevirt.io/storage.clone.token":
"eyJhbGciOiJQUzI1NiJ9.eyJleHAiOjE3MjM0NzM2MTksImlhdCI6MTcyMzQ3MzMxOSwiaXNzI
joiY2RpLWFwaXNlcnZlciIsIm5hbWUiOiJjZW50b3M3LTAyYWE0NWZiY2JhZCIsIm5hbWVzcGFj
ZSI6Im9wZW5zaGlmdC12aXJ0dWFsaXphdGlvbi1vcy1pbWFnZXMiLCJuYmYiOjE3MjM0NzMzMTksIm9wZXJhdGlvbiI6
IkNsb25lIiwicGFyYW1zIjp7InRhcmdldE5hbWUiOiJjZW50b3M3LWNvZmZl
ZS1ncmFzc2hvcHBlci0xMCIsInRhcmdldE5hbWVzcGFjZSI6ImRlZmF1bHQifSwicmVzb3
VyY2UiOnsiZ3JvdXAiOiIiLCJyZXNvdXJjZSI6InBlcnNpc3RlbnR2b2x1bWVjbGFpbXMiLCJ2ZXJzaW9uIjoidjEifX0
.l0deIzkpl65h_1iobQt1grNF-GSuVrOZctzFx5SzvAtYbKWUkkYS2eT3G8yu2i8Il8f79N-ODH9aX0X4xFVWzi6
pdtyp_7YJx9DwVffuenWwlmmgggKbZgrlhwWqzRooAUtalgmxhS5G2ge6891Pw5DUijD4fveiEZi3Z1vk8Ou1NKI
8Ut09uGesiNwFqCOK79ELIrVNlar5ESZ7A9pHlTLNx7rDlGLjKsgK5RhrnFjgLpLosMzvs8HBn0Qtu8B6IG0
rHxNxZKSIDc7h0w290K4NlASk1pswvNI244lAaemiltxsp_S5UTQfAs57N0IL-v6Rd8iFuk8KR1-h07OJtg",
"cdi.kubevirt.io/storage.condition.running":"false",
"cdi.kubevirt.io/storage.condition.running.message":"Clone Complete","cdi.kubevirt.io/storage.condition.running.reason":"Completed","cdi.kubevirt.io/storage.condition.source.running":"true","cdi.kubevirt.io/storage.condition.source.running.message":"Clone Complete","cdi.kubevirt.io/storage.condition.source.running.reason":"Completed","cdi.kubevirt.io/storage.contentType":"kubevirt","cdi.kubevirt.io/storage.extended.clone.token":"eyJhbGciOiJQUzI1NiJ9.eyJleHAiOjIwMzg4MzMzMTksImlhdCI6MTcyMzQ3MzMxOSwiaXNzIjoiY2RpLWRlcGxveW1lbnQiLCJuYW1lIjoiY2VudG9zNy0wMmFhNDVmYmNiYWQiLCJuYW1lc3BhY2UiOiJvcGVuc2hpZnQtdmlydHVhbGl6YXRpb24tb3MtaW1hZ2VzIiwibmJmIjoxNzIzNDczMzE5LCJvcGVyYXRpb24iOiJDbG9uZSIsInBhcmFtcyI6eyJ0YXJnZXROYW1lI
joiY2VudG9zNy1jb2ZmZWUtZ3Jhc3Nob3BwZXItMTAiLCJ0YXJnZXROYW1lc3BhY2U
iOiJkZWZhdWx0IiwidWlkIjoiNmU1ZWE1N2UtMzY2Yi00OWVjLWE4ZDktYmVmY2QyY2Q5MWY2In0sInJlc291cmNlIjp7Imdyb3VwIjoiIiwicmVzb3VyY2UiOiJwZXJzaXN0ZW50dm9sdW1lY2xhaW1zIiwidmVyc2lvbiI6InYxIn19.veM1Jz-trzjINxv3uU_PlkFuJUHSj-11aAkTmb5zx4YX5a9UOXM9iouai034ppGNUv8Smn6jokXDqJBnuRVmbuhT6BanKiKWAoLIttNqkrfh33qEHf2hYdMptv_wyXI95BCrdXdP4LEZ5xBVcirgZ8I3jazdl_ING4dT9cOfDN22nweh-_12SjcnHME0cl1v0PH4aXCczCBv6n6tDFTFZmnIRRqZAt0IPYSyA9GA67ohaXz-F8Nv_VOKb-Zfwj0Kacq7mOqnFTrApWE70dMIMXk2_uwQRZ6gJ30PqgRAudrAWf3cs5fXtHlMktIS11cyNIsXZaRVyDXOWs_ET6lbiQ","cdi.kubevirt.io/storage.pod.phase":"Succeeded","cdi.kubevirt.io/storage.pod.ready":"false","cdi.kubevirt.io/storage.pod.restarts":"0","cdi.kubevirt.io/storage.preallocation.requested":"false","cdi.kubevirt.io/storage.sourceClonePodName":"6e5ea57e-366b-49ec-a8d9-befcd2cd91f6-source-pod","cdi.kubevirt.io/storage.uploadPodName":"cdi-upload-centos7-coffee-grasshopper-10","cdi.kubevirt.io/storage.usePopulator":"false","cdi.kubevirt.io/uploadClientName":"openshift-virtualization-os-images/centos7-02aa45fbcbad-default/centos7-coffee-grasshopper-10","k8s.io/CloneOf":"true","k8s.io/CloneRequest":"openshift-virtualization-os-images/centos7-02aa45fbcbad","pv.kubernetes.io/bind-completed":"yes","pv.kubernetes.io/bound-by-controller":"yes","volume.beta.kubernetes.io/storage-provisioner":"cluster.local/nfs-subdir-external-provisioner","volume.kubernetes.io/storage-provisioner":"cluster.local/nfs-subdir-external-provisioner"},"status":"Bound","storage":"34087042032","storageType":"","storageClassName":"nfs-client","volumeNode":"Filesystem","accessMode":null,"isActive":null,"createdBy":"USER-703291E7-54BE-410A-B604-3C692CD36268","createdDate":"2024-08-22T07:50:47.777",
"modifiedBy":"USER-703291E7-54BE-410A-B604-3C692CD36268"}]
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” |