fiware - 取消 Cygnus 订阅

标签 fiware fiware-orion fiware-cygnus

我对 MySql 接收器的实体属性进行了订阅。问题是,当我测试休息服务以进行订阅(如果数据尚未持久化)时,我进行了大量订阅。现在,每次我对实体的属性进行更新时,都会发生该值被保留很多次的情况。有没有办法删除没有订阅ID的订阅?

enter image description here

最佳答案

是的,确实如此。首先,您可以使用 GET/v2/subscriptions 操作列出现有订阅(查看 draft NGSIv2 specification )。

获得 ID 后,即可执行 unsubscribeContext 操作:

(curl localhost:1026/v1/unsubscribeContext -s -S --header 'Content-Type: application/json' \
    --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
    "subscriptionId": "51c0ac9ed714fb3b37d7d5a8"
}
EOF

我建议查看Orion context broker documenation .

关于fiware - 取消 Cygnus 订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34354921/

相关文章:

固件 - 上下文代理 : Issue with NGSIv2 subscriptions

postgresql - Fiware-Cygnus 配置到 Postgresql、DynamoDB 和 CKAN

fiware - 如何扩展 Orion GE?

fiware - ContextBroker 订阅错误

fiware - Orion JSON 错误请求

hadoop - cosmos.lab.fi-ware.org 的 SafeModeException

fiware - 如何配置 Fiware PEP WILMA 代理以在我自己的服务器上使用 Keyrock 和 Orion 实例

fiware-orion - 使用 Docker-compose 安装的 Cygnus-ngsi 不会将数据保存在 MongoDB 中

mongodb - 固件 - ContextBroker - 编译 ubuntu Trusty (14.04)