openapi: 3.0.0
info:
  version: V1
  title: ElasticSearch API
  contact:
    name: xyzw
    url: https://www.cdq.ch/team
    email: xyz@cdq.ch
tags:
  - name: Shards
    description: Everything about Shards
servers:
  - url: >-
      https://vpc-graylog-v1-z7flncd44w6d4wnpwfp45jbzja.eu-central-1.es.amazonaws.com
    description: Graylog Cluster
  - url: >-
      https://vpc-referencedata-prod-v3-uirokgmhkptbrr7o6wid3unube.eu-central-1.es.amazonaws.com
    description: Index API Cluster
paths:
  /_cat/indices:
    get:
      summary: Read all index on cluster
      description: >
        | health | status | index | uuid | pri | rep | docs.count | docs.deleted
        | store.size | pri.store.size |

        |-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|

        | | | Name of index | | | | number of existing docs | number of deleted
        docs | size with unit | size with unit |


        For further information see
        https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html#numeric-formats

        example: green open graylog_425  wB5aTGRkROyBbU0S5TWiQg 1 0 9979319 0
        18gb 18gb
      tags:
        - Indicies
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
  /_cat/shards:
    get:
      summary: List Shards
      tags:
        - Indicies
      parameters:
        - name: index
          in: query
          description: Show all shards from all indicies
          examples:
            graylog:
              value: graylog_*
              summary: List graylog shards only
            showAll:
              value: ''
              summary: List all
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
  /{index_name}/_mapping:
    get:
      summary: Read mapping of a given index
      description: >
        See the mapping of the index for more info
        [see|https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html]
      tags:
        - Mappings
      parameters:
        - name: index_name
          in: path
          required: true
          description: Index name
          examples:
            cdq_monitoring:
              value: cdq_monitor-c6be24c9-56d8-4366-bf1a-25a5a0207c6c
              summary: List graylog shards only
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    Test:
      type: string
