Open
Description
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