Skip to content

Availability of indices.put_template in Serverless #2277

Open
@picandocodigo

Description

@picandocodigo

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions