Module elastic_requests::endpoints [] [src]

REST API endpoints.

Each type corresponds to a single HTTP method on a single endpoint. Request types have constructor functions that take the form for_param_1_param_2_param_n, and accept a Body parameter if the underlying method is a POST or PUT. Other request parameters accept any type that can be converted into the parameter type, usually a String or &str.

Request types don't take ownership of their inputs unless you pass in owned data. That means if some function expects a SearchRequest<'static> then you can either use a SearchRequest with owned String inputs, or one that uses only 'static inputs.

Structs

BulkRequest

Post: /_bulk

CatAliasesRequest

Get: /_cat/aliases

CatAllocationRequest

Get: /_cat/allocation

CatCountRequest

Get: /_cat/count

CatFielddataRequest

Get: /_cat/fielddata

CatHealthRequest

Get: /_cat/health

CatHelpRequest

Get: /_cat

CatIndicesRequest

Get: /_cat/indices

CatMasterRequest

Get: /_cat/master

CatNodeattrsRequest

Get: /_cat/nodeattrs

CatNodesRequest

Get: /_cat/nodes

CatPendingTasksRequest

Get: /_cat/pending_tasks

CatPluginsRequest

Get: /_cat/plugins

CatRecoveryRequest

Get: /_cat/recovery

CatRepositoriesRequest

Get: /_cat/repositories

CatSegmentsRequest

Get: /_cat/segments

CatShardsRequest

Get: /_cat/shards

CatSnapshotsRequest

Get: /_cat/snapshots

CatTasksRequest

Get: /_cat/tasks

CatTemplatesRequest

Get: /_cat/templates

CatThreadPoolRequest

Get: /_cat/thread_pool

ClearScrollRequest

Delete: /_search/scroll/{scroll_id}

ClusterAllocationExplainRequest

Post: /_cluster/allocation/explain

ClusterGetSettingsRequest

Get: /_cluster/settings

ClusterHealthRequest

Get: /_cluster/health

ClusterPendingTasksRequest

Get: /_cluster/pending_tasks

ClusterPutSettingsRequest

Put: /_cluster/settings

ClusterRerouteRequest

Post: /_cluster/reroute

ClusterStateRequest

Get: /_cluster/state

ClusterStatsRequest

Get: /_cluster/stats

CountPercolateRequest

Post: /{index}/{type}/_percolate/count

CountRequest

Post: /_count

CreateRequest

Post: /{index}/{type}/{id}/_create

DeleteByQueryRequest

Post: /{index}/_delete_by_query

DeleteRequest

Delete: /{index}/{type}/{id}

DeleteScriptRequest

Delete: /_scripts/{lang}/{id}

DeleteTemplateRequest

Delete: /_search/template/{id}

ExistsRequest

Head: /{index}/{type}/{id}

ExplainRequest

Post: /{index}/{type}/{id}/_explain

FieldStatsRequest

Post: /_field_stats

GetRequest

Get: /{index}/{type}/{id}

GetScriptRequest

Get: /_scripts/{lang}/{id}

GetSourceRequest

Get: /{index}/{type}/{id}/_source

GetTemplateRequest

Get: /_search/template/{id}

IndexRequest

Post: /{index}/{type}

IndicesAnalyzeRequest

Post: /_analyze

IndicesClearCacheRequest

Post: /_cache/clear

IndicesCloseRequest

Post: /{index}/_close

IndicesCreateRequest

Put: /{index}

IndicesDeleteAliasRequest

Delete: /{index}/_alias/{name}

IndicesDeleteRequest

Delete: /{index}

IndicesDeleteTemplateRequest

Delete: /_template/{name}

IndicesExistsAliasRequest

Head: /_alias/{name}

IndicesExistsRequest

Head: /{index}

IndicesExistsTemplateRequest

Head: /_template/{name}

IndicesExistsTypeRequest

Head: /{index}/_mapping/{type}

IndicesFlushRequest

Post: /_flush

IndicesFlushSyncedRequest

Post: /_flush/synced

