Can we still use our OData 2 queries and still have the expected results after upgrading to NetOps Performance Management 25.4.x which utilizes OData 4?
DX NetOps Portal version 25.4.x
Data Aggregator (DA)
OData Query Builder
At this time the OData 2 API is still available in NetOps PM 25.4.x. That being said we highly suggest moving to OData 4, as eventually OData 2.0 API will be completely removed.
To access OData 4.0, on NetOps PM 25.4.x releases you must query the NetOps Portal Server:
https://<netopsPortalServer>:8182/pc/odata/api/$metadata
To access legacy OData 2.0 on NetOps PM 25.4.x eleases you must query the NetOps Data Aggregrator (or Fault-Tolerant DA proxy Address):
https://<netopsDataAggegator>:8582/odata/api/$metadata
To access the OData QueryBuilder 4 you must query the NetOps Portal Server:
https://<netopsPortalServer>:8182/pc/odataquery
NOTE: Odata QueryBuilder 4 is the only available version of the query builder.
To help with converting your OData 2 to OData 4 query syntax we provide a script on the Data Aggregator servers:
<installdir>/scripts/convertToOdata4.py
usage: convertToOdata4.py [-h] [-v] [-V] [-l [nav ...]] url
-v (verbose), -V (version), -l (nolambda expressions)
url is odata2 url to convert to odata4 with all URL args added.
run for each URL to convert on its own
Note:
Use single quotes around the URL if needed. Do not use double quotes.
It is highly recommended that further testing of the resultant query is performed before introducing it into a product environment. This includes testing on the remote end of whatever is consuming the data that is obtained.