Skip to content

Index Lifecycle Management REST spec and documentation #42050

Closed as not planned
Closed as not planned
@codebrain

Description

@codebrain

The following issues have been encountered when implementing the ILM Apis in version 6.7.0 of the .NET client - elastic/elasticsearch-net#3671

Specifications

  • The id path parameters in the REST JSON specifications take the form <name>_id. Specifications use {policy} as the path parameter, should be renamed to {policy_id}.

    • ilm.delete_lifecycle.json
    • ilm.get_lifecycle.json
    • ilm.put_lifecycle.json
  • Where a path parameter is required, the "required": true json property should be set.

    • ilm.delete_lifecycle.json ({policy_id} parameter)
    • ilm.explain_lifecycle ({index} parameter)
    • ilm.move_to_step ({index} parameter)
    • ilm.put_lifecycle ({policy_id} parameter)
    • ilm.remove_policy ({index} parameter)
    • ilm.retry ({index} parameter)
  • The params master_timeout and timeout are common across all specifications, but no common file is provided. Therefore, please include these parameters in each specification file.

    • ilm.* (applies to all specifications)
  • The specifications have dropped the xpack.* prefix in the filename and specification key name. Not an issue per se, but it is inconsistent with the other APIs in 6.7.0

Documentation

.NET client workarounds

In order to workaround the issues with the specifications in the .NET client we have the ability to patch/replace the specifications as demonstrated here - https://github.com/elastic/elasticsearch-net/tree/6.x/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ilm - provided here as a reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions