小编Wol*_*tto的帖子

OpenSearch 1.2 - 以编程方式索引模式

我正在尝试以编程方式在 Opensearch 中创建index_pattern仪表板。

由于我在 Opensearch 文档中没有找到任何与之相关的内容,因此我尝试了elastic search saved_objectsapi:

POST /api/saved_objects/index-pattern/my_index_pattern
{
  "attributes":{
    "title": "my_index"
  }
}
Run Code Online (Sandbox Code Playgroud)

但是当我调用它时,出现以下错误:

{
  "error" : "no handler found for uri [/api/saved_objects/index-pattern/my_index_pattern?pretty=true] and method [POST]"
}
Run Code Online (Sandbox Code Playgroud)

我该如何解决?Opensearch 是否有不同的要求来创建index_pattern

opensearch

7
推荐指数
1
解决办法
2903
查看次数

标签 统计

opensearch ×1