Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. DME to NCMP Subscription Request

    Code Block
    titleDME to NCMP Subscription Request
    linenumberstrue
    collapsetrue
    id : random-UUID
    version : "1.0"
    source : "DME"
    type : "subscriptionCreateRequest",
    dataschema : org.onap.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
          }
        }
    	]
    }



  2. NCMP to DMI-Plugin Subscription Request

    Code Block
    titleNCMP to DMI-Plugin Subscription Request
    linenumberstrue
    collapsetrue
    id : random UUID
    version : 1.0
    source : "NCMP"
    type : "subscriptionCreateRequest"
    dataschema : org.onap.ncmp.dmi.cm.subscription:1.0.0
    correlationId ( concatenation of subscriptionId and dmi-plugin-name with a separator)
    
    {
      "data": {
       
    	"cmhandles" : [ // mandatory
    	{
    		"cmHandleId": "cmhandle1",
    		"private-properties": {...} 
    	},
    	{
    		"cmHandleId": "cmhandle2",
    		"private-properties": {...}
    	},
    	{
    		"cmHandleId": "cmhandle3",
    		"private-properties": {...}
    	}
    	]
        "predicates": [
    	{
            “targetFilter” :  [“cmHandle1”, “cmHandle2”, "cmhandle3"], // mandatory
    		"scopeFilter" : { 
    	       "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational
               "xpath-filter": list of valid xpaths  // mandatory
          }
        },  
    	{
            “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  *
          }
        }
      ]
    }



  3. DMI-Plugin to NCMP Subscription Response

    Code Block
    titleDMI-Plugin to NCMP Subscription Response
    linenumberstrue
    collapsetrue
    id : random UUID
    version : "1.0"
    source : <dmi-plugin-name>
    type : "subcriptionCreateResponse"
    dataschema : org.onap.ncmp.dmi.cm.subscription:1.0.0
    correlation-id : ( concatenation of subscriptionId and dmi-plugin-name with a separator) 
    { 
    "data" : {
       "statusCode": "1/2104",  // mandatory
       "statusMessage" : "ACCEPTED/REJECTED" // mandatory
     }
    }



  4. NCMP to DME Subscription Response

    Code Block
    titleNCMP to DME Subscription Response
    linenumberstrue
    collapsetrue
    id : random UUID
    version : "1.0"
    source : "NCMP"
    type : "subcriptionCreateResponse",
    dataschema : org.onap.ncmp.cm.subscription:1.0.0,
    correlationId : <subscriptionId> {
      "data": {
    		"subscriptionId": "sample-subscription-id", // mandatory
    	    "accepted-targets" : ["ch-1", ...], // optional
    		"rejected-targets" : ["ch-1", ...], // optional
    		"pending-targets" : ["ch-1", ...],  // optional
      }
    }


...