Versions Compared

Key

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

This clause document describes the procedure for sending notifications related to VNF package management

Precondition: The subscribed API consumer has subscribed previously for notifications related to VNF package management.

If an event occurs that matches the filtering criteria which are part of the subscription, Etsicatalog will generate notification that includes information about the event, and sends it in the body of a POST request to the URI
which the subscribed API consumer has registered as part of the subscription request. 

The subscribed API consumer should acknowledges the successful delivery of the notification by returning a "204 No Content" response.

1.VnfPackage Onboarding Notification

...

  • VnfPackage‘s vnfdId / vnfPkgId / vnfProductsFromProviders maching vnfProductsFromProviders matching subscription.filters

If there is are some matching subscription records,  Etsicatalog will post notifications requestswill send a notification to the URI which is provided by the Client in its subscription request.

1.1 Flow of VnfPackage Onboarding Notification

...

1.3 Notification API example:

POST http://URI-is-provided-by-the-client-when-creating-the-subscription-VnfPackageOnboardingNotification

For this example, the URI provided by client is http://www.vnf1.com/notification according to the subscription request above.

Code Block
curl -X POST http://www.vnf1.com/notification
  http://{{baseUrl}}/URI-is-provided-by-the-client-when-creating-the-subscription-VnfPackageOnboardingNotification 
  -H 'Content-Type: application/json' 
  -d '{
  "id":"notify_id",
  "notificationType":"VnfPackageOnboardingNotification",
  "timeStamp":"nowtime()",
  "vnfPkgId":"vnfPackage_uuid",
  "vnfdId":"vnfdId_uuid",
  "subscriptionId":"subscription_id",
  "_links":{
    "subscription":{
      "href":"http://subscriptionuri"
    },
    "vnfPackage":{
      "href":"http://vnfPackageuri"
    }
  }
}'

...

  • VnfPackage’s vnfdId / vnfPkgId / vnfProductsFromProviders maching matching subscription.filters

If there is are some matching subscription records,  Etsicatalog will post notifications requestswill send a notification to the URI which is provided by the Client in its subscription request.

2.1 Flow of VnfPackage Change Notification

...

2.3 Notification API example:

POST http://URI-is-provided-by-the-client-when-creating-the-sbuscription-VnfPackageChangeNotification 

For this example, the URI provided by client is http://www.vnf1.com/notification according to the subscription request above.

Code Block
curl -X POST \
  http://{{baseUrl}}/URI-is-provided-by-the-client-when-creating-the-sbuscription-VnfPackageChangeNotification \www.vnf1.com/notification 
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 20d37747-16ec-41b1-935b-53c893a94fc9' \
  -H 'cache-control: no-cache' \
  -d '{
  "id":"notify_id",
  "notificationType":"VnfPackageChangeNotification",
  "timeStamp":"nowtime()",
  "vnfPkgId":"vnfPackage_uuid",
  "vnfdId":"vnfdId_uuid",
  "subscriptionId":"subscription_id",
  "changeType":"OP_STATE_CHANGE",
  "operationalState":"ENABLED",
  "_links":{
    "subscription":{
      "href":"http://subscriptionuri"
    },
    "vnfPackage":{
      "href":"http://vnfPackageuri"
    }
  }
}'

...