AWS OpenSearch Python客户端在client.indices.exists()上提出了403-需要哪些权限?

发布于 2025-02-13 09:05:01 字数 500 浏览 0 评论 0原文

我正在尝试测试是否通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千纸鹤带着心事 2025-02-20 09:05:01

在OpenSearch 2.5上,它对我有用的权限索引:admin/get

希望这会有所帮助!

On OpenSearch 2.5 it worked for me with the permission indices:admin/get

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文