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 : v1
    source : DME
    type
    dataschema
    time ?? : subscriptionCreateRequest
    dataschema : org:onap:cps:ncmp:subscription-create // Priyank to get back.
    
    {
      "data": {
        "subscriptionId": "unique subscription id", *
        "predicates": [
    	{
            “targets”“targetFilter” :  list of cmhandles, *
    		"scopeFilter"  :  { 
    	       "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational
               "datastore-xpath-filter": list of valid xpaths  *
          }
    
        }
    	]
    }



  2. NCMP to DMI-Plugin Subscription Request

    Code Block
    titleNCMP to DMI-Plugin Subscription Request
    linenumberstrue
    collapsetrue
    id : random UUID
    version : v1
    source : NCMP
    type
    dataschema
    time ?? : subscriptionCreateRequest
    dataschema : org:onap:cps:ncmp:subscription-create // Priyank to get back.
    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": [
    	{
            “targets”“targetFilter” :  [“cmHandle1”, “cmHandle2”, "cmhandle3"],
    		"scopeFilter" : { 
    	       "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational
               "datastore-xpath-filter": ["p1/c1", "p2/c2"]
       list of valid xpaths  *
          }
        },
    	{
            “targets” :  [“cmHandle1”]
            "datastore": “ncmp-datastore:passthrough-running",
            "datastore-xpath-filter": ["p3/c3", "p4/c4"]
        }
    	]
    }



  3. DMI-Plugin to NCMP Subscription Response

    Code Block
    titleDMI-Plugin to NCMP Subscription Response
    linenumberstrue
    collapsetrue
    Headers will have relevant fields including the subscriptionId
    id : random UUID
    version : v1
    source : <dmi-plugin-name>
    type
    dataschema
    time ??  
    correlationId : subcriptionCreateResponse
    dataschema : org:onap:cps:ncmp:subscription-create // Priyank to get back.
    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"
    }
    }



  4. NCMP to DME Subscription Response

    Code Block
    titleNCMP to DME Subscription Response
    linenumberstrue
    collapsetrue
    id : random UUID
    version : v1
    source : NCMP
    type : subcriptionCreateResponse
    dataschema
    time ??
    
     : correlationId : <subscriptionId>{
      "data": {
    		"subscriptionId": "sample-subscription-id",
    		"accepted-targets" : ["ch-1", ...],
    		"rejected-targets" : ["ch-1", ...],
    		"pending-targets" : ["ch-1", ...],
      }
    }


...