Search code examples
subscriptionfiwarefiware-orion

Export all the subscriptions - FIWARE ORION Context Broker


Is there any way to export all the subscriptions submitted on an instance of the FIWARE ORION Context Broker?


Solution

  • You can get subscriptions using GET /v2/subscriptions operation. However, note this is a paginated API, so if you have more than 20 subscription you will get only the 20 first ones. To get all them, page by page, you have to use offset and limit URI parameters. Check NGSIv2 specification and also slides 48-50 in this Orion introductory presentation.

    You can create a new subscription using POST /v2/subscriptions operation. You can use that operation to import subscriptions.