elastic / elasticsearch-specification

Elasticsearch full specification
Apache License 2.0
121 stars 71 forks source link

Availability of indices.put_template in Serverless #2277

Open picandocodigo opened 1 year ago

picandocodigo commented 1 year ago

The definition for indices.put_template is out of sync with Serverless.

The source code labels it as stable/public.

* @availability serverless stability=stable visibility=public

So the definition in schema.json produces:

      "availability": {
        "serverless": {
          "stability": "stable",
          "visibility": "public"
        },
      "name": "indices.put_template",

However, when running this API against Serverless we get a 410 error:

>client.indices.put_template(body: {}, name: 'test')
[410] {"error":{"root_cause":[
  {"type":"api_not_available_exception",
  "reason":"uri [/_template/test] with method [PUT] exists but is not available when running in serverless mode"}],
  "type":"api_not_available_exception",
  "reason":"uri [/_template/test] with method [PUT] exists but is not available when running in serverless mode"},
  "status":410}
(Elastic::Transport::Transport::Errors::Gone)
ccancellieri commented 3 months ago

+1