Get mapping definitions

  • GET /{index}/_mapping
  • GET /_mapping

For data streams, the API retrieves mappings for the stream’s backing indices.

  • Index privileges: view_index_metadata

Path Parameters

index union IndexName | [] IndexName optional

Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.

Leave it out to use /_mapping.

Response