Skip to content

Files

Latest commit

 

History

History
67 lines (48 loc) · 1.52 KB

indices-exists.asciidoc

File metadata and controls

67 lines (48 loc) · 1.52 KB

Exists API

Exists
New API reference

For the most up-to-date API details, refer to {api-es}/group/endpoint-indices[Index APIs].

Checks if a data stream, index, or alias exists.

HEAD my-data-stream

{api-request-title}

HEAD <target>

{api-prereq-title}

  • If the {es} {security-features} are enabled, you must have the view_index_metadata or manage index privilege for the target.

{api-path-parms-title}

<target>

(Optional, string) Comma-separated list of data streams, indices, and aliases. Supports wildcards (*).

{api-response-codes-title}

200

All targets exist.

404

One or more specified targets do not exist.