Versions Compared

Key

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

...

  1. DME to NCMP Subscription Request


    Name

    Parent

    Type

    Example

    Mandatory ?

    Notes

    1idheaderString
    Y
    2versionheaderString 1.0Y
    3

    source

    headerStringDMEY
    4

    type

    headerStringsubscriptionCreateRequestY
    5

    dataschema

    headerURIorg.onap.ncmp.cm.subscription:1.0.0Y
    6

    data


    Object
    NY
    7

    subscriptionId

    dataString
    Y
    8

    predicates

    dataArray
    YN
    9

    targetFilter

    predicatesArray of String
    Y
    10

    scopeFilter

    predicatesObject
    YN
    11

    datastore

    scopeFilterString
    Y
    12

    xpathFilter

    scopeFilterArray of String
    Y


    Example

    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


    Name

    Parent

    Type

    Example

    Mandatory ?

    Notes

    1idheaderString
    Y
    2versionheaderString 1.0Y
    3

    source

    headerStringDMEY
    4

    type

    headerStringsubscriptionCreateRequestY
    5

    dataschema

    headerURIorg.onap.ncmp.dmi.cm.subscription:1.0.0Y
    6

    correlationid

    headerStringsubscriptionId#dmiPluginNameYConcatenation of subscriptionId and dmi plugin name
    7

    data


    Object
    Y
    8

    cmhandlescmHandles

    dataArray
    Y
    9

    cmhandleId

    cmhandlescmHandlesString
    Y
    10

    privateProperties

    cmhandlescmHandlesMap
    YN
    11

    predicates

    dataArray
    YN
    12

    targetFilter

    predicatesArray of String
    Ylist of cm handle ids
    13

    scopeFilter

    predicatesObject
    YN
    14

    datastore

    scopeFilterString
    Yncmp-datastore:passthrough-operational OR ncmp-datastore:passthrough-running 
    15

    xpathFilter

    scopeFilterArray of String
    Y


    Example

    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",
    		"privateProperties": {...} 
    	},
    	{
    		"cmHandleId": "cmhandle2",
    		"privateProperties": {...}
    	},
    	{
    		"cmHandleId": "cmhandle3",
    		"privateProperties": {...}
    	}
    	]
        "predicates": [
    	{
            “targetFilter” :  [“cmHandle1”, “cmHandle2”, "cmhandle3"], // mandatory
    		"scopeFilter" : { 
    	       "datastore": “ncmp-datastore:passthrough-operational or ncmp-datastore:passthrough-running", // optional. default is passthrough-operational
               "xpathFilter": 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
               "xpathFilter": list of valid xpaths  *
          }
        }
      ]
    }



  3. DMI-Plugin to NCMP Subscription Response


    Name

    Parent

    Type

    Example

    Mandatory ?

    Notes

    1idheaderString
    Y
    2versionheaderString 1.0Y
    3

    source

    headerStringDMEY
    4

    type

    headerStringsubscriptionCreateResponseY
    5

    dataschema

    headerURIorg.onap.ncmp.dmi.cm.subscription:1.0.0Y
    6

    correlationid

    headerStringsubscriptionId#dmiPluginNameYConcatenation of subscriptionId and dmi plugin name
    7

    data


    Object
    Y
    8

    statusCode

    dataString
    Y1 - Accept the subscription request
    104 - Reject the subscription request
    9

    statusMessage

    dataString
    Y

    ACCEPTED

    REJECTED


    Example

    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
    correlationid : ( concatenation of subscriptionId and dmi-plugin-name with a separator) 
    { 
    "data" : {
       "statusCode": "1/104",  // mandatory
       "statusMessage" : "ACCEPTED/REJECTED" // mandatory
     }
    }



  4. NCMP to DME Subscription Response


    Name

    Parent

    Type

    Example

    Mandatory ?

    Notes

    1idheaderString
    Y
    2versionheaderString 1.0Y
    3

    source

    headerStringDMEY
    4

    type

    headerStringsubscriptionDeleteResponseY
    5

    dataschema

    headerURIorg.onap.ncmp.cm.subscription:1.0.0Y
    6

    correlationid

    headerStringsubscriptionIdY
    7

    data


    Object
    Y
    8

    subscriptionId

    dataString
    Y
    9

    acceptedTargets

    dataArray of String
    N
    10

    rejectedTargets

    dataArray of String
    N
    11

    pendingTargets

    dataArray of String
    N


    Example

    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
      }
    }


...