opensearch-project / opensearch-cli

A full-featured command line interface (CLI) for OpenSearch.
https://opensearch.org/docs/latest/clients/cli/
Apache License 2.0
44 stars 24 forks source link

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

Open aminclip opened 11 months ago

aminclip commented 11 months ago

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?

Do you have any screenshots?

Error: unknown flag: --data