-
Story
-
Resolution: Done
-
Medium
-
None
-
Montreal Release
We want to query cm handles with a condition parameter of trust level.
The trust level can be in two form:
"trustLevel": "COMPLETE"
"trustLevel": "NONE"
Update POST[ /ncmp/v1/ch/id-searches |http://localhost:8883/swagger-ui/index.html?configUrl=%2Fv3%2Fapi-docs%2Fswagger-config&urls.primaryName=cps-ncmp#/network-cm-proxy/searchCmHandleIds] and / ncmpInventory/v1/ch/id-searches and http://localhost:8883/ncmp/v1/ch/searches
Query Body:
{ "cmHandleQueryParameters":
[
{ "conditionName": "cmHandleWithTrustLevel", "conditionParameters": [ { "trustLevel": "COMPLETE" }]}
]
}
Return Body:
[
{ "cmHandle": "my-cm-handle1", "publicCmHandleProperties": [ { "key": "Book Type" }, { "key": "Book Type" } ], "state": { ... },
"trustLevel" : "COMPLETE"}
]
A/C:
- There are two end points will be subject to query should return cm handles as per the trust level requested.
http://<host>:<port>/ncmp/v1/ch/id-searches
that will return only cm handle ids.
http://<host>:<port>/v1/ch/searches
that will return entire cm handles as object. - There should be a minimal/zero impact on performance for the endpoint.Check/Update performance tests in Nordix jobs.
Demo