Odata4 is not returning the same results as odata2
search cancel

Odata4 is not returning the same results as odata2

book

Article ID: 437898

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction


I have this odata2 url, which returns results:

https://DA_HOSTNAME:8582/odata/api/cpus?$format=text/csv&resolution=RATE&period=630s&$top=15000&$skip=0&top=15000&$expand=device,cpumfs&$select=device/Name,device/PrimaryIPAddress,Name,cpumfs/Timestamp,cpumfs/im_Utilization&$filter=((groups/Name%20eq%20'TEST'))

Using the odata4 url returns just the headers:

https://PC_HOSTNAME:8182/pc/odata4/api/cpus?$top=15000&$skip=0&top=15000&$format=text/csv&resolution=RATE&period=630s&$expand=device($select=Name,PrimaryIPAddress;$top=15000),cpumfs($select=Timestamp,im_Utilization;$top=15000)&$select=Name&$filter=((groups/any(L1:L1/Name eq 'TEST')))

How come the new query does not work like the original?

Cause

As of NetOps 25.4.2 Collections and Groups are restricted to devices only.  It was always designed to be this way but was not enforced.  As of 25.4.2 and above this is now enforced.

Resolution

If you need subcomponents you will need to select the "Include the children of managed items" checkbox in the Group configuration view:

 

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/25-4/release-notes/fixed-issues.html

Symptom: You can add non-devices to the Collections group.
Resolution: With this fix, you can no longer add non-devices to the Collection groups.
(25.4.2, DE176478, 36616005)