...
DME to NCMP Subscription Request
Code Block title DME to NCMP Subscription Request linenumbers true collapse true id : random -UUID version : v1"1.0" source : "DME" type : "subscriptionCreateRequest", dataschema : org:.onap:cps:ncmp:subscription-create // Priyank to get back. .ncmp.cm.subscription:1.0.0 { "data": { "subscriptionId": "unique subscription id", *// mandatory "predicates": [ { “targetFilter” : list of cmhandles, *// mandatory "scopeFilter" : { "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational "xpath-filter": list of valid xpaths // *mandatory } } ] }
NCMP to DMI-Plugin Subscription Request
Code Block title NCMP to DMI-Plugin Subscription Request linenumbers true collapse true id : random UUID version : v11.0 source : "NCMP" type : "subscriptionCreateRequest" dataschema : org:.onap:cps:ncmp:subscription-create // Priyank to get back..ncmp.dmi.cm.subscription:1.0.0 correlationId ( concatenation of subscriptionId and dmi-plugin-name with a separator) { "data": { "cmhandles" : [ { "cmHandleId": "cmhandle1", "private-properties": {...} }, { "cmHandleId": "cmhandle2", "private-properties": {...} }, { "cmHandleId": "cmhandle3", "private-properties": {...} } ] "predicates": [ { “targetFilter” : [“cmHandle1”, “cmHandle2”, "cmhandle3"], "scopeFilter" : { "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational "xpath-filter": list of valid xpaths * } }, { “targets”“targetFilter” : [“cmHandle1”, “cmHandle2”, "cmhandle3"], "scopeFilter" : { "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational "datastore-xpath-filter": ["p3/c3", "p4/c4"] list of valid xpaths * } } ] }
DMI-Plugin to NCMP Subscription Response
Code Block title DMI-Plugin to NCMP Subscription Response linenumbers true collapse true Headers will have relevant fields including the subscriptionId id : random UUID version : v1"1.0" source : <dmi-plugin-name> type : "subcriptionCreateResponse" dataschema : org:.onap:cps:ncmp:subscription-create // Priyank to get back..ncmp.dmi.cm.subscription:1.0.0 correlation-id : ( concatenation of subscriptionId and dmi-plugin-name with a separator) // priyank to check the - convention { "data" : { "statusCode": "1", // open issue for the status codes ( whether to use the same for DMI to NCMP as for NCMP to Clients) "statusMessage" : "accepted/rejected" } }
NCMP to DME Subscription Response
Code Block title NCMP to DME Subscription Response linenumbers true collapse true id : random UUID version : v1"1.0" source : "NCMP" type : "subcriptionCreateResponse", dataschema : org.onap.ncmp.cm.subscription:1.0.0, correlationId : <subscriptionId> { "data": { "subscriptionId": "sample-subscription-id", "accepted-targets" : ["ch-1", ...], "rejected-targets" : ["ch-1", ...], "pending-targets" : ["ch-1", ...], } }
...