AWS OpenSearch Python客户端在client.indices.exists()上提出了403-需要哪些权限?
我正在尝试测试是否通过OpenSearch-PY存在特定的OpenSearch索引。
我正在收到403错误,而我的一生无法确定正确的权限:
2022-07-04 14:11:11,535 - WARNING | L258 log_request_fail (): HEAD https://<blah>.<region>.es.amazonaws.com:443/test-index [status:403 request:0.072s]
呼叫是
if opensearch_client.indices.exists(index='test-index'):
...
OpenSearch Side上执行此操作的权限?
例如,我看不到与HTTP头部操作有关的任何内容。
其他操作正常。
帮助!
I am trying to test whether a particular OpenSearch Index exists via opensearch-py.
I am receiving a 403 error and can't for the life of me establish the correct permissions:
2022-07-04 14:11:11,535 - WARNING | L258 log_request_fail (): HEAD https://<blah>.<region>.es.amazonaws.com:443/test-index [status:403 request:0.072s]
The call is
if opensearch_client.indices.exists(index='test-index'):
...
What permissions on the OpenSearch side are required to perform this operation?
I can't see anything relating to the HTTP HEAD operation, for example.
Other operations are working just fine.
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在OpenSearch 2.5上,它对我有用的权限
索引:admin/get
希望这会有所帮助!
On OpenSearch 2.5 it worked for me with the permission
indices:admin/get
Hope this helps!