Versions Compared

Key

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

...

UsecaseParticipants Request SchemaRequest Example
Register Subscriptionsncmp → dmi

Protocol : REST
Method : POST
URI : /ncmpInventory/v1/subscriptions
Async : true

Request Body:

{
 
Code Block
languagexml
titleRequest Body
collapsetrue
{
  "subscriptions" : [


      {  


          "cmhandleId" : "<cmhandle-id>",


          "subscriptionType": "subscriptionCreated | subscriptionUpdated | subscriptionDeleted",


          "existingSubscriptionId" : "<existing subscription-id on remote device>,


                                                      optional, required for subscriptionUpdated | subscriptionDeleted",


          "schemaName": "<schema name>, default is org.onap.ncmp.cm-notification-event",


          "schemaVersion": "<schema version>, default is latest",


          "isTagged": "<yes|no>, optional parameter, default is no",


          "predicates": {


               "<parameter>": "<value>",


               "param2": [


                      "value21",


                      "value22"


                ]


          },


          "cmhandleProperties"  : 


                  <all-cmhandle-properties-as-per-normal-crud-request>


          ]


      }


  ]


}


Response :

202 Accepted 

{ }

Protocol : REST
Method :
POST
URI :
/ncmpInventory/v1/subscriptions
Async : true

Request Body:

Code Block
{
 
languagexml
titleRequest Body
collapsetrue
{
  "subscriptions" : [


      {  


          "cmhandleId" : "e34553",              (M)


          "subscriptionType": "create",        (M)


          "schemaName": "org.onap.ncmp:cm-network-avc-event.rfc8641",    (O)


          "schemaVersion": "1.0"    (O)


          "isTagged": "yes",             (O)


          "predicates"    {              (O)


                "datastore": “passthrough-operational",  (O)


                "datastore-xpath-filter": "//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/ 


                       _3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// |


                      //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// |


                     //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//”  


          },


          "cmhandleProperties"  :          (M)


                  <all the cmhandle properties>


           ]


      },


      {  


          "cmhandleId" : "gg8769",             (M)


          "subscriptionType": "update",        (M)


          "existingSubscriptionId" : "6738462g3494hw9",   (O)


          "schemaName": "org.onap.ncmp:cm-network-avc-event.rfc8641",    (O)


          "schemaVersion": "1.0"    (O)


          "isTagged": "yes",             (O)


          "predicates"    {              (O)


                "datastore": “passthrough-operational",  (O)


                "datastore-xpath-filter" : "//_3gpp-nr-nrm-gnbdufunction:GNBDUFunction/ 


                       _3gpp-nr-nrm-nrcelldu:NRCellDU/ | //_3gpp-nr-nrm-gnbcuupfunction:GNBCUUPFunction// |


                      //_3gpp-nr-nrm-gnbcucpfunction:GNBCUCPFunction/_3gpp-nr-nrm-nrcelldu:NRCellCU// |


                     //_3gpp-nr-nrm-nrsectorcarrier:NRSectorCarrier//”  


          },


          "cmhandleProperties"  :          (M)


                  <all the cmhandle properties>


           ]


      },


      {  


          "cmhandleId" : "ff56743",             (M)


          "subscriptionType": "delete",    (M)


          "subscriptionId" : "6738462g3494hw9",   (O but must be set for update or delete subscriptionType)


          "cmhandleProperties"  :            (M)


                  <all the cmhandle properties>


           ]


      }


  ]


}


Response :

202 Accepted 

{ }


CM AVC Subscription Response - delete dmi subscription case 

...