我不知道是什么命令传递给Fiware Orion API(v2)来删除特定类型的所有元素。在这个例子中。在
我试过了,但没用:
response = self.PM.request(
method='post', url='http://127.0.0.1:1026/v2/op/update', headers={'Content-Type': 'application/json'},
body=json.dumps({
"actionType": "delete",
"entities": [{
"idPattern": ".*",
"type": "Fake",
}]
}))
我可以通过ID删除元素。这只是一个解决方法,但它告诉我我正确地连接到API。这是有效的代码:
^{pr2}$
根据to the docs这个功能不存在。另外,如果你search the source code for "delete type"我看不到任何匹配的东西。您需要先执行select,然后遍历所有id删除它们。在
您正在使用python中的某个客户端访问Orion代理?在
相关问题 更多 >
编程相关推荐