ORION: Get Subscription List

I am interested in access to the list of active subscriptions, but after reading the entire wiki about the API ( https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_User_and_Programmers_Guide#Context_subscriptions ) I don’t have to find any operation that allows me to get a list of them.

Is there any operation for this? Can anyone tell me the details of this?

+4
source share
1 answer

The NGSI API that Orion implements does not include any operations to list existing subscriptions. It is assumed that each client knows and manages the signature created, no "administrative action" to obtain them is defined by NGSI.

The only possibility with the current version of Orion is to directly query the database to retrieve this information (for example, on the side of a REST server running the Orion context broker process). Given the data model described in the Orion documentation , this is a query issue in the csubs collection.

EDIT: Orion 0.25.0 includes the operation of retrieving a subscription list in the NGISv2: API GET /v2/subscriptions. See this document for more details .

+5
source

Source: https://habr.com/ru/post/1542894/


All Articles