IndicesForcemergeRequest

Post: /_forcemerge

IndicesGetAliasRequest

Get: /_alias/

IndicesGetFieldMappingRequest

Get: /_mapping/field/{fields}

IndicesGetMappingRequest

Get: /_mapping

IndicesGetRequest

Get: /{index}

IndicesGetSettingsRequest

Get: /_settings

IndicesGetTemplateRequest

Get: /_template/{name}

IndicesGetUpgradeRequest

Get: /_upgrade

IndicesOpenRequest

Post: /{index}/_open

IndicesPutAliasRequest

Post: /{index}/_alias/{name}

IndicesPutMappingRequest

Post: /{index}/{type}/_mapping

IndicesPutSettingsRequest

Put: /_settings

IndicesPutTemplateRequest

Post: /_template/{name}

IndicesRecoveryRequest

Get: /_recovery

IndicesRefreshRequest

Post: /_refresh

IndicesRolloverRequest

Post: /{alias}/_rollover

IndicesSegmentsRequest

Get: /_segments

IndicesShardStoresRequest

Get: /_shard_stores

IndicesShrinkRequest

Post: /{index}/_shrink/{target}

IndicesStatsRequest

Get: /_stats

IndicesUpdateAliasesRequest

Post: /_aliases

IndicesUpgradeRequest

Post: /_upgrade

IndicesValidateQueryRequest

Post: /_validate/query

InfoRequest

Get: /

IngestDeletePipelineRequest

Delete: /_ingest/pipeline/{id}

IngestGetPipelineRequest

Get: /_ingest/pipeline/{id}

IngestPutPipelineRequest

Put: /_ingest/pipeline/{id}

IngestSimulateRequest

Post: /_ingest/pipeline/_simulate

MgetRequest

Post: /_mget

MpercolateRequest

Post: /_mpercolate

MsearchRequest

Post: /_msearch

MsearchTemplateRequest

Post: /_msearch/template

MtermvectorsRequest

Post: /_mtermvectors

NodesHotThreadsRequest

Get: /_nodes/hot_threads

NodesInfoRequest

Get: /_nodes

NodesStatsRequest

Get: /_nodes/stats

PercolateRequest

Post: /{index}/{type}/_percolate

PingHeadRequest

Head: /

PingRequest

Get: /

PutScriptRequest

Post: /_scripts/{lang}/{id}

PutTemplateRequest

Post: /_search/template/{id}

ReindexRequest

Post: /_reindex

ReindexRethrottleRequest

Post: /_reindex/{task_id}/_rethrottle

RenderSearchTemplateRequest

Post: /_render/template

ScrollRequest

Post: /_search/scroll

SearchRequest

Post: /_search

SearchShardsRequest

Post: /{index}/_search_shards

SearchTemplateRequest

Post: /_search/template

SimpleSearchRequest

Get: /_search

SnapshotCreateRepositoryRequest

Post: /_snapshot/{repository}

SnapshotCreateRequest

Post: /_snapshot/{repository}/{snapshot}

SnapshotDeleteRepositoryRequest

Delete: /_snapshot/{repository}

SnapshotDeleteRequest

Delete: /_snapshot/{repository}/{snapshot}

SnapshotGetRepositoryRequest

Get: /_snapshot

SnapshotGetRequest

Get: /_snapshot/{repository}/{snapshot}

SnapshotRestoreRequest

Post: /_snapshot/{repository}/{snapshot}/_restore

SnapshotStatusRequest

Get: /_snapshot/_status

SnapshotVerifyRepositoryRequest

Post: /_snapshot/{repository}/_verify

SuggestRequest

Post: /_suggest

TasksCancelRequest

Post: /_tasks

TasksGetRequest

Get: /_tasks/{task_id}

TasksListRequest

Get: /_tasks

TermvectorsRequest

Post: /{index}/{type}/_termvectors

UpdateByQueryRequest

Post: /{index}/_update_by_query

UpdateRequest

Post: /{index}/{type}/{id}/_update