Skip to content

[BUG] Missing Support for --data Flag in opensearch-cli curl delete for Autofollow Deletion #92

Open
@aminclip

Description

@aminclip

What is the bug?
To DELETE an autofollow we need to send the request with a --data, but --data is not an option on opensearch-cli curl delete.

How can one reproduce the bug?
Steps to reproduce the behavior:
Try to run this valid request using opensearch-cli

# delete autofollow
opensearch-cli curl delete --path "/_plugins/_replication/_autofollow" --data '
{
   "leader_alias" : "supreme_leader",
   "name": "leader_replication"
}'

What is the expected behavior?
Delete the mentioned autofllow replication.

What is your host/environment?

  • OS: MacOS
  • Version 14.0.2
  • Plugin version opensearch-cli version 1.2.0 darwin/arm64
  • OpenSearch 1.3

Do you have any screenshots?

Error: unknown flag: --data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions