文档

支持的开源API

更新时间:

Elasticsearch Serverless服务支持开源的API,本文介绍7.10版本应用支持的开源API URI和对应的Method。

注意事项

在使用API查询应用索引时,应用配额为12 CU和24 CU的企业版存在以下限制:

  • 暂不支持以下Agg查询类型:

    FiltersAggregation、AdjacencyMatrixAggregation、ReverseNestedAggregation、CompositeAggregation。

  • 如果索引依赖index API的wait_for参数,在只查询索引主分片时,需要指定参数preference=_primary

Compact and aligned text APIs

API URI

适用Method

/_cat/aliases

GET

/_cat/aliases/{alias}

GET

/_cat/count

GET

/_cat/count/{index}

GET

/_cat/indices

GET

/_cat/indices/{index}

GET

/_cat/recovery

GET

/_cat/recovery/{index}

GET

/_cat/segments

GET

/_cat/segments/{index}

GET

/_cat/shards

GET

/_cat/shards/{index}

GET

/_cat/templates

GET

/_cat/templates/{name}

GET

Document APIs

API URI

适用Method

/_bulk

PUT、POST

/_mget

GET、POST

/_mtermvectors

GET、POST

/{index}/_bulk

PUT、POST

/{index}/_create/{id}

POST、PUT

/{index}/_doc

POST

/{index}/_doc/{id}

POST、PUT、GET、HEAD、DELETE

/{index}/_mget

GET、POST

/{index}/_mtermvectors

GET、POST

/{index}/_source/{id}

GET、HEAD

/{index}/_termvectors

GET、POST

/{index}/_termvectors/{id}

GET、POST

/{index}/_update/{id}

POST

/{index}/{type}

POST

/{index}/{type}/_bulk

PUT、POST

/{index}/{type}/_mget

GET、POST

/{index}/{type}/_mtermvectors

GET、POST

/{index}/{type}/_termvectors

GET、POST

/{index}/{type}/{id}

PUT、POST、GET、HEAD、DELETE

/{index}/{type}/{id}/_create

PUT、POST

/{index}/{type}/{id}/_source

GET、HEAD

/{index}/{type}/{id}/_termvectors

GET、POST

/{index}/{type}/{id}/_update

POST

Index APIs

API URI

适用Method

/_alias

GET、PUT

/_alias/{name}

PUT、POST、GET、HEAD

/_aliases

GET、POST

/_aliases/{name}

PUT、POST

/_analyze

GET、POST

/_close

POST

/_component_template

GET

/_component_template/{name}

PUT、POST、GET、HEAD、DELETE

/_flush

GET、POST

/_flush/synced

GET、POST

/_forcemerge

POST

/_index_template

GET

/_index_template/_simulate

POST

/_index_template/_simulate_index/{name}

POST

/_index_template/_simulate/{name}

POST

/_index_template/{name}

PUT、POST、GET、HEAD、DELETE

/_mapping

GET

/_mapping/{type}

PUT、POST、GET

/_mapping/{type}/field/{fields}

GET

/_mapping/field/{fields}

GET

/_mappings

GET

/_mappings/{type}

PUT、POST

/_open

POST

/_refresh

GET、POST

/_resolve/index/{name}

GET

/_settings

PUT、GET

/_settings/{name}

GET

/_stats

GET

/_stats/{metric}

GET

/_template

GET

/_template/{name}

PUT、POST、GET、HEAD、DELETE

/{index}

PUT、GET、HEAD、DELETE

/{index}/_close

POST

/{index}/_unfreeze

POST

/{index}/_alias

PUT、GET、HEAD

/{index}/_alias/{name}

PUT、POST、GET、HEAD、DELETE

/{index}/_aliases

PUT

/{index}/_aliases/{name}

PUT、POST、DELETE

/{index}/_analyze

GET、POST

/{index}/_block/{block}

PUT

/{index}/_flush

GET、POST

/{index}/_flush/synced

GET、POST

/{index}/_forcemerge

POST

/{index}/_freeze

POST

/{index}/_mapping

GET

/{index}/_mapping/

PUT、POST

/{index}/_mapping/{type}

PUT、POST、GET、HEAD

/{index}/_mapping/{type}/field/{fields}

GET

/{index}/_mapping/field/{fields}

GET

/{index}/_mappings

GET

/{index}/_mappings/

PUT、POST

/{index}/_mappings/{type}

PUT、POST、GET

/{index}/_open

POST

/{index}/_refresh

GET、POST

/{index}/_segments

GET

/{index}/_setting/{name}

GET

/{index}/_settings

PUT、GET

/{index}/_settings/{name}

GET

/{index}/_stats

GET

/{index}/_stats/{metric}

GET

/{index}/{type}/_mapping

PUT、POST、GET

/{index}/{type}/_mapping/field/{fields}

GET

/{index}/{type}/_mappings

PUT、POST

Search APIs

API URI

适用Method

/_async_search

POST

/_async_search/{id}

GET、DELETE

/_count

GET、POST

/_field_caps

GET、POST

/_msearch

GET、POST

/_scripts/{id}

GET

/_search

GET、POST

/_search/scroll

GET、POST

/_search/scroll/{scroll_id}

GET、POST、DELETE

/_validate/query

GET、POST

/{index}/_async_search

POST

/{index}/_count

GET、POST

/{index}/_explain/{id}

GET、POST

/{index}/_field_caps

GET、POST

/{index}/_msearch

GET、POST

/{index}/_search

GET、POST

/{index}/_validate/query

GET、POST

/{index}/{type}/_count

GET、POST

/{index}/{type}/_msearch

GET、POST

/{index}/{type}/_search

GET、POST

/{index}/{type}/_validate/query

GET、POST

/{index}/{type}/{id}/_explain

GET、POST

其他

API URI

适用Method

/

GET、HEAD、DELETE

/{index}/_ilm/explain

GET

/_ingest/pipeline

GET

/_ingest/pipeline/_simulate

GET、POST

/_ingest/pipeline/{id}

GET、PUT、DELETE

/_ingest/pipeline/{id}/_simulate

GET、POST

/_tasks/{task_id}

GET

/_tasks/{task_id}/_cancel

POST

/_xpack

GET、HEAD

/_xpack/security/_authenticate

GET

/_xpack/security/privilege/

POST

/_xpack/security/user/_has_privileges

GET、POST

  • 本页导读 (1)
文档反馈