mpriyank | 0b200f1 | 2024-07-24 14:10:48 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | .. Copyright (C) 2024 Nordix Foundation |
| 4 | |
| 5 | .. DO NOT CHANGE THIS LABEL FOR RELEASE NOTES - EVEN THOUGH IT GIVES A WARNING |
| 6 | .. _cmNotificationSubscriptions: |
| 7 | |
| 8 | |
| 9 | CM Data Subscriptions |
| 10 | ##################### |
| 11 | |
| 12 | .. toctree:: |
| 13 | :maxdepth: 1 |
| 14 | |
| 15 | Introduction |
| 16 | ============ |
| 17 | CM Subscriptions are created to subscribe to notifications for CM related changes that happened in the network based on predicates. |
| 18 | Predicates can be used to filter on CM Handle (id), Datastore and Xpath. |
| 19 | |
| 20 | The CM Subscription flow is event driven and adheres to the CNCF Cloud Events Specifications. |
| 21 | |
| 22 | Event to create and delete a subscription. |
| 23 | |
| 24 | :download:`CM Subscription Event Schema <schemas/ncmp-in-event-schema-1.0.0.json>` |
| 25 | |
| 26 | Event to receive status of participants in a subscription. |
| 27 | |
| 28 | :download:`CM Subscription Response Event Schema <schemas/ncmp-out-event-schema-1.0.0.json>` |
| 29 | |
| 30 | CM Subscriptions Creation |
| 31 | ------------------------- |
| 32 | To create a subscription, a client sends an event to a configured topic to register its interest with NCMP allowing the client to receive notifications based on the subscription. |
| 33 | |
| 34 | CM Subscriptions Deletion |
| 35 | ------------------------- |
| 36 | If a client no longer wishes to receive notifications based on a registered subscription, the client can delete the subscription by providing the subscription id. |
| 37 | |
| 38 | CM Subscriptions Response |
| 39 | ------------------------- |
| 40 | The response for the involved subscription participants for the Create and Delete flow can be as follows based on how the DMI Plugin responds back to NCMP. |
| 41 | - **ACCEPTED:** DMI Plugin successfully applied the subscription. |
| 42 | - **REJECTED:** DMI Plugin failed to apply the subscription. |
| 43 | - **PENDING:** DMI Plugin failed to respond within a configured time. |
| 44 | |
| 45 | **Note.** The Cm Subscription feature relies on the DMI Plugin support for applying the subscriptions. This support is currently not implemented in the ONAP DMI Plugin. |
| 46 | |
| 47 | |
| 48 | |